Browse Source

add cross-env

maguohua 8 năm trước cách đây
mục cha
commit
9d06f5ebe2
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      package.json

+ 6 - 5
package.json

@@ -4,12 +4,12 @@
   "description": "",
   "description": "",
   "main": "index.js",
   "main": "index.js",
   "scripts": {
   "scripts": {
-    "dev": "NODE_ENV=development supervisor --harmony index.js",
-    "online": "NODE_ENV=online supervisor --harmony index.js",
+    "dev": "cross-env NODE_ENV=development supervisor --harmony index.js",
+    "online": "cross-env NODE_ENV=online supervisor --harmony index.js",
     "test": "echo \"Error: no test specified\" && exit 1",
     "test": "echo \"Error: no test specified\" && exit 1",
-    "start": "NODE_ENV=production pm2 start index.js --node-args='--harmony' --name 'node-elm'",
-    "stop": "NODE_ENV=production pm2 stop index.js --name 'node-elm'",
-    "restart": "NODE_ENV=production pm2 restart index.js --node-args='--harmony' --name 'node-elm'"
+    "start": "cross-env NODE_ENV=production pm2 start index.js --node-args='--harmony' --name 'node-elm'",
+    "stop": "cross-env NODE_ENV=production pm2 stop index.js --name 'node-elm'",
+    "restart": "cross-env NODE_ENV=production pm2 restart index.js --node-args='--harmony' --name 'node-elm'"
   },
   },
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",
@@ -30,6 +30,7 @@
     "connect-flash": "^0.1.1",
     "connect-flash": "^0.1.1",
     "connect-mongo": "^1.3.2",
     "connect-mongo": "^1.3.2",
     "cookie-parser": "^1.4.3",
     "cookie-parser": "^1.4.3",
+    "cross-env": "^5.0.0",
     "express": "^4.15.2",
     "express": "^4.15.2",
     "express-session": "^1.15.2",
     "express-session": "^1.15.2",
     "express-winston": "^2.3.0",
     "express-winston": "^2.3.0",