Giter Site home page Giter Site logo

Comments (4)

bpletzer avatar bpletzer commented on July 17, 2024

ok, found a way:

{
  "exportsOverride": {
    "somePackage": {
      "js/../": "dist/**"
    }
}

does the trick

even better... ...

{
  "exportsOverride": {
    "somePackage": {
      "": "dist/**"
    }
}

from grunt-bower-task.

yatskevich avatar yatskevich commented on July 17, 2024

Additionally you can take a look at grunt-bower project.

from grunt-bower-task.

chadly avatar chadly commented on July 17, 2024

I have a similar request, but the referenced config doesn't solve my issue. Most of my bower dependencies are single-file scripts and I'd like to dump them into the root of the lib folder rather than into a package subfolder.

Here is what I have now:

{
    "exportsOverride": {
        "somePackage": {
            "": "someFile.js"
    }
}

This copies someFile.js to lib/somePackage/someFile.js. I'd like an option to copy it to the root lib folder, lib/someFile.js.

I am thinking an option in the config, packageSubfolders which could be set to false to have it skip the "packageName" subfolder.

I've also looked at the grunt-bower project you referenced, but it doesn't seem to do what I want either. A lot of the projects I use don't specify a component.json which makes the exportsOverride config needed.

from grunt-bower-task.

IvanRave avatar IvanRave commented on July 17, 2024

Chadly, it's easy to use simple grunt-contrib-copy instead this library with exportsOverride and your needs

from grunt-bower-task.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.