|
@@ -5,23 +5,26 @@
|
|
|
"scripts": {
|
|
|
"test": "node test-build/server.js",
|
|
|
"postinstall": "npm run compile-src",
|
|
|
+ "compile": "cross-env NODE_ENV=production npm run compile-dev",
|
|
|
+ "compile-dev": "npm run compile-src && npm run compile-test",
|
|
|
"compile-test": "babel test --out-dir test-build",
|
|
|
"compile-src": "babel src --out-dir build",
|
|
|
- "compile": "npm run compile-src; npm run compile-test",
|
|
|
- "compile-start": "npm run compile && node build/server.js 2> /dev/null",
|
|
|
- "watch": "nodemon --watch src --watch test --exec \"npm run --silent compile 2> /dev/null\"",
|
|
|
- "testwatch": "nodemon --watch src --watch test --exec \"npm run --silent compile && npm test\"",
|
|
|
+ "compile-start": "npm run compile-dev && node build/server.js 2> /dev/null",
|
|
|
+ "watch": "nodemon --watch src --watch test --exec \"npm run --silent compile-dev 2> /dev/null\"",
|
|
|
+ "testwatch": "nodemon --watch src --watch test --exec \"npm run --silent compile-dev && npm test\"",
|
|
|
"serverwatch": "nodemon --watch src --watch test --exec \"npm run compile-start 2> /dev/null\""
|
|
|
},
|
|
|
"dependencies": {
|
|
|
"babel-cli": "^6.6.5",
|
|
|
+ "babel-plugin-transform-remove-console": "^6.8.0",
|
|
|
"babel-preset-es2015": "^6.6.0",
|
|
|
- "socket.io": "^1.4.5",
|
|
|
+ "cross-env": "^1.0.8",
|
|
|
+ "socket.io": "^1.4.5"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
"blue-tape": "^0.2.0",
|
|
|
"nodemon": "^1.9.1",
|
|
|
"socket.io-client": "^1.4.5"
|
|
|
},
|
|
|
- "private": true,
|
|
|
+ "private": true
|
|
|
}
|