提交 79134f1c 编写于 作者: J Jason Park

Add heroku-postbuild script and split dependencies and devDependencies

上级 98da97be
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
"build": "npm run build:frontend && npm run build:backend", "build": "npm run build:frontend && npm run build:backend",
"build:frontend": "NODE_ENV=production node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.frontend.config.js", "build:frontend": "NODE_ENV=production node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.frontend.config.js",
"build:backend": "NODE_ENV=production node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.backend.config.js", "build:backend": "NODE_ENV=production node ./node_modules/webpack/bin/webpack --bail --progress --config webpack.backend.config.js",
"lint": "./node_modules/.bin/eslint --fix src" "lint": "./node_modules/.bin/eslint --fix src",
"heroku-postbuild": "npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -24,6 +25,17 @@ ...@@ -24,6 +25,17 @@
"url": "https://jasonpark.me/" "url": "https://jasonpark.me/"
}, },
"license": "MIT", "license": "MIT",
"dependencies": {
"express": "^4.15.4",
"morgan": "^1.9.1",
"cookie-parser": "^1.4.3",
"body-parser": "^1.18.2",
"bluebird": "latest",
"axios": "latest",
"fs-extra": "^6.0.1",
"express-github-webhook": "^1.0.6",
"uuid": "^3.2.1"
},
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome": "^1.1.5", "@fortawesome/fontawesome": "^1.1.5",
"@fortawesome/fontawesome-free-brands": "^5.0.9", "@fortawesome/fontawesome-free-brands": "^5.0.9",
...@@ -31,7 +43,6 @@ ...@@ -31,7 +43,6 @@
"@fortawesome/fontawesome-svg-core": "^1.2.0", "@fortawesome/fontawesome-svg-core": "^1.2.0",
"@fortawesome/react-fontawesome": "0.1.0", "@fortawesome/react-fontawesome": "0.1.0",
"autoprefixer": "latest", "autoprefixer": "latest",
"axios": "latest",
"axios-progress-bar": "^1.1.8", "axios-progress-bar": "^1.1.8",
"babel-core": "^6.18.0", "babel-core": "^6.18.0",
"babel-loader": "^7.1.2", "babel-loader": "^7.1.2",
...@@ -42,14 +53,11 @@ ...@@ -42,14 +53,11 @@
"babel-preset-react": "^6.24.1", "babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1", "babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-3": "^6.24.1", "babel-preset-stage-3": "^6.24.1",
"bluebird": "latest",
"body-parser": "^1.18.2",
"brace": "latest", "brace": "latest",
"chart.js": "^2.7.2", "chart.js": "^2.7.2",
"clean-webpack-plugin": "^0.1.16", "clean-webpack-plugin": "^0.1.16",
"compression": "latest", "compression": "latest",
"connect-history-api-fallback": "^1.3.0", "connect-history-api-fallback": "^1.3.0",
"cookie-parser": "^1.4.3",
"copy-webpack-plugin": "^4.0.1", "copy-webpack-plugin": "^4.0.1",
"css-hot-loader": "^1.3.9", "css-hot-loader": "^1.3.9",
"css-loader": "^1.0.0", "css-loader": "^1.0.0",
...@@ -58,15 +66,11 @@ ...@@ -58,15 +66,11 @@
"eslint-plugin-import": "^2.11.0", "eslint-plugin-import": "^2.11.0",
"eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0", "eslint-plugin-react": "^7.7.0",
"express": "^4.15.4",
"express-github-webhook": "^1.0.6",
"fs-extra": "^6.0.1",
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"http-proxy-middleware": "^0.18.0", "http-proxy-middleware": "^0.18.0",
"imagemin-webpack-plugin": "^2.3.0", "imagemin-webpack-plugin": "^2.3.0",
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"mini-css-extract-plugin": "^0.4.0", "mini-css-extract-plugin": "^0.4.0",
"morgan": "^1.9.1",
"node-sass": "^4.5.3", "node-sass": "^4.5.3",
"postcss-flexboxfixer": "0.0.5", "postcss-flexboxfixer": "0.0.5",
"postcss-loader": "^2.0.6", "postcss-loader": "^2.0.6",
...@@ -91,7 +95,6 @@ ...@@ -91,7 +95,6 @@
"screenfull": "^3.3.2", "screenfull": "^3.3.2",
"style-loader": "^0.21.0", "style-loader": "^0.21.0",
"uglifyjs-webpack-plugin": "^1.2.4", "uglifyjs-webpack-plugin": "^1.2.4",
"uuid": "^3.2.1",
"webpack": "^4.5.0", "webpack": "^4.5.0",
"webpack-bundle-analyzer": "^2.11.1", "webpack-bundle-analyzer": "^2.11.1",
"webpack-cli": "^3.0.8", "webpack-cli": "^3.0.8",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册