Browse Source

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

Closes #12010
Sarah Noor 6 months ago
parent
commit
38c01a235f
2 changed files with 4 additions and 0 deletions
  1. 1 0
      plugins/npm/README.md
  2. 3 0
      plugins/npm/npm.plugin.zsh

+ 1 - 0
plugins/npm/README.md

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

+ 3 - 0
plugins/npm/npm.plugin.zsh

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