Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
npm scripts don't execute the sleep and open commands anymore. Up…
Browse files Browse the repository at this point in the history
…dated dependencies.
  • Loading branch information
Rick committed May 4, 2015
1 parent eef1fb1 commit e2be8f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-isomorphic-starterkit",
"description": "Isomorphic starterkit with server-side React rendering.",
"version": "2.3.3",
"version": "2.4.0",
"license": "BSD-3",
"repository": {
"type": "git",
Expand All @@ -20,30 +20,28 @@
"main": "babel.server.js",
"scripts": {
"start": "NODE_PATH=\"./src\" node ./babel.server",
"localhost": "sleep 1; which open && open http://localhost:8000",
"browser": "sleep 2; concurrent 'npm run start' 'npm run localhost'",
"build": "webpack --verbose --colors --display-error-details --config webpack.client.js",
"watch-client": "webpack --verbose --colors --display-error-details --config webpack.client-watch.js && webpack-dev-server --config webpack.client-watch.js",
"watch": "concurrent --kill-others 'npm run watch-client' 'npm run browser'"
"watch": "concurrent --kill-others 'npm run watch-client' 'npm run start'"
},
"dependencies": {
"babel": "5.1.13",
"babel": "5.2.10",
"hapi": "8.4.0",
"piping": "0.1.8",
"react": "0.13.2",
"react-inline-css": "1.1.1",
"react-router": "0.13.2",
"react-router": "0.13.3",
"react-transmit": "2.5.4",
"isomorphic-fetch": "2.0.2"
},
"devDependencies": {
"babel-core": "5.1.13",
"babel-core": "5.2.10",
"babel-loader": "5.0.0",
"babel-runtime": "5.1.13",
"babel-runtime": "5.2.10",
"concurrently": "0.0.5",
"json-loader": "0.5.1",
"react-hot-loader": "1.2.5",
"webpack": "1.8.10",
"react-hot-loader": "1.2.6",
"webpack": "1.8.11",
"webpack-dev-server": "1.8.2"
},
"engines": {
Expand Down
5 changes: 4 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import url from "url";
*/
const server = new Server();
server.connection({port: process.env.PORT || 8000});
server.start();
server.start(function () {
console.info("==> ✅ Server is listening");
console.info("==> 🌎 Go to " + server.info.uri.toLowerCase());
});

/**
* Attempt to serve static requests from the public folder.
Expand Down

0 comments on commit e2be8f8

Please sign in to comment.