Package management
For third-party packages not intended for development, I prefer Bower . It supports a smaller and no smaller version of your packages.
Build tool
Use Gulp or Grunt , Gulp would be my tool of choice.
Gulp task that will greatly improve your code:
- minimizing both css and js
- image optimization / compression
- concatenation and caching to reduce server calls
- batch versioning
- automatic nesting of project dependencies
- automatic nesting of external dependencies
- static analysis of js and css
- automatic build code changes
- Deployment
- Testing
Node
If you can, leave all your development tools in node and leave all your release plugins. Most node packages that are used in released applications have a parallel installation for installing assemblies.
Edit
Do not manually remove anything from node, as you do not know which packages have other packages as dependencies. If you are afraid that you have unwanted information, use npm rimraf to delete the node_modules folder, and then run npm install. The most important thing is to check your .json package for unnecessary saved packages.
Wilmer saint
source share