From f2316262f8826c1c94a4db156eb4075c217c0765 Mon Sep 17 00:00:00 2001 From: Ted Armstrong Date: Mon, 25 Jul 2022 13:34:01 -0400 Subject: [PATCH] Adds RushJS plugin --- plugins/rushjs/README.md | 32 ++++++++++++++++++++++++++++++++ plugins/rushjs/rushjs.plugin.zsh | 11 +++++++++++ 2 files changed, 43 insertions(+) create mode 100644 plugins/rushjs/README.md create mode 100644 plugins/rushjs/rushjs.plugin.zsh diff --git a/plugins/rushjs/README.md b/plugins/rushjs/README.md new file mode 100644 index 000000000..52609e0c8 --- /dev/null +++ b/plugins/rushjs/README.md @@ -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) +``` diff --git a/plugins/rushjs/rushjs.plugin.zsh b/plugins/rushjs/rushjs.plugin.zsh new file mode 100644 index 000000000..908de61db --- /dev/null +++ b/plugins/rushjs/rushjs.plugin.zsh @@ -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"