$ npm i -g @lets/run
$ run
run --color
Otherwise you will get a chance to add in arguments after selecting the script to run
You can hide scripts by explicitly setting the description to null
{
"name": "package",
"version": "1.0.0",
"scripts": {
"lint": "eslint '**/*.js'",
"prestart": "echo \"prepare things\"",
"start": "./bin.js"
},
"scripts:descriptions": {
"lint": "Check code syntax",
"prestart": null
}
}
{
"name": "package",
"version": "1.0.0",
"scripts": {
"start": "run --color",
"build": "...",
"test": "..."
},
"scripts:descriptions": {
"build": "Prepare application files"
},
"devDependencies": {
"@lets/run": "latest"
}
}
run, lets-run