forked from Doenet/DoenetApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
185 lines (185 loc) · 5.58 KB
/
Copy pathpackage.json
File metadata and controls
185 lines (185 loc) · 5.58 KB
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
{
"scripts": {
"start": "docker-compose up",
"start:ci": "docker-compose up -d",
"start:dev": "npm install && npx snowpack dev",
"dev:cmd": "docker-compose exec dev",
"dev:restart": "docker-compose restart dev",
"dev:install": "docker-compose exec dev npm install",
"dev:uninstall": "docker-compose exec dev npm uninstall",
"build": "docker exec -i doenet_dev_1 npx snowpack build --config snowpack.deploy.config.js",
"build:ci": "snowpack build --out dist_ci --no-watch",
"build:clean": "snowpack build --clean --reload --config snowpack.deploy.config.js",
"build:docker": "docker-compose build",
"build:core": "node package.core.js",
"test": "cypress open",
"test:all": "cypress run -b 'chrome' --config video=false --headless",
"publish_db": "docker-compose up -d mysql && docker exec --privileged -w /var/lib/mysql mysql mysqldump --databases --add-drop-database --add-drop-table -u root -phelloworld doenet_local > ./volumes/db_init/db_template.sql",
"reset_db": "docker exec -i doenet_mysql_1 sh -c 'mysql -u root -phelloworld doenet_local' < ./doenet_docker/volumes/db_init/db_template.sql",
"reset_volumes": "docker volume rm doenet_node_modules doenet_vendor",
"format": "prettier --write \"src/**/*.{js,jsx,json}\"",
"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": {
"@blueprintjs/core": "^4.0.0-alpha.0",
"@blueprintjs/datetime": "^4.0.0-alpha.0",
"@codemirror/basic-setup": "^0.18.2",
"@codemirror/lang-xml": "^0.18.0",
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-regular-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@fortawesome/react-fontawesome": "^0.1.14",
"@handsontable/react": "^9.0.0",
"@react-spring/web": "^9.2.3",
"axios": "^0.21.1",
"compromise": "^13.11.3",
"compromise-numbers": "^1.4.0",
"cookie": "^0.4.1",
"crypto-js": "^4.0.0",
"cssesc": "^3.0.0",
"csv-parse": "^4.16.0",
"esm-seedrandom": "^3.0.5",
"handsontable": "^9.0.0",
"http2-proxy": "^5.0.53",
"hyperformula": "^0.6.2",
"js-cookie": "^2.2.1",
"lezer": "^0.13.4",
"lezer-generator": "^0.13.3",
"lezer-xml": "^0.13.4",
"lodash.debounce": "^4.0.8",
"lorem-ipsum": "^2.0.3",
"math-expressions": "^2.0.0-alpha26",
"nanoid": "^3.1.23",
"react": "^16.14.0",
"react-copy-to-clipboard": "^5.0.3",
"react-dom": "^16.14.0",
"react-dropzone": "^11.3.4",
"react-is": "^17.0.1",
"react-mathjax": "^1.0.1",
"react-mathjax2": "0.0.2",
"react-mathquill": "^1.0.1",
"react-measure": "^2.5.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-table": "^7.7.0",
"react-use-gesture": "^9.1.3",
"react-visibility-sensor": "^5.1.1",
"recoil": "^0.2.0",
"socket.io": "^4.1.3",
"socket.io-client": "^4.1.3",
"styled-components": "^5.3.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.14.7",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@prettier/plugin-php": "^0.17.2",
"@snowpack/plugin-dotenv": "^2.1.0",
"@snowpack/plugin-react-refresh": "^2.4.2",
"@snowpack/web-test-runner-plugin": "^0.2.0",
"@testing-library/react": "^11.2.7",
"@web/test-runner": "^0.12.19",
"chai": "^4.2.0",
"cypress": "^7.7.0",
"esbuild": "^0.12.9",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"http-proxy": "^1.18.1",
"prettier": "^2.3.2",
"snowpack": "^3.5.8",
"snowpack-plugin-raw-file-loader": "^1.0.9"
},
"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"
}
}
}
}