Skip to content

Commit edd45d9

Browse files
committed
Added startMessage to dev build. Restructured start and build tasks to better support running in parallel
1 parent 67251fc commit edd45d9

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "react-slingshot",
3-
"version": "1.2.0",
3+
"version": "3.0.0",
44
"description": "Starter kit for creating apps with React and Redux",
55
"scripts": {
6-
"prestart": "npm run remove-dist",
7-
"start": "npm-run-all --parallel lint:tools test:watch open:src",
6+
"start-message": "babel-node tools/startMessage.js",
7+
"prestart": "npm-run-all --parallel start-message remove-dist lint:tools",
8+
"start": "npm-run-all --parallel test:watch open:src",
89
"open:src": "babel-node tools/srcServer.js",
910
"open:dist": "babel-node tools/distServer.js",
1011
"lint:tools": "eslint webpack.config.js tools",
1112
"clean-dist": "npm run remove-dist && mkdir dist",
1213
"remove-dist": "node_modules/.bin/rimraf ./dist",
1314
"build:html": "babel-node tools/buildHtml.js",
14-
"build:js": "babel-node tools/build.js ",
15-
"prebuild": "npm run clean-dist",
16-
"build": "npm-run-all --parallel test build:html build:js",
17-
"postbuild": "npm run open:dist",
15+
"build:js": "babel-node tools/build.js",
16+
"prebuild": "npm run clean-dist && npm run build:html",
17+
"build": "babel-node tools/build.js && npm run open:dist",
1818
"test": "cross-env NODE_ENV=test mocha --reporter progress --compilers js:babel-core/register --recursive \"./src/**/*.spec.js\" --require ignore-styles",
1919
"test:watch": "npm run test -- --watch"
2020
},

tools/startMessage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import colors from 'colors';
22

33
/*eslint-disable no-console */
44

5-
console.log('Starting app in development mode...'.green);
5+
console.log('Starting app in dev mode at http://localhost:3000...'.green);
6+

0 commit comments

Comments
 (0)