Add an option to pass a bower object in options#125
Conversation
|
@jonnyzzz Thank you for the contribution. It seems this feature may open a window for a further confusion, so people may start using a version of bower which is not supported by the plugin. So I'd prefer to keep bower's version fixed. If you have any ideas on how to provide flexibility of custom bower version and at the same time maintain safety net for the users, please share with us. |
|
The main issue I tried to solve was to get the way to update the bower in I got your concerns. Still the task may warn if the version of bower is too What is for the usecase where one has custom build of bower?
|
|
@jonnyzzz I believe what @yatskevich was saying is that your PR allows others to use a custom build of bower. He'd prefer not to allow that and stick with the official releases. With that in mind If you are wanting to use a different version of Bower than what is being used by the grunt-bower-task package, then you can always use |
grunt-bower-task has fixed dependency on bower. This could be as issue if the selected bower contains back or feature lack.
In the patch I add a parameter
bowerto the options. The parameter is optional. When defined it allows to specify any bower that is required for the outer grunt build. It is easy to use, since one should only addrequire('bower')into theirs script.