Created
March 14, 2017 22:44
-
-
Save pomber/83b9c1cf73981ac56a14beaa5911a271 to your computer and use it in GitHub Desktop.
Root package.json with nested scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stuff": "...", | |
"scripts": { | |
"postinstall": "run-p install:api install:web", | |
"install:api": "cd api && npm install", | |
"install:web": "cd web && npm install", | |
"start": "run-p start:api start:web", | |
"start:api": "npm run start --prefix api", | |
"start:web": "npm run start --prefix web", | |
"build": "run-p build:api build:web", | |
"build:api": "cd api && npm run build", | |
"build:web": "cd web && npm run build" | |
}, | |
"devDependencies": { | |
"npm-run-all": "^4.0.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment