Slide 12
Slide 12 text
Organizing scripts
The following example uses npm-run-all :
The root package.json can orchestrate the
spawning of nested package scripts.
` `
` `
"scripts": {
"dev:webapp": "npm run -w webapp dev",
"dev:user-sync": "npm run -w user-sync dev",
"dev": "run-p dev:*",
"start": "npm run dev",
"lint:webapp": "npm run -w webapp lint",
"lint:user-sync": "npm run -w user-sync lint",
"lint": "run-s lint:*",
"pretest": "npm run lint",
"test:webapp": "npm test -w webapp",
"test:user-sync": "npm test -w user-sync",
"test": "run-s test:*"
},