Change NPM scripts

- `npm run dev` to start dev mode
 - `npm start` to build production bundle and start the node server

=> Default to production with `npm start` and be explicit when
starting the dev server
This commit is contained in:
Kimmo Puputti 2017-01-05 12:29:45 +02:00
parent af2d9b8e21
commit e986b235a7
2 changed files with 5 additions and 5 deletions

View file

@ -8,9 +8,8 @@
## Development
npm start
npm run dev
## Server
npm run build
node server/index.js
npm start

View file

@ -13,9 +13,10 @@
"react-router": "4.0.0-alpha.6"
},
"scripts": {
"start": "react-scripts start",
"dev": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"start": "npm run build&&node server/index.js"
}
}