1.0.2 • Published 9 months ago

running-script v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

running-script

npm MIT License Coverage Status

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

  1. create scripts.config.json
{
  "start": "echo 1 && echo2 && dev",
  "dev": "echo2 && echo 3",
  "echo2": "echo 2",
  "echo4": "echo 4"
}
  1. edit package.json
...
"scripts": {
    "start": "running-script",
    "dev": "running-script",
    "echo2": "running-script",
    "echo4": "running-script"
  }
...
  1. 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