{"library":"npm-run-all2","title":"npm-run-all2 CLI","description":"`npm-run-all2` is a command-line interface (CLI) tool designed to efficiently manage and execute multiple npm scripts. It enables running scripts concurrently in parallel or in a specified sequence, offering fine-grained control over complex build or development workflows. As a maintenance fork of the popular `npm-run-all` package, its primary focus is on ongoing maintenance, modernizing the codebase, and ensuring compatibility with recent Node.js versions. As of its current stable version 8.0.4, it specifically requires Node.js 20 or greater. It maintains a consistent release cadence, frequently incorporating updates and addressing compatibility concerns. Its key differentiator is its commitment to supporting contemporary Node.js environments and acting as a well-maintained alternative to its predecessor, particularly for projects that require updated dependencies or strict Node.js versioning.","language":"javascript","status":"active","last_verified":"Thu Apr 23","install":{"commands":["npm install npm-run-all2"],"cli":{"name":"npm-run-all","version":null}},"imports":["import { runAll } from 'npm-run-all2'","import { runAllSync } from 'npm-run-all2'","import 'npm-run-all2/bin/npm-run-all2.js'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"{\n  \"name\": \"my-project\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"clean\": \"rm -rf dist\",\n    \"lint\": \"eslint .\",\n    \"build:css\": \"sass src/styles.scss dist/styles.css\",\n    \"build:js\": \"rollup -c\",\n    \"build\": \"npm-run-all2 build:*\",\n    \"dev:server\": \"node server.js\",\n    \"dev:watch:css\": \"sass --watch src/styles.scss:dist/styles.css\",\n    \"dev:watch:js\": \"rollup -cw\",\n    \"start\": \"npm-run-all2 --parallel dev:server 'dev:watch:*'\",\n    \"full-setup\": \"npm-run-all2 clean lint build --sequential start\"\n  },\n  \"devDependencies\": {\n    \"npm-run-all2\": \"^8.0.0\",\n    \"eslint\": \"^8.0.0\",\n    \"sass\": \"^1.0.0\",\n    \"rollup\": \"^4.0.0\"\n  }\n}\n\n// To run the parallel development setup:\nnpm start\n\n// To run the full setup sequentially:\nnpm run full-setup","lang":"javascript","description":"Demonstrates `npm-run-all2` for parallel and sequential execution of npm scripts, including glob patterns, in a typical project setup.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}