-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 4.24 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
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@types/antd": "^1.0.0",
"@types/react-router": "^4.0.31",
"@types/react-router-config": "^1.0.9",
"@types/react-router-dom": "^4.3.1",
"autoprefixer": "7.1.6",
"axios": "^0.18.0",
"babel-jest": "^22.1.0",
"babel-loader": "^7.1.2",
"babel-preset-react-app": "^3.1.1",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"css-loader": "0.28.7",
"customize-cra": "^0.4.1",
"dotenv": "4.0.0",
"dotenv-expand": "4.2.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "0.11.2",
"fork-ts-checker-webpack-plugin": "^0.2.8",
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.29.0",
"intl": "^1.2.5",
"jest": "22.4.2",
"mobx": "^5.1.1",
"mobx-react": "^5.2.8",
"mobx-react-router": "^4.0.5",
"monaco-editor": "^0.17.1",
"monaco-editor-webpack-plugin": "^1.7.0",
"object-assign": "4.1.1",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-loader": "2.0.8",
"promise": "8.0.1",
"raf": "3.4.0",
"react": "^16.8.6",
"react-app-rewired": "^2.1.3",
"react-dev-utils": "^5.0.1",
"react-dom": "^16.5.1",
"react-intl": "^2.7.0",
"react-monaco-editor": "^0.28.0",
"react-router": "^4.3.1",
"react-router-config": "^1.0.0-beta.4",
"react-router-dom": "^4.3.1",
"resolve": "1.6.0",
"source-map-loader": "^0.2.1",
"style-loader": "0.19.0",
"sw-precache-webpack-plugin": "0.11.4",
"ts-jest": "22.0.1",
"ts-loader": "^2.3.7",
"tsconfig-paths-webpack-plugin": "^2.0.0",
"tslint": "^5.7.0",
"tslint-config-prettier": "^1.10.0",
"tslint-react": "^3.2.0",
"uglifyjs-webpack-plugin": "^1.1.8",
"url-loader": "0.6.2",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2",
"whatwg-fetch": "2.0.3"
},
"scripts": {
"start": "cross-env REACT_APP_SERVER_ENV=DEV node scripts/start.js",
"startpub": "cross-env REACT_APP_SERVER_ENV=PUB node scripts/start.js",
"test": "cross-env REACT_APP_SERVER_ENV=DEV node scripts/build.js",
"pub": "cross-env REACT_APP_SERVER_ENV=PUB node scripts/build.js",
"build": "npm run pub && npm run test"
},
"devDependencies": {
"@types/axios": "^0.14.0",
"@types/classnames": "^2.2.6",
"@types/intl": "^1.2.0",
"@types/jest": "^23.3.2",
"@types/node": "^10.9.4",
"@types/react": "^16.8.22",
"@types/react-dom": "^16.0.7",
"@types/react-intl": "^2.2.0",
"classnames": "^2.2.6",
"cross-env": "^5.2.0",
"less": "^3.8.1",
"less-loader": "^4.1.0",
"react-hot-loader": "^4.3.8",
"ts-import-plugin": "^1.5.5",
"typescript": "^3.0.3",
"vconsole": "^3.2.0"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.(j|t)s?(x)",
"<rootDir>/src/**/?(*.)(spec|test).(j|t)s?(x)"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.tsx?$": "<rootDir>/config/jest/typescriptTransform.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|ts|tsx)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"moduleFileExtensions": [
"web.ts",
"ts",
"web.tsx",
"tsx",
"web.js",
"js",
"web.jsx",
"jsx",
"json",
"node",
"mjs"
],
"globals": {
"ts-jest": {
"tsConfigFile": "/Users/yinhuang/aihuishou/playground/tsconfig.test.json"
}
}
},
"babel": {
"presets": [
"react-app"
],
"plugins": [
[
"import",
{
"libraryName": "antd",
"style": true
}
]
]
},
"proxy": {
"/erp-gateway": {
"target": "http://192.168.3.115:8512",
"ws": true,
"pathRewrite": {}
}
},
"maintheme": {
"black": "#000",
"text-fff": "#fff"
}
}