I have a small Flask app which currently sources jQuery and highlight.js from external servers. I\'d like to make these local dependencies which I pull in via NPM.
W
maybe a bit late for the answer, but the easiest way to do it is by doing this:
sudo npm install bower
echo "bower_components/" >> .gitignore
bower install -S (here goes whatever you want)
npm init
Then you fill out the prompt, and you'll have a few new files:
bower.json, which is generated by bower to manage dependencies.
Using bower install -S (your dependency) will update this file with
your new dependencies.package.json, created by npm to manage your project and npm
dependenciesnode_modules, the things you installed with npmbower_components/ which is where all of your front end dependencies
live.