-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
212 lines (212 loc) · 6.92 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": "ant-design-pro",
"version": "6.0.0",
"private": true,
"description": "An out-of-box UI solution for enterprise applications",
"scripts": {
"analyze": "cross-env ANALYZE=1 max build",
"build": "max build --sourcemap --outdir=app/assets/builds",
"deploy": "npm run build && npm run gh-pages",
"dev": "env-cmd -f .env npm run start:dev",
"gh-pages": "gh-pages -d dist",
"i18n-remove": "pro i18n-remove --locale=zh-CN --write",
"postinstall": "max setup",
"jest": "jest",
"lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
"prepare": "husky install",
"prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
"preview": "npm run build && max preview --port 8000",
"record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
"start": "cross-env UMI_ENV=dev max dev",
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
"start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev",
"start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
"start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
"test": "jest",
"test:coverage": "npm run jest -- --coverage",
"test:update": "npm run jest -- -u",
"tsc": "NODE_OPTIONS='--max-old-space-size=16384' tsc --noEmit",
"tsc:noemit": "NODE_OPTIONS='--max-old-space-size=16384' tsc --noEmit",
"test:e2e": "PORT=8000 node ./tests/run-tests.js",
"serve": "REACT_APP_API_URL=http://localhost PORT=8000 umi-serve",
"playwright": "PORT=8000 playwright install && playwright test",
"playwright:headed": "PORT=8000 playwright install && playwright test --headed --project=chromium",
"playwright:debug": "PORT=8000 playwright install && playwright test --debug",
"playwright:local": "PORT=8000 playwright test",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org sentry --project admin-panel ./dist && sentry-cli --url https://sentry.escolait.pl/ sourcemaps upload --org sentry --project admin-panel ./dist"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": {
"@ant-design/icons": "^4.8.1",
"@ant-design/plots": "^2.1.13",
"@ant-design/pro-components": "^2.6.48",
"@atlaskit/tree": "^8.8.7",
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@escolalms/gift-pegjs": "^0.2.8",
"@escolalms/h5p-react": "^0.2.18",
"@escolalms/markdown-editor": "^12.0.6",
"@escolalms/scorm-player": "^0.0.0",
"@escolalms/ts-models": "^0.0.35",
"@sentry/cli": "^2.40.0",
"@sentry/esbuild-plugin": "^2.22.7",
"@sentry/react": "^8",
"@testing-library/jest-dom": "^6.4.5",
"@umijs/route-utils": "^2.2.2",
"@webscopeio/react-textarea-autocomplete": "^4.9.2",
"antd": "^5.15.3",
"antd-style": "^3.6.1",
"array-move": "^4.0.0",
"babel-jest": "^29.7.0",
"babel-preset-react-app": "^10.0.1",
"classnames": "^2.5.1",
"conditional-wrap": "^1.0.2",
"cross-port-killer": "^1.4.0",
"date-fns": "^3.3.1",
"enzyme": "^3.11.0",
"export-to-csv": "^1.2.2",
"file-saver": "^2.0.5",
"jest-esm-transformer": "^1.0.0",
"jsoneditor": "^10.0.0",
"jsoneditor-react": "^3.1.2",
"jszip": "^3.10.1",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"omit.js": "^2.0.2",
"querystring": "^0.2.1",
"rc-menu": "^9.12.4",
"rc-util": "^5.38.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-grid-layout": "^1.4.4",
"react-helmet-async": "^1.3.0",
"react-indiana-drag-scroll": "^2.2.0",
"react-json-view": "^1.21.3",
"react-pdf": "^8.0.0",
"react-player": "^2.14.1",
"react-sortable-hoc": "^2.0.0",
"react-tiny-oembed": "^1.1.0",
"reportbro-designer": "^3.6.0"
},
"devDependencies": {
"@ant-design/pro-cli": "^3.3.0",
"@playwright/test": "^1.41.2",
"@testing-library/react": "^13.4.0",
"@types/classnames": "^2.3.1",
"@types/express": "^4.17.21",
"@types/file-saver": "^2.0.7",
"@types/history": "^4.7.11",
"@types/jest": "^29.5.11",
"@types/lodash": "^4.14.202",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/react-grid-layout": "^1.3.5",
"@types/react-helmet": "^6.1.11",
"@types/uuid": "^9.0.8",
"@types/webscopeio__react-textarea-autocomplete": "^4.7.5",
"@umijs/fabric": "^4.0.1",
"@umijs/lint": "^4.1.1",
"@umijs/max": "^4.1.1",
"cross-env": "^7.0.3",
"env-cmd": "^10.1.0",
"eslint": "^8.56.0",
"express": "^4.18.2",
"gh-pages": "^5.0.0",
"husky": "^7.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^10.5.4",
"madge": "6.0.0",
"mockjs": "^1.1.0",
"prettier": "^2.8.8",
"react-dev-inspector": "^1.9.0",
"swagger-ui-dist": "^4.19.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"umi-presets-pro": "^2.0.3",
"umi-serve": "^1.9.11"
},
"resolutions": {
"immer": "^9.0.6",
"underscore": "^1.12.1",
"rollup": "^2.79.2",
"body-parser": "^1.20.3",
"node-fetch": "^2.6.7"
},
"engines": {
"node": ">=20.0.0"
},
"create-umi": {
"ignoreScript": [
"docker*",
"functions*",
"site",
"generateMock"
],
"ignoreDependencies": [
"netlify*",
"serverless"
],
"ignore": [
".dockerignore",
".git",
".github",
".gitpod.yml",
"CODE_OF_CONDUCT.md",
"Dockerfile",
"Dockerfile.*",
"lambda",
"LICENSE",
"netlify.toml",
"README.*.md",
"azure-pipelines.yml",
"docker",
"CNAME",
"create-umi"
]
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/config/jest/setupTests.js"
],
"transform": {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"/node_modules/(?!antd|@ant-design|rc-.+?|@babel/runtime).+(js|jsx)$"
],
"coverageReporters": [
"json",
"lcov",
"text",
"clover"
],
"testPathIgnorePatterns": [
"/e2e/"
],
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"src/components/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
"!src/.umi/**/*"
]
}
}