-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
229 lines (229 loc) · 7.41 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
"name": "doenet_tools",
"version": "1.0.1",
"scripts": {
"dev": "vite",
"preview": "view preview",
"build": "vite build",
"dc": "docker compose -f ./docker-compose.yml -f ./.devcontainer/docker-compose.extend.yml",
"artifactory:build": "docker buildx build --platform linux/arm64,linux/amd64 -t cse-docker-doenet.artifactory.umn.edu/doenet_$npm_config_service:$npm_package_version -f docker/$npm_config_service/Dockerfile -t cse-docker-doenet.artifactory.umn.edu/doenet_$npm_config_service --provenance=false .",
"artifactory:push": "npm run artifactory:build -- --push",
"deploy:local": "npm run dc up -- -d --no-deps --build apache",
"deploy:development": "npm run build -- --mode development --outDir dist --minify false",
"deploy:dev": "npm run deploy:development",
"start:ci": "docker compose up -d",
"start:db": "docker compose exec mysql mysql -u root -phelloworld -e 'CREATE DATABASE IF NOT EXISTS doenet_local CHARACTER SET=utf8 COLLATE=utf8_unicode_ci;'",
"test": "cypress open",
"test:all": "cypress run -b 'chrome' --config video=false --headless",
"test:app": "cypress run -b 'electron' --config video=false,excludeSpecPattern=cypress/e2e/DoenetML/** --headless",
"test:parallel": "cypress-parallel -s test:all -t 4 -d cypress/e2e/DoenetML",
"publish:db": "docker compose exec -T -w /var/lib/mysql mysql mysqldump -u root -phelloworld --databases --add-drop-database --add-drop-table doenet_local > ./docker/volumes/db_init/db_template.sql",
"reset:db": "docker compose exec -T mysql mysql -u root -phelloworld doenet_local < ./docker/mysql/db_template.sql",
"reset:volumes": "docker volume rm doenet_node_modules doenet_vendor",
"format": "prettier --write \"src/**/*.{js,jsx,json,css}\" \"cypress/**/*.{js,jsx,json,css}\"",
"lint": "eslint \"src/**/*.{js,jsx}\"",
"realtime": "node realtime/realtime.js",
"compile_grammar": "npx lezer-generator --output src/Parser/doenet.js src/Parser/doenet.grammar"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.0",
"@chakra-ui/react": "^2.8.0",
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/commands": "^0.19.5",
"@codemirror/gutter": "^0.19.9",
"@codemirror/highlight": "^0.19.6",
"@codemirror/lang-xml": "^0.19.2",
"@codemirror/language": "^0.19.7",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@fontsource/jost": "^4.5.13",
"@fortawesome/fontawesome-svg-core": "^6.1.2",
"@fortawesome/free-regular-svg-icons": "^6.1.2",
"@fortawesome/free-solid-svg-icons": "^6.1.2",
"@fortawesome/react-fontawesome": "^0.1.18",
"@handsontable/react": "^12.1.2",
"@lezer/common": "^0.15.10",
"@lezer/lr": "^0.15.5",
"@lezer/xml": "^0.15.1",
"@react-spring/web": "^9.4.5",
"@use-gesture/react": "^10.2.22",
"axios": "^0.27.2",
"better-react-mathjax": "^1.0.3",
"browser-image-resizer": "^2.4.1",
"compromise": "^13.11.4",
"compromise-numbers": "^1.4.0",
"cookie": "^0.4.1",
"copy-to-clipboard": "^3.3.2",
"crypto-js": "^3.3.0",
"cssesc": "^3.0.0",
"csv-parse": "^5.3.6",
"esm-seedrandom": "^3.0.5",
"flowbite": "^1.8.1",
"flowbite-react": "^0.6.4",
"framer-motion": "^10.12.10",
"handsontable": "^12.1.2",
"hi-base32": "^0.5.1",
"http2-proxy": "^5.0.53",
"hyperformula": "^2.0.0",
"idb-keyval": "^6.1.0",
"js-cookie": "^2.2.1",
"json-stringify-deterministic": "^1.0.1",
"lodash.debounce": "^4.0.8",
"lorem-ipsum": "^2.0.4",
"math-expressions": "^2.0.0-alpha64",
"nanoid": "^3.1.31",
"papaparse": "^5.4.1",
"plotly.js-dist-min": "^2.20.0",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.0.3",
"react-datetime": "^3.2.0",
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-icons": "^4.11.0",
"react-is": "^18.2.0",
"react-mathquill": "^1.0.3",
"react-measure": "^2.5.2",
"react-router": "^6.9.0",
"react-router-dom": "^6.9.0",
"react-select": "^5.7.3",
"react-table": "^7.7.0",
"react-use-measure": "^2.1.1",
"react-visibility-sensor-v2": "^1.0.0",
"recoil": "^0.7.7",
"socket.io": "^4.5.0",
"socket.io-client": "^4.5.0",
"styled-components": "5.3.3",
"swiper": "^9.0.5"
},
"devDependencies": {
"@babel/eslint-parser": "^7.15.7",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@lezer/generator": "^0.15.2",
"@napi-rs/magic-string": "^0.3.4",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@testing-library/react": "^11.2.7",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-react": "^3.1.0",
"@web/test-runner": "^0.12.19",
"autoprefixer": "^10.4.15",
"chai": "^4.2.0",
"esbuild": "^0.14.54",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.5.0",
"http-proxy": "^1.18.1",
"mysql2": "^3.2.0",
"postcss": "^8.4.29",
"prettier": "^2.4.1",
"rollup": "^2.71.1",
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"tailwindcss": "^3.3.3",
"vite": "^4.2.1",
"vite-plugin-mpa": "^1.1.4"
},
"optionalDependencies": {
"@esbuild/linux-arm64": "^0.17.19",
"cypress": "^12.12.0",
"cypress-file-upload": "^5.0.8",
"cypress-parallel": "^0.13.0",
"cypress-plugin-tab": "^1.0.5",
"cypress-wait-until": "^1.7.2",
"eslint-plugin-cypress": "^2.12.1"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:cypress/recommended",
"prettier"
],
"rules": {
"linebreak-style": [
"error",
"unix"
],
"react/prop-types": "off",
"no-console": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useRecoilCallback)"
}
]
},
"plugins": [
"react",
"import",
"jsx-a11y",
"react-hooks",
"cypress"
],
"overrides": [
{
"files": [
"./src/Core/**/*.js",
"./src/Viewer/**/*.{jsx,js}"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-syntax-class-properties"
]
}
}
}
],
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es2020": true,
"node": true
},
"settings": {
"import/core-modules": [
"@ToolRoot",
"@Tool",
"@Toast",
"solid-svg",
"react-spring"
],
"import/resolver": {
"node": {
"paths": [
"src"
],
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
},
"react": {
"version": "detect"
}
}
}
}