Skip to content

Commit

Permalink
start using npm-run-all to build scss and js (facebook#2957)
Browse files Browse the repository at this point in the history
instead of using `&&` to run multiple commands in `package.json`, guide users to use `npm-run-all`
  • Loading branch information
shime authored and gaearon committed Oct 28, 2017
1 parent 523f3e3 commit 70a000b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ Then we can change `start` and `build` scripts to include the CSS preprocessor c
- "build": "react-scripts build",
+ "start-js": "react-scripts start",
+ "start": "npm-run-all -p watch-css start-js",
+ "build": "npm run build-css && react-scripts build",
+ "build-js": "react-scripts build",
+ "build": "npm-run-all build-css build-js",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
Expand Down

0 comments on commit 70a000b

Please sign in to comment.