|
5 | 5 | "main": "index.js",
|
6 | 6 | "scripts": {
|
7 | 7 | "dev": "cross-env NODE_ENV=development nodemon server",
|
8 |
| - "start": "cross-env NODE_ENV=production node server", |
9 |
| - "build": "cross-env NODE_ENV=production webpack --bail --progress --build --tc", |
| 8 | + "start": "node --max-old-space-size=512 server", |
| 9 | + "build": "node --max-old-space-size=512 ./node_modules/webpack/bin/webpack --bail --progress --build --tc", |
10 | 10 | "lint": "eslint --ext jsx --ext js .",
|
11 | 11 | "lint:fix": "npm run lint -- --fix",
|
12 |
| - "test": "mocha-webpack --require setup-test.js --webpack-config webpack.config-test.js \"src/**/*.spec.(jsx|js)\"" |
| 12 | + "test": "mocha-webpack --require setup-test.js --webpack-config webpack.config-test.js \"src/**/*.spec.(jsx|js)\"", |
| 13 | + "postinstall":"npm run build", |
| 14 | + "heroku:prod:init":"git remote remove production && heroku create --remote production && heroku config:set NODE_ENV=production --remote production", |
| 15 | + "heroku:dev:init": "git remote remove dev && heroku create --remote dev && heroku config:set NODE_ENV=development NPM_CONFIG_PRODUCTION=false --remote dev", |
| 16 | + "heroku:staging:init": "git remote remove staging && heroku create --remote staging && heroku config:set NODE_ENV=staging --remote staging", |
| 17 | + "heroku:test:init": "git remote remove test && heroku create --remote test && heroku config:set NODE_ENV=test --remote test", |
| 18 | + "heroku:prod:deploy":"git push production master", |
| 19 | + "heroku:dev:deploy":"git push dev master", |
| 20 | + "heroku:staging:deploy":"git push staging master", |
| 21 | + "heroku:test:deploy":"git push test master" |
13 | 22 | },
|
14 | 23 | "author": "",
|
15 | 24 | "license": "MIT",
|
|
0 commit comments