Comments (4)
ok, found a way:
{
"exportsOverride": {
"somePackage": {
"js/../": "dist/**"
}
}
does the trick
even better... ...
{
"exportsOverride": {
"somePackage": {
"": "dist/**"
}
}
from grunt-bower-task.
Additionally you can take a look at grunt-bower
project.
from grunt-bower-task.
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.
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)
- Fatal error: options argument must be an object HOT 2
- Do copy all bower_components folder HOT 1
- When using a custom layout, deletes certain directories that are not in exportsOverride HOT 1
- Why is the "name" property required for a private bower.json? HOT 2
- Folder out of dir
- Bower spec changes HOT 1
- Copying actually DELETES an already installed component HOT 1
- Compatibility with Repository Manager Nexus 3.0 HOT 1
- Add template for new issues & pull requests HOT 1
- Move logging to it's own file
- Publish new version HOT 13
- bower failes for dependency "angular-ui-grid": "^3.2.9" HOT 2
- Cannot find module 'aws-sign2' HOT 2
- Filtering during copy by layout()
- The bower in grunt-bower-task is too old to use Nexus 3 as the bower registry HOT 4
- Your dependency updates should be a breaking change version update HOT 2
- Nothing copied to TargetDir HOT 2
- First install components than delete them HOT 3
- bower repository migration, upgrade HOT 2
- colors dependency has been purposefully destroyed by developer; Causes a crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-bower-task.