jwvdiermen / grunt-include-source

Include lists of files into your source files automatically.
MIT License
68 stars 31 forks source link

Support bower components' "main" attribute in bower.json #13

Closed dfischer1 closed 10 years ago

dfischer1 commented 10 years ago

Support for bower components is currently based on a "sources" attribute, which is pretty rare in bower components. On the other hand, the bower specification almost enforces the existence of a "main" attribute that lists the main distrib files of the component. Why not use this attribute instead (similarly to https://github.com/yatskevich/grunt-bower-task)?

jwvdiermen commented 10 years ago

I agree, that would be a nice feature indeed. I'm open for taking pull requests since I currently don't have the time to work on this project.

jwvdiermen commented 10 years ago

Bower has been deprecated in the latest release 0.3.7 in favor of other Grunt plugins. See for example grunt-bower-install which should work fine next to grunt-include-source (but to be honest, I haven't tested it, but I don't see a reason why it shouldn't work).