|
16 | 16 | "npm": "3.x.x"
|
17 | 17 | },
|
18 | 18 | "scripts": {
|
19 |
| - "start": "npm run dev:build && npm run dev:start", |
20 |
| - "dev:start": "npm run dev:start:client & npm run dev:start:server", |
21 |
| - "dev:start:server": "NODE_ENV=development $(npm bin)/nodemon server", |
22 |
| - "dev:start:client": "NODE_ENV=development $(npm bin)/babel-node webpack/development.hot", |
23 |
| - "dev:build": "NODE_ENV=development $(npm bin)/babel-node $(npm bin)/webpack --progress --colors --display-error-details --config webpack/development.js", |
24 |
| - "prod:build": "NODE_ENV=production $(npm bin)/babel-node $(npm bin)/webpack -p --optimize-dedupe --config webpack/production.js", |
| 19 | + "start": "yarn run dev:build && yarn run dev:start", |
| 20 | + "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 | 25 | "prod:start": "NODE_ENV=production pm2 start server --name='callai'",
|
26 |
| - "test": "$(npm bin)/mocha --recursive --compilers js:babel-register", |
27 |
| - "test:all": "$(npm bin)/mocha --recursive --compilers js:babel-register $(find . -path ./node_modules -prune -o -name '*.test.js' -print)", |
| 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 | 28 | "test:watch": "npm test -- --watch",
|
29 |
| - "test:all:watch": "$(npm bin)/mocha --recursive --compilers js:babel-register $(find . -path ./node_modules -prune -o -name '*.test.js' -print) --watch", |
30 |
| - "lint": "$(npm bin)/eslint --ignore-pattern **/node_modules/* --ext .js,.jsx .", |
31 |
| - "postinstall": "if [ \"$NODE_ENV\" = \"production\" ]; then npm run prod:build; fi" |
| 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" |
32 | 32 | },
|
33 | 33 | "devDependencies": {
|
34 | 34 | "babel-eslint": "7.0.0",
|
|
0 commit comments