Преглед изворни кода

changed compile to compile-prod

Brandon Wong пре 7 година
родитељ
комит
d20addb7fa
4 измењених фајлова са 18 додато и 18 уклоњено
  1. 3 3
      react/package.json
  2. 5 5
      regular/package.json
  3. 5 5
      service/package.json
  4. 5 5
      socket/package.json

+ 3 - 3
react/package.json

@@ -5,13 +5,13 @@
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
     "postinstall": "npm run compile",
-    "compile": "cross-env NODE_ENV=production npm run compile-dev",
-    "compile-dev": "npm run compile-src; npm run compile-test; npm run compile-frontend",
+    "compile-prod": "cross-env NODE_ENV=production npm run compile",
+    "compile": "npm run compile-src; npm run compile-test; npm run compile-frontend",
     "compile-both": "npm run compile-src; npm run compile-frontend",
     "compile-test": "babel test --out-dir test-build",
     "compile-src": "babel src --out-dir build",
     "compile-frontend": "webpack build/main.js build/bundle.js --module-bind 'js=babel-loader'",
-    "watch": "nodemon --watch src --watch test --watch styles -e js,css,html --exec \"npm run compile-dev --silent\""
+    "watch": "nodemon --watch src --watch test --watch styles -e js,css,html --exec \"npm run compile --silent\""
   },
   "dependencies": {
     "babel-cli": "^6.14.0",

+ 5 - 5
regular/package.json

@@ -5,13 +5,13 @@
   "main": "index.js",
   "scripts": {
     "test": "node test-build/main.js",
-    "compile": "cross-env NODE_ENV=production npm run compile-dev",
-    "compile-dev": "npm run compile-src && npm run compile-test",
+    "compile-prod": "cross-env NODE_ENV=production npm run compile",
+    "compile": "npm run compile-src && npm run compile-test",
     "compile-test": "babel test --out-dir test-build",
     "compile-src": "babel src --out-dir build",
-    "watch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent\"",
-    "serverwatch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent && node build/server.js\"",
-    "testwatch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent && npm test\""
+    "watch": "nodemon --watch src --watch test --exec \"npm run compile --silent\"",
+    "serverwatch": "nodemon --watch src --watch test --exec \"npm run compile --silent && node build/server.js\"",
+    "testwatch": "nodemon --watch src --watch test --exec \"npm run compile --silent && npm test\""
   },
   "dependencies": {
     "babel-cli": "^6.14.0",

+ 5 - 5
service/package.json

@@ -6,13 +6,13 @@
   "scripts": {
     "test": "node test-build/service.js",
     "postinstall": "npm run compile",
-    "compile": "cross-env NODE_ENV=production npm run compile-dev",
-    "compile-dev": "npm run compile-src && npm run compile-test",
+    "compile-prod": "cross-env NODE_ENV=production npm run compile",
+    "compile": "npm run compile-src && npm run compile-test",
     "compile-test": "babel test --out-dir test-build",
     "compile-src": "babel src --out-dir build",
-    "watch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent\"",
-    "serverwatch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent && node build/service.js\"",
-    "testwatch": "nodemon --watch src --watch test --exec \"npm run compile-dev --silent && npm test\""
+    "watch": "nodemon --watch src --watch test --exec \"npm run compile --silent\"",
+    "serverwatch": "nodemon --watch src --watch test --exec \"npm run compile --silent && node build/service.js\"",
+    "testwatch": "nodemon --watch src --watch test --exec \"npm run compile --silent && npm test\""
   },
   "dependencies": {
     "babel-cli": "^6.14.0",

+ 5 - 5
socket/package.json

@@ -5,13 +5,13 @@
   "main": "build/server.js",
   "scripts": {
     "test": "node test-build/server.js",
-    "compile": "cross-env NODE_ENV=production npm run compile-dev",
-    "compile-dev": "npm run compile-src && npm run compile-test",
+    "compile-prod": "cross-env NODE_ENV=production npm run compile",
+    "compile": "npm run compile-src && npm run compile-test",
     "compile-test": "babel test --out-dir test-build",
     "compile-src": "babel src --out-dir build",
-    "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\"",
+    "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\"",
     "serverwatch": "nodemon --watch src --watch test --exec \"npm run compile-start 2> /dev/null\""
   },
   "dependencies": {