Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 1cb7631

Browse files
committed
fix(build): minify undefined issue
1 parent c80bc07 commit 1cb7631

File tree

2 files changed

+7
-74
lines changed

2 files changed

+7
-74
lines changed

package-docker.json

Lines changed: 4 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,10 @@
33
"version": "0.4.0",
44
"license": "Apache License 2.0",
55
"scripts": {
6-
"dev": "cross-env NODE_ENV=dev run-p server lint:watch",
7-
"prod": "cross-env NODE_ENV=production run-p server lint:watch",
8-
"local": "cross-env NODE_ENV=local GOAL=local node server",
9-
"server": "npm run clean && node server.js",
10-
"build": "next build",
11-
"build:clean": "run-s dist clean",
12-
"build:with18n": "npm run i18n && next build",
136
"build.prod": "cross-env GOAL=production next build",
147
"build.dev": "cross-env GOAL=dev next build",
15-
"launch": "cross-env GOAL=production next start -p ${SERVE_PORT}",
168
"launch.dev": "cross-env NODE_ENV=dev SERVE_PORT=${SERVE_PORT} node server",
17-
"launch.prod": "cross-env NODE_ENV=production SERVE_PORT=${SERVE_PORT} node server",
18-
"dist": "npm run i18n && next build && next export -o \"build\"",
19-
"i18n": "shjs ./utils/scripts/create_default_lang.js && shjs ./utils/scripts/cp_locales.js",
20-
"start": "NODE_ENV=production node server.js",
21-
"clean": "shjs ./utils/scripts/clean.js",
22-
"precommit": "lint-staged",
23-
"gen": "plop --plopfile ./utils/scripts/generators/index.js",
24-
"analyze": "cross-env ANALYZE=1 next build",
25-
"lint": "eslint --fix pages/**/*.js components/**/*.js containers/**/*.js stores/**/*.js utils/**/*.js",
26-
"lint:watch": "esw -w pages/**/*.js components/**/*.js containers/**/*.js stores/**/*.js utils/**/*.js",
27-
"test": "cross-env NODE_ENV=test GOAL=test jest --config .jest.config.js",
28-
"test:dev": "cross-env NODE_ENV=dev GOAL=test jest --config .jest.config.js",
29-
"test:watch": "npm run test -- --watch",
30-
"test:cover": "npm run test -- --coverage",
31-
"test:e2e": "cypress open",
32-
"coveralls": "cat ./coverage/lcov.info | coveralls",
33-
"commitmsg": "commitlint -E GIT_PARAMS"
34-
},
35-
"lint-staged": {
36-
"*.js": [
37-
"prettier",
38-
"npm run lint"
39-
]
40-
},
41-
"config": {
42-
"commitizen": {
43-
"path": "./node_modules/cz-conventional-changelog"
44-
}
45-
},
46-
"husky": {
47-
"hooks": {
48-
"commit-msg": "npm run commitmsg"
49-
}
9+
"launch.prod": "cross-env NODE_ENV=production SERVE_PORT=${SERVE_PORT} node server"
5010
},
5111
"dependencies": {
5212
"accepts": "^1.3.4",
@@ -108,7 +68,6 @@
10868
"react-waypoint": "^8.0.0",
10969
"remarkable": "^1.7.1",
11070
"remarkable-emoji": "^0.1.3",
111-
"remarkable-katex": "^1.0.1",
11271
"remarkable-mentions": "^0.1.0",
11372
"rxjs": "6.2.2",
11473
"scroll-into-view-if-needed": "1.5.0",
@@ -120,8 +79,6 @@
12079
"devDependencies": {
12180
"@babel/core": "^7.2.2",
12281
"@babel/plugin-proposal-decorators": "^7.1.0",
123-
"@commitlint/cli": "^7.0.0",
124-
"@commitlint/config-conventional": "^7.0.1",
12582
"babel-core": "^7.0.0-bridge.0",
12683
"babel-eslint": "9.0.0",
12784
"babel-jest": "^23.6.0",
@@ -132,36 +89,9 @@
13289
"babel-plugin-react-intl": "2.4.0",
13390
"babel-plugin-styled-components": "1.8.0",
13491
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
135-
"commitizen": "^2.10.1",
136-
"coveralls": "3.0.2",
137-
"cross-env": "^5.0.5",
138-
"cypress": "^3.0.2",
139-
"cz-conventional-changelog": "^2.1.0",
140-
"dotenv": "6.0.0",
141-
"dotenv-webpack": "1.5.7",
142-
"enzyme": "3.3.0",
143-
"enzyme-adapter-react-16": "1.1.1",
144-
"enzyme-to-json": "^3.3.4",
145-
"eslint": "5.6.0",
146-
"eslint-config-airbnb": "17.1.0",
147-
"eslint-config-prettier": "3.0.1",
148-
"eslint-import-resolver-babel-module": "5.0.0-beta.1",
149-
"eslint-plugin-cypress": "^2.0.1",
150-
"eslint-plugin-import": "2.13.0",
151-
"eslint-plugin-jsx-a11y": "6.1.1",
152-
"eslint-plugin-prettier": "2.6.2",
153-
"eslint-plugin-react": "7.11.0",
154-
"eslint-watch": "4.0.2",
155-
"husky": "^0.14.3",
156-
"jest": "23.4.2",
157-
"lint-staged": "7.2.0",
158-
"npm-run-all": "^4.1.1",
159-
"plop": "2.0.0",
160-
"prettier": "1.14.0",
161-
"react-test-renderer": "16.4.2",
16292
"regenerator-runtime": "^0.13.1",
163-
"shelljs": "0.8.2",
164-
"standard-version": "^4.4.0",
165-
"webpack-bundle-analyzer": "3.0.2"
93+
"cross-env": "^5.0.5",
94+
"webpack-bundle-analyzer": "3.0.2",
95+
"dotenv-webpack": "1.5.7"
16696
}
16797
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
"commit-msg": "npm run commitmsg"
4949
}
5050
},
51+
"resolutions": {
52+
"terser": "3.14.1"
53+
},
5154
"dependencies": {
5255
"accepts": "^1.3.4",
5356
"antd": "3.8.4",

0 commit comments

Comments
 (0)