mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 11:38:00 +00:00
node: Add handy aliases for 'npm'
Add standard `npm` aliases that are used frequently.
This commit is contained in:
parent
28ec39d9b2
commit
9459a716bf
@ -27,6 +27,25 @@ _`$XDG_CONFIG_HOME/nvm`_, _`~/.nvm`_, or is installed with homebrew.
|
||||
|
||||
- `N_PREFIX` stores the path to [_n_][8] cache.
|
||||
|
||||
## Aliases
|
||||
|
||||
### npm
|
||||
|
||||
- `npmi` install a package.
|
||||
- `npml` list installed packages.
|
||||
- `npmo` check for outdated packages.
|
||||
- `npmp` publish a package.
|
||||
- `npmP` remove extraneous packages.
|
||||
- `npmr` run arbitrary package scripts.
|
||||
- `npms` search for packages.
|
||||
- `npmt` test a package.
|
||||
- `npmu` update packages.
|
||||
- `npmx` uninstalls a package.
|
||||
|
||||
- `npmci` install a project with a clean slate.
|
||||
- `npmcit` install a project with a clean slate and run tests.
|
||||
- `npmit` install package(s) and run tests.
|
||||
|
||||
## Functions
|
||||
|
||||
- `node-doc` opens the Node.js online [API documentation][3] in the default
|
||||
|
@ -43,3 +43,23 @@ fi
|
||||
#
|
||||
|
||||
N_PREFIX="${XDG_CONFIG_HOME:-$HOME/.config}/n" # The path to 'n' cache.
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
# npm
|
||||
alias npmi='npm install'
|
||||
alias npml='npm list'
|
||||
alias npmo='npm outdated'
|
||||
alias npmp='npm publish'
|
||||
alias npmP='npm prune'
|
||||
alias npmr='npm run'
|
||||
alias npms='npm search'
|
||||
alias npmt='npm test'
|
||||
alias npmu='npm update'
|
||||
alias npmx='npm uninstall'
|
||||
|
||||
alias npmci='npm ci'
|
||||
alias npmcit='npm cit'
|
||||
alias npmit='npm it'
|
||||
|
Loading…
Reference in New Issue
Block a user