forked from scalableminds/webknossos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
239 lines (239 loc) · 10.9 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
230
231
232
233
234
235
236
237
238
239
{
"name": "webknossos",
"license": "AGPL-3.0",
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "git://github.com/scalableminds/webknossos.git"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@redux-saga/testing-utils": "^1.1.5",
"@shaderfrog/glsl-parser": "^0.3.0",
"@types/color-hash": "^1.0.2",
"@types/cwise": "^1.0.4",
"@types/dagre": "^0.7.48",
"@types/lodash": "^4.17.4",
"@types/memoize-one": "^5.1.2",
"@types/merge-img": "^2.1.1",
"@types/mock-require": "^2.0.1",
"@types/ndarray": "^1.0.11",
"@types/ndarray-ops": "^1.2.4",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@types/react-redux": "^7.1.23",
"@types/react-router-dom": "^5.3.3",
"@types/react-sortable-tree": "^0.3.15",
"@types/react-virtualized": "^9.21.21",
"@types/sinon": "^10.0.11",
"@types/url-join": "^4.0.0",
"abort-controller": "^3.0.0",
"ava": "^3.13.0",
"browserslist-to-esbuild": "^1.2.0",
"c8": "^9.1.0",
"commander": "^10.0.0",
"copy-webpack-plugin": "^11.0.0",
"coveralls": "^3.0.2",
"css-loader": "^6.5.1",
"documentation": "^14.0.2",
"domexception": "^2.0.1",
"dpdm": "^3.14.0",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.9.1",
"esbuild": "^0.20",
"espree": "^3.5.4",
"husky": "^0.14.3",
"jsdoc": "^3.5.5",
"jsdom": "^23.2.0",
"json-loader": "^0.5.7",
"less": "^4.0.0",
"less-loader": "^10.2.0",
"lz4-wasm-nodejs": "^0.9.2",
"merge-img": "^2.1.2",
"mock-require": "^1.2.1",
"node-fetch": "^2.6.7",
"pg": "^7.4.1",
"pixelmatch": "^5.2.0",
"pngjs": "^3.3.3",
"proto-loader6": "^0.4.0",
"puppeteer": "^19.7.2",
"react-test-renderer": "^16.8.0",
"redux-mock-store": "^1.2.2",
"retoggle": "^0.3.0",
"shelljs": "^0.8.5",
"sinon": "^12.0.1",
"tmp": "0.0.33",
"ts-loader": "^9.4.1",
"typescript": "^5.5.0",
"typescript-coverage-report": "^0.8.0",
"webpack": "^5.74.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2"
},
"optionalDependencies": {},
"scripts": {
"start": "node tools/proxy/proxy.js",
"build": "node --max-old-space-size=4096 node_modules/.bin/webpack --env production",
"@comment build-backend": "Only check for errors in the backend code like done by the CI. This command is not needed to run WEBKNOSSOS",
"build-backend": "yarn build-wk-backend && yarn build-wk-datastore && yarn build-wk-tracingstore",
"build-wk-backend": "sbt -no-colors -DfailOnWarning compile stage",
"build-wk-datastore": "sbt -no-colors -DfailOnWarning \"project webknossosDatastore\" copyMessages compile stage",
"build-wk-tracingstore": "sbt -no-colors -DfailOnWarning \"project webknossosTracingstore\" copyMessages compile stage",
"build-dev": "node_modules/.bin/webpack",
"build-watch": "node_modules/.bin/webpack -w",
"listening": "lsof -i:5005,7155,9000,9001,9002",
"kill-listeners": "kill -9 $(lsof -t -i:5005,7155,9000,9001,9002)",
"rm-fossil-lock": "rm fossildb/data/LOCK",
"test": "tools/test.sh test --timeout=30s",
"test-changed": "tools/test.sh test-changed --timeout=30s",
"test-verbose": "xvfb-run -s '-ac -screen 0 1280x1024x24' tools/test.sh test --timeout=60s --verbose",
"test-backend": "sbt \"testOnly backend.*\"",
"test-only": "tools/test.sh test --timeout=30s",
"test-debug": "tools/test.sh test-debug",
"test-watch": "tools/test.sh test --watch",
"test-prepare": "tools/test.sh prepare",
"test-prepare-watch": "tools/test.sh prepare -w --verbose",
"test-e2e": "tools/postgres/dbtool.js prepare-test-db && tools/test.sh test-e2e --timeout=60s --verbose",
"test-screenshot": "tools/test.sh test-screenshot --timeout=5m",
"test-wkorg-screenshot": "tools/test.sh test-wkorg-screenshot --timeout=5m",
"refresh-screenshots": "rm -rf frontend/javascripts/test/screenshots/** && docker compose up screenshot-tests",
"test-help": "echo For development it is recommended to run yarn test-prepare-watch in one terminal and yarn test-watch in another. This is the fastest way to perform incremental testing. If you are only interested in running test once, use yarn test.",
"remove-e2e-snapshots": "rm -rf frontend/javascripts/test/snapshots/public-test/test-bundle/test/backend-snapshot-tests/ && rm -rf frontend/javascripts/test/snapshots/public-test/test-bundle/test/enzyme/",
"remove-all-snapshots": "rm -rf frontend/javascripts/test/snapshots/",
"stash-cmake-cache": "[ -f webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt ] && mv webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt.bak || true",
"stash-pop-cmake-cache": "[ -f webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt.bak ] && mv webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt.bak webknossos-jni/target/native/x86_64-linux/build/CMakeCache.txt || true",
"refresh-e2e-snapshots": "yarn remove-e2e-snapshots && mkdir -p frontend/javascripts/test/snapshots/type-check && yarn stash-cmake-cache && docker compose down && docker compose up e2e-tests && yarn stash-pop-cmake-cache",
"refresh-all-snapshots": "yarn remove-all-snapshots && yarn test && yarn refresh-e2e-snapshots",
"check-frontend": "yarn run biome check frontend --organize-imports-enabled=false && tools/assert-no-test-only.sh",
"fix-frontend": "yarn run biome check frontend --apply --organize-imports-enabled=false && echo Please proofread the applied suggestions, as they may not be safe.",
"format-backend": "sbt \";scalafmt; util/scalafmt; webknossosTracingstore/scalafmt; webknossosDatastore/scalafmt\"",
"lint-backend": "sbt \";scapegoat\"",
"licenses-backend": "sbt dumpLicenseReport",
"docs": "node_modules/.bin/documentation build --shallow frontend/javascripts/oxalis/api/api_loader.ts frontend/javascripts/oxalis/api/api_latest.ts --github --project-name \"WEBKNOSSOS Frontend API\" --format html --output public/docs/frontend-api",
"refresh-schema": "./tools/postgres/dbtool.js refresh-schema && rm -f target/scala-2.13/src_managed/schema/com/scalableminds/webknossos/schema/Tables.scala",
"enable-jobs": "sed -i -e 's/jobsEnabled = false/jobsEnabled = true/g' ./conf/application.conf; sed -i -e 's/voxelyticsEnabled = false/voxelyticsEnabled = true/g' ./conf/application.conf; ./tools/postgres/dbtool.js enable-jobs",
"disable-jobs": "sed -i -e 's/jobsEnabled = true/jobsEnabled = false/g' ./conf/application.conf; sed -i -e 's/voxelyticsEnabled = true/voxelyticsEnabled = false/g' ./conf/application.conf; ./tools/postgres/dbtool.js disable-jobs",
"insert-local-datastore": "./tools/postgres/dbtool.js insert-local-datastore",
"coverage-local": "c8 report --reporter=html && echo Success! Open coverage/index.html",
"coverage": "c8 report --reporter=text-lcov | coveralls",
"postcheckout": "echo 'Deleting auto-generated typescript files...' && rm -f frontend/javascripts/test/snapshots/type-check/*.ts",
"apply-evolutions": "tools/postgres/dbtool.js apply-evolutions",
"postinstall": "cd tools/proxy && yarn install",
"typecheck": "yarn tsc",
"ts": "yarn tsc",
"ts-watch": "yarn tsc --watch",
"ts-coverage": "typescript-coverage-report",
"find-cyclic-dependencies": "yarn run dpdm -T --tree false --warning false --extensions .ts,.tsx frontend/javascripts/main.tsx",
"check-cyclic-dependencies": "node ./tools/check-cyclic-dependencies.js",
"startf": "yarn rm-fossil-lock; yarn kill-listeners; yarn start",
"beautify-front": "yarn fix-frontend && yarn typecheck",
"beautify": "yarn format-backend && yarn beautify-front"
},
"dependencies": {
"@airbrake/browser": "^2.1.7",
"@ant-design/colors": "^6.0.0",
"@ant-design/icons": "^4.6.2",
"@fortawesome/fontawesome-free": "^5.15.4",
"@rehooks/document-title": "^1.0.2",
"@scalableminds/prop-types": "^15.8.1",
"@tanstack/query-sync-storage-persister": "^4.14.1",
"@tanstack/react-query": "^4.0.8",
"@tanstack/react-query-persist-client": "^4.14.1",
"@types/file-saver": "^2.0.5",
"@types/lz-string": "^1.3.34",
"@types/pako": "^2.0.0",
"@types/pixelmatch": "^5.2.4",
"@types/pngjs": "^6.0.1",
"@types/three": "^0.142.0",
"@zip.js/zip.js": "^2.7.32",
"ansi-to-react": "^6.1.6",
"antd": "^5.14.0",
"ball-morphology": "^0.1.0",
"base64-js": "^1.2.1",
"beautiful-react-hooks": "^3.11.1",
"chalk": "^5.0.1",
"classnames": "^2.2.5",
"color-hash": "^2.0.1",
"comlink": "^4.3.0",
"cwise": "^1.0.10",
"dagre": "^0.8.5",
"data.maybe": "^1.2.2",
"dayjs": "^1.11.7",
"deep-for-each": "^2.0.3",
"deep-freeze": "0.0.1",
"dice-coefficient": "^2.1.0",
"distance-transform": "^1.0.2",
"esbuild-loader": "^4.1.0",
"file-saver": "^2.0.1",
"flexlayout-react": "^0.5.5",
"hammerjs": "^2.0.8",
"history": "^4.7.2",
"html2canvas": "^1.4.1",
"immutability-helper": "^3.1.1",
"javascript-natural-sort": "^0.7.1",
"js-priority-queue": "^0.1.5",
"jsonschema": "^1.2.4",
"lodash": "^4.17.21",
"lz-string": "^1.4.4",
"lz4-wasm": "^0.9.2",
"memoize-one": "^6.0.0",
"mini-css-extract-plugin": "^2.5.2",
"minisearch": "^5.0.0",
"mjs": "^1.0.0",
"ml-matrix": "^6.10.4",
"nanoevents": "^5.1.8",
"ndarray": "^1.0.19",
"ndarray-moments": "^1.0.0",
"ndarray-ops": "^1.2.2",
"onnxruntime-web": "^1.17.0",
"pako": "^2.1.0",
"pretty-bytes": "^5.1.0",
"process": "^0.11.10",
"protobufjs": "^6.11.4",
"rc-util": "^5.24.4",
"react": "^16.12.0",
"react-colorful": "^5.6.1",
"react-debounce-render": "^8.0.1",
"react-dnd": "^11.1.3",
"react-dnd-html5-backend": "^11.1.3",
"react-dom": "^16.9.0",
"react-dropzone": "^11.3.1",
"react-flow-renderer": "^10.3.16",
"react-json-tree": "^0.17.0",
"react-markdown": "^8.0.7",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-sortable-hoc": "^2.0.0",
"react-sortable-tree": "^2.8.0",
"react-virtualized": "^9.22.2",
"redux": "^3.6.0",
"redux-batched-actions": "^0.5.0",
"redux-saga": "^1.3.0",
"resumablejs": "^1.1.0",
"saxophone": "^0.8.0",
"three": "^0.137.0",
"tween.js": "^16.3.1",
"typed-redux-saga": "^1.4.0",
"url": "^0.11.0",
"url-join": "^4.0.0",
"worker-loader": "^3.0.8"
},
"resolutions": {
"**/mini-store": "^1.1.0",
"**/redux": "3.7.2",
"**/rc-tree": "^5.7.12"
},
"ava": {
"files": ["./public-test/test-bundle/**/*.{js,jsx}"],
"ignoredByWatcher": ["./binaryData/**/*.*"],
"require": ["./frontend/javascripts/test/_ava_polyfill_provider.ts"],
"snapshotDir": "frontend/javascripts/test/snapshots",
"concurrency": 8
},
"c8": {
"exclude": ["public-test/test-bundle/test/**/*.*", "frontend/javascripts/test/**/*.*"],
"reporter": "lcov"
}
}