MCPcopy Index your code
hub / github.com/mysticatea/npm-run-all

github.com/mysticatea/npm-run-all @v4.1.5 sqlite

repository ↗ · DeepWiki ↗ · release v4.1.5 ↗
51 symbols 87 edges 54 files 44 documented · 86% 133 cross-repo links
README
index npm-run-all run-s run-p Node API

npm-run-all

npm version Downloads/month Build Status Build status Coverage Status Dependency Status

A CLI tool to run multiple npm-scripts in parallel or sequential.

⤴️ Motivation

  • Simplify. The official npm run-script command cannot run multiple scripts, so if we want to run multiple scripts, it's redundant a bit. Let's shorten it by glob-like patterns.

Before: npm run clean && npm run build:css && npm run build:js && npm run build:html

After: npm-run-all clean build:* - Cross platform. We sometimes use & to run multiple command in parallel, but cmd.exe (npm run-script uses it by default) does not support the &. Half of Node.js users are using it on Windows, so the use of & might block contributions. npm-run-all --parallel works well on Windows as well.

💿 Installation

$ npm install npm-run-all --save-dev
# or
$ yarn add npm-run-all --dev
  • It requires Node@>=4.

📖 Usage

CLI Commands

This npm-run-all package provides 3 CLI commands.

The main command is npm-run-all. We can make complex plans with npm-run-all command.

Both run-s and run-p are shorthand commands. run-s is for sequential, run-p is for parallel. We can make simple plans with those commands.

Yarn Compatibility

If a script is invoked with Yarn, npm-run-all will correctly use Yarn to execute the plan's child scripts.

Node API

This npm-run-all package provides Node API.

📰 Changelog

  • https://github.com/mysticatea/npm-run-all/releases

🍻 Contributing

Welcome♡

Bug Reports or Feature Requests

Please use GitHub Issues.

Correct Documents

Please use GitHub Pull Requests.

I'm not familiar with English, so I especially thank you for documents' corrections.

Implementing

Please use GitHub Pull Requests.

There are some npm-scripts to help developments.

  • npm test - Run tests and collect coverage.
  • npm run clean - Delete temporary files.
  • npm run lint - Run ESLint.
  • npm run watch - Run tests (not collect coverage) on every file change.

Core symbols most depended-on inside this repo

shouldFail
called by 28
test/fail.js
spawn
called by 7
test/lib/util.js
abort
called by 3
lib/run-tasks.js
detectStreamKind
called by 3
lib/run-task.js
add
called by 3
lib/match-tasks.js
stripIstanbulWarnings
called by 3
test/common.js
createExpectedOutput
called by 3
test/aggregate-output.js
addGroup
called by 3
bin/common/parse-cli-args.js

Shape

Function 31
Class 10
Method 10

Languages

TypeScript100%

Modules by API surface

bin/common/parse-cli-args.js9 symbols
lib/match-tasks.js6 symbols
lib/index.js6 symbols
test/lib/buffer-stream.js4 symbols
lib/run-tasks.js4 symbols
lib/run-task.js4 symbols
lib/create-prefix-transform-stream.js4 symbols
test/bin/run-tests.js3 symbols
lib/npm-run-all-error.js3 symbols
test/yarn.js1 symbols
test/lib/util.js1 symbols
test/fail.js1 symbols

Dependencies from manifests, versioned

@types/node4.9.1 · 1×
ansi-styles3.2.1 · 1×
babel-plugin-transform-async-to-generator6.24.1 · 1×
babel-preset-power-assert2.0.0 · 1×
babel-register6.26.0 · 1×
chalk2.4.1 · 1×
codecov3.1.0 · 1×
cross-spawn6.0.5 · 1×
eslint4.19.1 · 1×
eslint-config-mysticatea12.0.0 · 1×
fs-extra7.0.1 · 1×
memorystream0.3.1 · 1×

For agents

$ claude mcp add npm-run-all \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact