"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 versionBind and run a script in one command; the mapping is saved for the current project:
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 installnr install -D [npm_package_name...]
# npm install -D ...
# yarn add -D ...
# pnpm add -D ...cargo install --git https://github.com/liwuhou/nr.git nr- Download the latest release binary for your system.
- Extract the Linux or macOS
.tar.gzarchive, then makenravailable on your PATH. - Run the Windows
.exedirectly or add it to your PATH.
brew tap liwuhou/formulae
brew install liwuhou/formulae/nrComming soon