Adds RushJS plugin

This commit is contained in:
Ted Armstrong 2022-07-25 13:34:01 -04:00
parent 249c708ed3
commit f2316262f8
2 changed files with 43 additions and 0 deletions

32
plugins/rushjs/README.md Normal file
View file

@ -0,0 +1,32 @@
# RushJS
This plugin adds aliases for frequent [rush](https://rushjs.io/) commands.
## Commands
The commands aliased are non-destructive; non of them ought to create, delete, or modify any non-generated files. There is a convenience alias (`rj`) where you can add your preferred impactful commands (e.g. `rj init`, `rj update`).
| Alias | Command |
| -------- | -------------------------- |
| *rj* | `rush` |
| *rji* | `rush install` |
| *rjb* | `rush build` |
| *rjbv* | `rush build --verbose` |
| *rjr* | `rush rebuild` |
| *rjrv* | `rush rebuild --verbose` |
| *rjcl* | `rush clean` |
| *rjp* | `rush purge` |
| *rjt* | `rush test` |
| *rjtv* | `rush test --verbose` |
| *rjc* | `rush check` |
## Installation
**Required**: You must install the rush monorepo manager yourself before you can use this plugin.
To use it, add `rushjs` to the plugins array in your `.zshrc` file:
```zsh
plugins=(... rushjs)
```

View file

@ -0,0 +1,11 @@
alias rj=rush
alias rji="rush install"
alias rjb="rush build"
alias rjbv="rush build -v"
alias rjr="rush rebuild"
alias rjrv="rush rebuild -v"
alias rjcl="rush clean"
alias rjp="rush purge"
alias rjt="rush test"
alias rjtv="rush test -v"
alias rjc="rush check"