Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Support wildcard in "files" field #28

Open
nalbion opened this issue May 2, 2014 · 1 comment
Open

Support wildcard in "files" field #28

nalbion opened this issue May 2, 2014 · 1 comment

Comments

@nalbion
Copy link

nalbion commented May 2, 2014

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
Copy link

acazacu commented Sep 16, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants