feat(npm): add alias for `npm run build` (#12012)

Closes #12010
master
Sarah Noor 3 years ago committed by GitHub
parent cb86d378f2
commit 38c01a235f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      plugins/npm/README.md
  2. 3
      plugins/npm/npm.plugin.zsh

@ -30,6 +30,7 @@ plugins=(... npm)
| `npmi` | `npm info` | Run npm info | | `npmi` | `npm info` | Run npm info |
| `npmSe` | `npm search` | Run npm search | | `npmSe` | `npm search` | Run npm search |
| `npmrd` | `npm run dev` | Run npm run dev | | `npmrd` | `npm run dev` | Run npm run dev |
| `npmrb` | `npm run build` | Run npm run build |
## `npm install` / `npm uninstall` toggle ## `npm install` / `npm uninstall` toggle

@ -73,6 +73,9 @@ alias npmSe="npm search"
# Run npm run dev # Run npm run dev
alias npmrd="npm run dev" alias npmrd="npm run dev"
# Run npm run build
alias npmrb="npm run build"
npm_toggle_install_uninstall() { npm_toggle_install_uninstall() {
# Look up to the previous 2 history commands # Look up to the previous 2 history commands
local line local line

Loading…
Cancel
Save