"sh*t, I excue
npm start
script in vue-cli project again!"
Just nr [script]
, fastly excute any node's project any script.
๐ไธญๆๆๆกฃ
Usage: nr <COMMAND>
Commands:
run Run any alias script or default
ls Show alias script list
alias Set alias to map script
delete Delete alias
install Use the right package manager to install
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Firstly run, you just need to run
. nr
will use right package manage to run the npm's script.
nr run [alias] [script]
After above, you can use this [alias] to run script directly.
nr run [alias]
Even if alias is empty, just excute it without any thinking!
[alias] is empty or
-
, will run the default alias.
nr
will use right package manager to instlal dependencies.
nr install
# npm install
# yarn install
# pnpm install
nr install -D [npm_package_name...]
# npm install -D ...
# yarn add -D ...
# pnpm add -D ...
cargo install nr
- Download the latest release binary for your system
- Make it available globally on PATH environment variable
- Enjoy!
brew tap liwuhou/formulae
brew install liwuhou/formulae/nr
Comming soon