curist / grunt-bower

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

Specify bower location #56

Open farantesrodrigues opened 8 years ago

farantesrodrigues commented 8 years ago

From what I've read there's no way to do this. It would be great though...

My use case, I'm using one gruntfile to manage two parallel development apps (web and mobile) because some tasks are integrated, but then I build them in an outer scope and thus need to copy dependencies as well. I have two separate bower.json and .bowerrc (2 files x 2 apps). It would be great if grunt-bower task could choose the the .bowerrc / bower.json to read from, similar to what wiredep does.

gruntfile.js
app1/
----/bower.json
----/.bowerrc
app2/
----/bower.json
----/.bowerrc

This way in gruntfile I could use grunt-bower to manage each app. For now bower needs to be in the same space as gruntfile.

jasonlav commented 7 years ago

+1