running-script
v1.0.2
Published
Manage the package.json's scripts in the config file names 'scripts.config.json' or 'package.scripts.json', '.scriptsrc'.
Downloads
7
Maintainers
Readme
running-script
About
Manage the package.json's scripts in the config file names 'scripts.config.json' or 'package.scripts.json', '.scriptsrc'.
Installation
npm install -g running-script
yarn add running-script
pnpm add running-script
Usage & Example
- create scripts.config.json
{
"start": "echo 1 && echo2 && dev",
"dev": "echo2 && echo 3",
"echo2": "echo 2",
"echo4": "echo 4"
}
- edit package.json
...
"scripts": {
"start": "running-script",
"dev": "running-script",
"echo2": "running-script",
"echo4": "running-script"
}
...
- when you run 'npm run start', it will run the script 'start' in the scripts.config.json file
=>
Running script: start
Executing: echo 1
1
Executing: echo 2
2
Executing: echo 2
2
Executing: echo 3
3