Comments (11)
Hey there, thanks to @ertrzyiks , this is fixed in v0.14.1
.
from grunt-bower.
This is still no good... After updating to v0.14.2
I get the following directory structure:
libs/
> package1/
>> js/
>>> main.js
>>> locales/
>>>> locale1.js
>>>> locale2.js
> package 2/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js
If you set a glob as js/**
, **
should be relative to the js/
directory.
The final result should look like this:
libs/
> package 1/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js
> package 2/
>> main.js
>> locales/
>>> locale1.js
>>> locale2.js
from grunt-bower.
Hi there, please check the new version, v0.15.0
.
And be sure to add stripGlobBase: true
.
from grunt-bower.
Can you make this more obvious in the README ?
from grunt-bower.
Why can't the flattening be easy and just put the setting at the root of options. So all packages get flattened. The whole idea of this is to have less work for globing in bower. Otherwise I still need to do a lot more grunt work to get things flattened out. Checkout gulp-bower as it does exactly this.
from grunt-bower.
I keep getting:
vendor/scripts/angular-animate.js copied.
vendor/scripts/angular-cookies.js copied.
vendor/scripts/dist/angular-google-maps.js copied.
vendor/scripts/angular-highlightjs.js copied.
vendor/scripts/angular-resource.js copied.
vendor/scripts/angular-sanitize.js copied.
vendor/scripts/angular-scenario.js copied.
vendor/scripts/angular-semver-sort.js copied.
vendor/scripts/release/angular-ui-router.js copied.
vendor/scripts/angular.js copied.
vendor/scripts/js/browser/bluebird.js copied.
vendor/styles/dist/css/bootstrap.css copied.
vendor/scripts/dist/js/bootstrap.js copied.
vendor/dist/fonts/glyphicons-halflings-regular.eot copied.
vendor/dist/fonts/glyphicons-halflings-regular.svg copied.
vendor/dist/fonts/glyphicons-halflings-regular.ttf copied.
vendor/dist/fonts/glyphicons-halflings-regular.woff copied.
vendor/scripts/es5-shim.js copied.
vendor/scripts/highlight.pack.js copied.
vendor/styles/styles/default.css copied.
vendor/scripts/dist/jquery.js copied.
vendor/scripts/lib/json3.min.js copied.
vendor/scripts/dist/lodash.compat.js copied.
vendor/scripts/build/share.js copied.
vendor/scripts/underscore.js copied.
when I want:
vendor/scripts/angular-animate.js copied.
vendor/scripts/angular-cookies.js copied.
vendor/scripts/dist/angular-google-maps.js copied.
vendor/scripts/angular-highlightjs.js copied.
vendor/scripts/angular-resource.js copied.
vendor/scripts/angular-sanitize.js copied.
vendor/scripts/angular-scenario.js copied.
vendor/scripts/angular-semver-sort.js copied.
vendor/scripts/release/angular-ui-router.js copied.
vendor/scripts/angular.js copied.
vendor/scripts/bluebird.js copied.
vendor/styles/bootstrap.css copied.
vendor/scripts/bootstrap.js copied.
vendor/fonts/glyphicons-halflings-regular.eot copied.
vendor/fonts/glyphicons-halflings-regular.svg copied.
vendor/fonts/glyphicons-halflings-regular.ttf copied.
vendor/fonts/glyphicons-halflings-regular.woff copied.
vendor/scripts/es5-shim.js copied.
vendor/scripts/highlight.pack.js copied.
vendor/styles/default.css copied.
vendor/scripts/jquery.js copied.
vendor/scripts/json3.min.js copied.
vendor/scripts/lodash.compat.js copied.
vendor/scripts/build/share.js copied.
vendor/scripts/underscore.js copied.
using
bower:
dev:
dest :'vendor/'
fonts_dest:'vendor/fonts'
js_dest: 'vendor/scripts'
css_dest: 'vendor/styles'
options:
expand: false
stripAffix: true
#stripGlobBase: true
ignorePackages: ['angular-mocks']
packageSpecific:
bootstrap:
files: [
'dist/css/bootstrap.css'
'dist/js/bootstrap.js'
'dist/fonts/*'
]
from grunt-bower.
Main issue is stuff like
vendor/scripts/dist/jquery.js copied.
vendor/scripts/lib/json3.min.js copied.
Why keep the lib and dist ? How can I do this without having to go through each dependency specifically?
from grunt-bower.
I'm not sure your questions really belong to this issue?
For a simply flattened file structure, check keepExpandedHierarchy
in README.
from grunt-bower.
@curist thanks, sorry at first I thought it was the same issue.
from grunt-bower.
@curist tight that worked great.
from grunt-bower.
Glad it works for you!
from grunt-bower.
Related Issues (20)
- expand: false seems broken 0.14.2 upwards HOT 2
- Problems with relative paths for packages with single files HOT 2
- Version 0.15.1+ no longer works in SailsJS HOT 3
- bootstrap.less import problem
- Windows path not supported
- dest not working (windows) HOT 1
- Copying packages defined in `packageSpecific` fails silently
- ignorePackages should allow for typical regex
- Let also *.min.js and *.min.js.map files be copied by default (configurable by option) HOT 3
- images_dest HOT 3
- Ignore devDependencies HOT 1
- Specify bower location HOT 1
- Add option to *only* include certain packages HOT 1
- [filetype]_dest options ignored after upgrading to 0.21.1 HOT 1
- override the .local directory HOT 2
- Problem with graceful-fs HOT 3
- jquery-validation doesn't get copied HOT 4
- Add support for Files Array Format in packageSpecific.files to Allow for Additional Single Package Flexibility
- font-awesome font folder not copying over
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.