nodejs: dum

一个代替 npm run 的工具,速度比npm run/npx 等快的解决方案
更新于: 2022-07-17 12:01:04

安装

# 利用 brew
brew install egoist/tap/dum
# 利用 shell
curl -sSL https://bina.egoist.sh/egoist/dum | sh

使用

npm run build
dum build

帮助

$ dum -h
dum v0.1.19

USAGE:
    dum [OUR_FLAGS] [SCRIPT_NAME] [SCRIPT_ARGS]

COMMANDS:
    <script_name>      Run an npm script (like npm run) or a script in node_modules/.bin (like npx)
    run                Show a list of available scripts
    run <script_name>  Run an npm script
    add <packages>     Add packages to the current project
    i, install         Install dependencies
    remove <packages>  Remove packages from the current project
    t, test            Run test script in nearest package.json
    [script]           Run scripts in nearest package.json

FLAGS:
    -c <dir>              Change working directory
    -i, --interactive     Interactive mode
    -h, --help            Prints help information
    -v, --version         Prints version number

参考