Skip to content

Commit 5fc3da9

Browse files
authored
Reorganise npm scripts
1 parent 9b2d7a7 commit 5fc3da9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ cp presets.json.template presets.json
1616
cp alerts.json.template alerts.json
1717
npm install
1818
npm run build
19-
npm run build-server
2019
node build/server.js
2120
```
2221

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
"winston": "^3.2.1"
2525
},
2626
"scripts": {
27-
"start": "react-scripts start",
28-
"build": "react-scripts build",
27+
"start": "export PORT=3001 && react-scripts start",
28+
"build": "npm run build-client && npm run build-server",
29+
"build-client": "react-scripts build",
2930
"start-server": "node build/server.js",
3031
"build-server": "tsc --project tsconfig.server.json --jsx react",
3132
"test": "react-scripts test --env=jsdom",

0 commit comments

Comments
 (0)