|
12 | 12 | "url": "https://github.com/combine/universal-react-redux.git"
|
13 | 13 | },
|
14 | 14 | "engines": {
|
15 |
| - "node": "6.2.1", |
| 15 | + "node": "7.x.x", |
16 | 16 | "npm": "3.x.x"
|
17 | 17 | },
|
18 | 18 | "scripts": {
|
19 |
| - "start": "yarn run dev:build && yarn run dev:start", |
| 19 | + "start": "better-npm-run dev:build && better-npm-run dev:start", |
| 20 | + "dev:start": "better-npm-run dev:start", |
| 21 | + "dev:start:server": "better-npm-run dev:start:server", |
| 22 | + "dev:start:client": "better-npm-run dev:start:client", |
| 23 | + "dev:build": "better-npm-run dev:build", |
| 24 | + "prod:build": "better-npm-run prod:build", |
| 25 | + "prod:start": "better-npm-run prod:start ", |
| 26 | + "test": "better-npm-run test", |
| 27 | + "test:all": "better-npm-run test:all", |
| 28 | + "test:watch": "better-npm-run test:watch", |
| 29 | + "test:all:watch": "better-npm-run test:all:watch", |
| 30 | + "lint": "better-npm-run lint", |
| 31 | + "postinstall": "node ./postinstall.js" |
| 32 | + }, |
| 33 | + "betterScripts": { |
20 | 34 | "dev:start": "yarn run dev:start:client & yarn run dev:start:server",
|
21 |
| - "dev:start:server": "NODE_ENV=development yarn run nodemon server", |
22 |
| - "dev:start:client": "NODE_ENV=development yarn run babel-node webpack/development.hot", |
23 |
| - "dev:build": "NODE_ENV=development $(yarn bin)/babel-node $(yarn bin)/webpack --progress --colors --display-error-details --config webpack/development.js", |
24 |
| - "prod:build": "NODE_ENV=production $(yarn bin)/babel-node $(yarn bin)/webpack -p --optimize-dedupe --config webpack/production.js", |
25 |
| - "prod:start": "NODE_ENV=production pm2 start server --name='callai'", |
26 |
| - "test": "yarn run mocha --recursive --compilers js:babel-register", |
27 |
| - "test:all": "yarn run mocha --recursive --compilers js:babel-register $(find . -path ./node_modules -prune -o -name '*.test.js' -print)", |
28 |
| - "test:watch": "npm test -- --watch", |
29 |
| - "test:all:watch": "yarn run mocha --recursive --compilers js:babel-register $(find . -path ./node_modules -prune -o -name '*.test.js' -print) --watch", |
30 |
| - "lint": "yarn run eslint --ext .js,.jsx .", |
31 |
| - "postinstall": "if [ \"$NODE_ENV\" = \"production\" ]; then yarn run prod:build; fi" |
| 35 | + "dev:start:server": { |
| 36 | + "command": "yarn run nodemon server", |
| 37 | + "env": { |
| 38 | + "NODE_ENV": "development" |
| 39 | + } |
| 40 | + }, |
| 41 | + "dev:start:client": { |
| 42 | + "command": "yarn run babel-node -- webpack/development.hot", |
| 43 | + "env": { |
| 44 | + "NODE_ENV": "development" |
| 45 | + } |
| 46 | + }, |
| 47 | + "dev:build": { |
| 48 | + "command": "yarn run babel-node -- ./script/build webpack/development.js", |
| 49 | + "env": { |
| 50 | + "NODE_ENV": "development" |
| 51 | + } |
| 52 | + }, |
| 53 | + "prod:build": { |
| 54 | + "command": "yarn run babel-node -- ./script/build webpack/production.js", |
| 55 | + "env": { |
| 56 | + "NODE_ENV": "production" |
| 57 | + } |
| 58 | + }, |
| 59 | + "prod:start": { |
| 60 | + "command": "pm2 start server --name='universal-react-redux'", |
| 61 | + "env": { |
| 62 | + "NODE_ENV": "production" |
| 63 | + } |
| 64 | + }, |
| 65 | + "test": { |
| 66 | + "command": "yarn run mocha --recursive --compilers js:babel-register", |
| 67 | + "env": { |
| 68 | + "NODE_ENV": "test" |
| 69 | + } |
| 70 | + }, |
| 71 | + "test:all": { |
| 72 | + "command": "yarn run mocha --recursive --compilers js:babel-register $(find . -path ./node_modules -prune -o -name '*.test.js' -print)", |
| 73 | + "env": { |
| 74 | + "NODE_ENV": "test" |
| 75 | + } |
| 76 | + }, |
| 77 | + "test:watch": { |
| 78 | + "command": "yarn run test -- --watch", |
| 79 | + "env": { |
| 80 | + "NODE_ENV": "test" |
| 81 | + } |
| 82 | + }, |
| 83 | + "test:all:watch": { |
| 84 | + "command": "yarn run test:all -- --watch", |
| 85 | + "env": { |
| 86 | + "NODE_ENV": "test" |
| 87 | + } |
| 88 | + }, |
| 89 | + "lint": { |
| 90 | + "command": "yarn run eslint --ext .js,.jsx .", |
| 91 | + "env": { |
| 92 | + "NODE_ENV": "test" |
| 93 | + } |
| 94 | + } |
32 | 95 | },
|
33 | 96 | "devDependencies": {
|
34 | 97 | "babel-eslint": "7.1.1",
|
| 98 | + "better-npm-run": "^0.0.13", |
| 99 | + "debug": "^2.6.0", |
35 | 100 | "eslint": "3.11.1",
|
36 | 101 | "eslint-loader": "1.6.1",
|
37 | 102 | "eslint-plugin-react": "6.7.1",
|
|
95 | 160 | "serve-static": "1.11.1",
|
96 | 161 | "style-loader": "0.13.1",
|
97 | 162 | "url-loader": "0.5.7",
|
98 |
| - "webpack": "2.1.0-beta.27", |
| 163 | + "webpack": "2.1.0-beta.28", |
99 | 164 | "webpack-isomorphic-tools": "2.6.4"
|
100 | 165 | }
|
101 | 166 | }
|
0 commit comments