grunt-bower
grunt-bower copied to clipboard
Support wildcard in "files" field
I'm trying to use grunt-bower
to copy the .less files from Bootstrap so that I can compile them along with my own .less files into a single .css file.
The example below works, but I don't want to have to list all of them. It would be good if the files
field supported wildcards: "less/*.less"
(these are not included in the "main" section of bootstrap's bower.json file).
Also, is it (could it be) possible to avoid copying a specific file type, eg: css_dest: false
?
bower: {
dev: {
dest: 'static',
js_dest: 'js',
css_dest: 'css',
options: {
packageSpecific: {
bootstrap: {
files: [
"less/alerts.less"
],
dest: 'static/fonts',
css_dest: 'delete-me',
less_dest: 'less/common/bootstrap'
}
}
}
}
},
+1 I support the idea of having a file ignore list. I have the same issue that I have to work around, I'm using my own less/scss compiler and I want to skip copying the css files.