I’m trying to figure out the best way to add a JavaScript library to Roots. I see there is a thread already about bxslider, which is what I’m trying to install, but it doesn’t answer my specific question and I don’t want to threadjack: How to correctly add bxslider to my theme
I used bower to install bxslider using bower install --save bxslider
and it’s in the assets/vendor directory now. However, I still need to include it in the theme so it can be used. Should I add it to the Grunt.js file or the lib/scripts.php file?
Should I have even used bower to do this or just put it into the plugins directory so it can be compiled automatically with the Grunt.js file the way it’s already set up?
Essentially, what is the intended best practice to install an external JS library that will have CSS and image assets that need to be included as well?