curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

Support wildcard in "files" field #28

Open nalbion opened 10 years ago

nalbion commented 10 years ago

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'
                    }
                }
            }
        }
    },
acazacu commented 10 years ago

+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.