koala-framework / composer-extra-assets

Composer Plugin for installing Assets using native npm/bower
BSD 2-Clause "Simplified" License
42 stars 11 forks source link

How would I go about specifying a bower library version. #20

Open deankinns opened 8 years ago

deankinns commented 8 years ago

I am using this for managing my bower includes for my project but my libraries require different versions of jquery. I want to force the version to be 1.11.1 using the resolutions section of the bower file but as it is generated by this plugin anything I put in there would be overridden.

At the moment I have to do a composer install wait for the bower section to fail then run bower install to resolve the conflict and then composer update again.

nsams commented 8 years ago

In theory you should have something like jquery ^1.11 in the library and jquery 1.11.1 in the root package. If it is a third party library that advice won't help...

You should be able to modify the generated root bower.json since https://github.com/koala-framework/composer-extra-assets/commit/40ce9a85b1c3dc0000d8d2ed7da16017c32135e9is, the plugin overrides the dependencies only and leaves everyting else intact.

If you can give me a way to reproduce the issue I can have a detailed look...