curist / grunt-bower

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

Doesn't run bower install? #33

Closed kflorence closed 10 years ago

kflorence commented 10 years ago

Maybe I am misunderstanding this task, but it doesn't seem to run bower install before attempting to copy files, which makes it pretty useless. I'm using grunt 0.4.5 and grunt-bower 0.13.4, here is my config:

        bower: {
            vendor: {
                dest: "vendor",
                options: {
                    packageSpecific: {
                        qunit: {
                            files: [
                                "qunit/qunit.css",
                                "qunit/qunit.js"
                            ]
                        }
                    }
                }
            }
        }

When I run grunt bower I get this output:

Running "bower:vendor" (bower) task

Done, without errors.

If I run bower install manually before running this task, it copies files as expected.

curist commented 10 years ago

You're right, grunt-bower doesn't intend to install bower components for you. You may want to check grunt-bower-task if you want such a feature.

kflorence commented 10 years ago

@curist That's a shame, since I liked everything else about this plugin :) I ended up using https://github.com/timmywil/grunt-bowercopy instead, thanks anyways.