Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restoring node-modules and bower_components based on script contents

How do I restore node-modules and bower_components?

I want to source control files which are actually part of my application and not the dependencies. I want to restore those dependencies after I clone a fresh copy of my project. Something like the inverse of bower wiredep

like image 797
Ian Herve Chu Te Avatar asked Feb 24 '15 03:02

Ian Herve Chu Te


1 Answers

You can just set up a package.json for npm to install your node_modules using npm install. I believe bower also has something similar with bower.json.

I think both npm init and bower init should get you started.

Edit: yeah, Bower has it too

like image 74
whitfin Avatar answered Oct 30 '22 00:10

whitfin