multi-shell
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.1 • Public • Published

multi-shell


dependencies Status devDependencies Status

A tool to run multiple shell in parallel.

Install

npm install multi-shell

Usage

with javascript

import MutilShell from 'multi-shell'

new MutilShell({
  baseDir: '~/workspace/',
  tasks: [
    'cd a/ && npm run dev',
    'cd b/ && npm run dev'
  ]
}).run()

with global shell

yarn global add multi-shell

m-sh "cd node_project/ && npm run dev" "cd your_path/ && node serve.js" --baseDir xxx

# generate a config file
m-sh init
# use config file
m-sh -c ./tasks.conf.js # or json

with npm scripts

{
  "dev": "m-sh 'npm run watch:a' 'npm run watch:b'",
  "watch:a": "...",
  "watch:b": "..."
}

Readme

Keywords

none

Package Sidebar

Install

npm i multi-shell

Weekly Downloads

5

Version

2.0.0-alpha.1

License

MIT

Unpacked Size

66 kB

Total Files

15

Last publish

Collaborators

  • haozime