malsup / cycle2

2nd gen cycling
899 stars 236 forks source link

Currently impossible to install plugins via bower #503

Open sjamaan opened 10 years ago

sjamaan commented 10 years ago

Currently the bower package contains only the main minified file. Even when specifying a custom git commit hash, it still won't download any other files. Either the bower.json should be changed, or there should be different bower packages for each plugin.

djadomi commented 9 years ago

Is there any thought of sorting this out? I'm struggling to see how to make grunt build include any plugin...

djadomi commented 9 years ago

OK, workaround is to just move the plugin's <script> line outside of the <!-- bower:js --> section, but still inside of the <!-- build:js(.) scripts/vendor.js --> section:

<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/jquery-cycle2/build/jquery.cycle2.js"></script>
<!-- endbower -->
<script src="bower_components/jquery-cycle2/build/plugin/jquery.cycle2.scrollVert.min.js"></script>
<!-- endbuild -->