npm.plugin.zsh 727 B

1234567891011121314151617181920212223242526272829
  1. eval "$(npm completion 2>/dev/null)"
  2. # Install dependencies globally
  3. alias npmg="npm i -g "
  4. # npm package names are lowercase
  5. # Thus, we've used camelCase for the following aliases:
  6. # Install and save to dependencies in your package.json
  7. # npms is used by https://www.npmjs.com/package/npms
  8. alias npmS="npm i -S "
  9. # Install and save to dev-dependencies in your package.json
  10. # npmd is used by https://github.com/dominictarr/npmd
  11. alias npmD="npm i -D "
  12. # Execute command from node_modules folder based on current directory
  13. # i.e npmE gulp
  14. alias npmE='PATH="$(npm bin)":"$PATH"'
  15. # Check which npm modules are outdated
  16. alias npmO="npm outdated"
  17. # Run npm start
  18. alias npmst="npm start"
  19. # Run npm test
  20. alias npmt="npm test"