node.js - Create workflow for a "Global" bower_components folder for all of your projects? -


side note: i'm not looking "opinion-based" answers..i don't want thrown category. i'm looking proper method simplify workflow tools have available.


problem i've been running lately:
i'm installing multiple duplicate libraries (jquery + bootstrap example) on local disk on , on , on again when starting new projects...

1. create "new-client" folder 2. cd.. new-client 3. git clone my-starter-code 4. npm install (installing multiple dev dependency duplicates on disk) 5. bower install (installing multiple dependency duplicates on disk) 6. begin coding! 

this seems wasteful me if of these projects always have same base structure:

  • same "node_modules" files (65.1 mb)
  • same "bower_components" files (11.7 mb)
  • same "../folders/files.html" structure (modular)


what build tools can utilized create such workflow?

  • package.json "scripts" ?
  • yo generator ?
  • gulpfile.js ?
  • global node_modules + bower_components ?
  • git ?



realize projects different in there own way, if start out same,, not make sense use 1 "master" directory these "global" files instead of having 100's of duplicate projects?

i began thinking developing modular "web components" (the new w3c standard).

this has made me want make workflow more modular, simplified, , automated.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -