-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
212 lines (211 loc) · 6.54 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{
"name": "hzero-cli-test",
"private": true,
"devDependencies": {
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"conventional-changelog-cli": "^2.0.12",
"lerna": "3.20.2",
"standard-version": "^5.0.2",
"@smock/umi-plugin-smock": "^0.1.22",
"@smock/umi-plugin-sproxy": "^0.1.14",
"@typescript-eslint/parser": "2.19.0",
"hzero-cli-preset-ui": "^3.0.0",
"@typescript-eslint/eslint-plugin": "2.19.2",
"typescript": "4.0.3",
"yarn": "^1.13.0",
"hzero-cli": "~2.1.71-beta.2",
"hzero-boot": "~2.1.0",
"@babel/cli": "*",
"@babel/plugin-proposal-class-properties": "7.7.4",
"@babel/plugin-proposal-decorators": "^7.7.4"
},
"files": [
"lib",
"!.umi",
".hzerorc.js",
".hzerorc.json",
"!lib/config/alias.js",
"!lib/config/.env.*",
"!lib/config/babel-config.js",
"!lib/config/theme.js",
"!.umi-production"
],
"dependencies": {
"core-js": "~3.6.4",
"choerodon-ui": "*",
"react-dnd": "^10.0.2",
"react-dnd-html5-backend": "^10.0.2",
"hzero-front": "~1.9.1",
"hzero-front-hpfm": "~1.9.1",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"resolutions": {
"umi": "3.5.22",
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"mobx": "4.15.7",
"mobx-react": "6.1.4",
"@babel/preset-env": "~7.9.0",
"babel-plugin-import": "~1.13.0",
"@babel/core": "7.12.3",
"caniuse-lite": "1.0.30001223",
"eslint": "5.12.0",
"eslint-config-airbnb": "^17.1.0",
"@babel/preset-react": "~7.9.0",
"eslint-config-prettier": "^4.0.0",
"eslint-config-react-app": "^3.0.7",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-compat": "^3.3.0",
"eslint-plugin-flowtype": "2.50.1",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-jsx-a11y": "6.1.2",
"eslint-plugin-react": "7.12.4",
"stylelint":"13.7.1",
"conventional-changelog": "~3.0.6",
"browserslist":"^4.16.0",
"lerna": "3.20.2",
"url-loader": "1.1.2",
"css-loader": "1.0.0",
"optimize-css-assets-webpack-plugin": "5.0.3",
"file-loader": "2.0.0",
"mini-css-extract-plugin": "0.4.1",
"less-loader": "5.0.0",
"@babel/cli": "^7.8.4",
"webpack": "4.42.1",
"react": "16.12.0",
"react-router": "~4.3.1",
"react-router-dom": "~4.3.1",
"react-dom": "16.12.0",
"html-webpack-plugin": "4.0.0-alpha.2",
"typescript": "4.0.3"
},
"description": "description for hzero-cli-test",
"author": "",
"version": "0.0.1",
"eslintConfig": {
"extends": "react-app"
},
"scripts": {
"mock": "smock -p 5000",
"proxy": "sproxy -p 10011",
"codescan": "hzero codescan",
"start": "hzero-cli start",
"start:mock": "cross-env NODE_PROFILE=mock hzero-cli start",
"build": "hzero-cli build --all-packages",
"build:production": "cross-env NODE_OPTIONS='--max_old_space_size=8196' NODE_PROFILE=production hzero-cli build --only-build-micro --all-packages",
"build:all-ms": "hzero-cli build --only-build-micro --all-packages",
"build:ms": "cross-env NODE_OPTIONS='--max_old_space_size=8196' hzero-cli build --only-build-micro",
"build:ext-ms": "cross-env BUILD_PUBLIC_MS=true BUILD_DIST_PATH=./dist-ext BUILD_SKIP_PARENT=true hzero-cli build --only-build-micro",
"build:analyze": "cross-env ANALYZE=true hzero-cli build",
"build:dll": "hzero-cli build --build-dll",
"build:dll-dev": "hzero-cli build --build-dll --build-dll-dev",
"transpile": "hzero-cli transpile --all",
"lint": "eslint 'src/**/*.{js,jsx,tsx,ts}' && npm run lint:style && tsc --noEmit --emitDeclarationOnly false",
"lint:fix": "eslint --quiet --fix 'src/**/*.{js,jsx,tsx,ts}' && npm run lint:style",
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
"lint-staged": "lint-staged",
"bootstrap": "yarn --registry http://nexus.saas.hand-china.com/content/groups/hzero-npm-group/",
"test": "node scripts/test.js",
"changelog": "node node_modules/.bin/conventional-changelog -p eslint -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"prettier": "prettier --write ./src/**/**/**/*",
"tree": "tree -I node_modules -L 3",
"release": "standard-version",
"release-module": "node scripts/release.js",
"icon": "npx cross-env ICON_FONT_URL=//at.alicdn.com/t/font_1440728_2mntu9m71ej.css node scripts/icon.js",
"hzero-version": "node scripts/version.js"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"post-merge": "git submodule update",
"post-checkout": "git submodule update"
}
},
"browserslist": {
"production": [
">0.2%",
"ie 11"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"resolver": "jest-pnp-resolver",
"setupFiles": [
"react-app-polyfill/jsdom"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web",
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
"node"
],
"watchPlugins": [
"<rootDir>/node_modules/jest-watch-typeahead/filename.js",
"<rootDir>/node_modules/jest-watch-typeahead/testname.js"
]
},
"lint-staged": {
"src/**/*.{js,jsx,tsx,ts}": [
"eslint --quiet --fix",
"git add"
],
"packages/*/src/**/*.{js,jsx,tsx,ts}": [
"eslint --quiet --fix",
"git add"
],
"src/**/*.less": [
"stylelint --syntax less",
"git add"
],
"packages/**/src/**/*.less": [
"stylelint --syntax less",
"git add"
],
"src/**/*.{js,jsx,tsx,ts,less}": [
"prettier --write",
"git add"
],
"packages/*/src/**/*.{js,jsx,tsx,ts,less}": [
"prettier --write",
"git add"
]
},
"workspaces": [
"packages/*"
]
}