Skip to content

Commit

Permalink
Added startMessage to dev build. Restructured start and build tasks t…
Browse files Browse the repository at this point in the history
…o better support running in parallel
  • Loading branch information
coryhouse committed Mar 31, 2016
1 parent 67251fc commit edd45d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "react-slingshot",
"version": "1.2.0",
"version": "3.0.0",
"description": "Starter kit for creating apps with React and Redux",
"scripts": {
"prestart": "npm run remove-dist",
"start": "npm-run-all --parallel lint:tools test:watch open:src",
"start-message": "babel-node tools/startMessage.js",
"prestart": "npm-run-all --parallel start-message remove-dist lint:tools",
"start": "npm-run-all --parallel test:watch open:src",
"open:src": "babel-node tools/srcServer.js",
"open:dist": "babel-node tools/distServer.js",
"lint:tools": "eslint webpack.config.js tools",
"clean-dist": "npm run remove-dist && mkdir dist",
"remove-dist": "node_modules/.bin/rimraf ./dist",
"build:html": "babel-node tools/buildHtml.js",
"build:js": "babel-node tools/build.js ",
"prebuild": "npm run clean-dist",
"build": "npm-run-all --parallel test build:html build:js",
"postbuild": "npm run open:dist",
"build:js": "babel-node tools/build.js",
"prebuild": "npm run clean-dist && npm run build:html",
"build": "babel-node tools/build.js && npm run open:dist",
"test": "cross-env NODE_ENV=test mocha --reporter progress --compilers js:babel-core/register --recursive \"./src/**/*.spec.js\" --require ignore-styles",
"test:watch": "npm run test -- --watch"
},
Expand Down
3 changes: 2 additions & 1 deletion tools/startMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import colors from 'colors';

/*eslint-disable no-console */

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

0 comments on commit edd45d9

Please sign in to comment.