forked from InsightSoftwareConsortium/itk-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
243 lines (243 loc) · 10.1 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
240
241
242
243
{
"name": "itk-wasm",
"version": "0.0.0-semantically-released",
"description": "High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.",
"main": "./dist/index.js",
"browser": {
"./index.js": "./dist/browser/index.js"
},
"exports": {
".": {
"browser": "./dist/browser/index.js",
"import": "./dist/node/index.js",
"umd": "./dist/umd/itk-wasm.js",
"package.json": "./package.json",
"default": "./dist/index.js"
}
},
"type": "module",
"types": "./dist/index.d.ts",
"directories": {
"doc": "docs",
"test": "test"
},
"scripts": {
"commit": "git cz",
"bindgen": "node ./src/itk-wasm-cli.js bindgen ./dist/dicom/src ./dist/dicom/public/pipelines/*.wasm",
"build": "npm run build:emscripten && npm run build:tsc && npm run build:tscWorkersModuleLoader && npm run build:tscWebWorkers && npm run build:workerBundles && npm run build:workerMinBundles && npm run build:webpack && node ./src/io/internal/packages/package-json-gen.cjs && npm run build:emscripten:packages",
"build:debug": "npm run build:emscripten -- --debug && npm run build:tsc && npm run build:tscWorkersModuleLoader && npm run build:tscWebWorkers && npm run build:workerBundles && npm run build:workerMinBundles && npm run build:webpack -- --mode development",
"build:tsc": "tsc --pretty",
"build:tscWorkersModuleLoader": "tsc --types --lib es2017,webworker --rootDir ./src/ --outDir ./dist/ --moduleResolution node --target es2017 --module es2020 --strict --forceConsistentCasingInFileNames --declaration ./src/core/internal/loadEmscriptenModuleWebWorker.ts",
"build:tscWebWorkers": "tsc -p ./tsconfigWebWorkers.json",
"build:workerBundles": "rollup -c rollup.worker.config.js ./dist/web-workers/pipeline.worker.js",
"build:workerMinBundles": "rollup -c rollup.worker.min.config.js ./dist/web-workers/pipeline.worker.js && shx cp ./dist/web-workers/min-bundles/pipeline.worker.js ./dist/web-workers/bundles/pipeline.min.worker.js",
"build:webpack": "webpack --mode production --progress --color && webpack --mode development --progress --color",
"build:emscripten": "node ./src/build-emscripten.js",
"build:emscripten:compress-stringify": "node ./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build build ",
"build:bindgen:typescript:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build bindgen --package-name @itk-wasm/compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:emscripten:dicom": "node ./src/itk-wasm-cli.js -s packages/dicom -b emscripten-build build ",
"build:bindgen:typescript:dicom": "./src/itk-wasm-cli.js -s packages/dicom -b emscripten-build bindgen --package-name @itk-wasm/dicom --package-description \"Read files and images related to DICOM file format.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:emscripten:packages": "npm run build:emscripten:compress-stringify && npm run build:bindgen:typescript:compress-stringify && npm run build:emscripten:dicom && npm run build:bindgen:typescript:dicom",
"build:wasi": "node ./src/build-wasi.js && npm run build:wasi:packages",
"build:wasi:compress-stringify": "node ./src/itk-wasm-cli.js -i itkwasm/wasi:latest -s packages/compress-stringify -b wasi-build build",
"build:wasi:packages": "npm run build:wasi:compress-stringify",
"cypress:open": "npx cypress open",
"cypress:run": "npx cypress run --config defaultCommandTimeout=8000",
"cypress:install": "npx cypress install",
"cypress:runChrome": "npx cypress run --config defaultCommandTimeout=8000 --browser chrome",
"cypress:runFirefox": "npx cypress run --config defaultCommandTimeout=8000 --browser firefox",
"cypress:runFirefox:ci": "npm run cypress:install && npx cypress run --config defaultCommandTimeout=8000 --browser firefox",
"start": "webpack-dev-server --mode development --env DEVSERVER",
"start:production": "webpack-dev-server --mode production",
"test:wasi": "npm run test:cliRun && npm run test:cliTest",
"test": "npm run test:lint && npm run test:node && npm run test:browser && npm run test:chrome && npm run test:firefox",
"test:lint": "ts-standard --fix \"src/**/*.ts\" && standard --fix \"test/**/*.js\"",
"test:node": "ava test/node/core/*.js test/node/io/image/*.js test/node/io/mesh/*.js test/node/pipeline/*.js",
"test:cliRun": "node src/itk-wasm-cli.js -b wasi-build -s ./test/pipelines/stdout-stderr-pipeline run -r wasmtime stdout-stderr-test.wasi.wasm",
"test:cliTest": "node src/itk-wasm-cli.js -b wasi-build -s ./test/pipelines/stdout-stderr-pipeline test",
"test:browser": "karma start ./karma.conf.cjs",
"test:browser:debug": "karma start ./karma.conf.cjs --no-single-run",
"test:browser:debug:cypress": "start-server-and-test start http-get://localhost:8083 cypress:open",
"test:cypress": "start-server-and-test start http-get://localhost:8083 cypress:run",
"test:chrome": "start-server-and-test start http-get://localhost:8083 cypress:runChrome",
"test:firefox:ci": "start-server-and-test start http-get://localhost:8083 cypress:runFirefox:ci",
"test:firefox": "start-server-and-test start http-get://localhost:8083 cypress:runFirefox",
"prepublishOnly": "npm run build:tsc && node ./src/update-versions.cjs && node ./src/io/internal/packages/package-json-gen.cjs && npm run build:workerBundles && npm run build:workerMinBundles && npm run build:webpack",
"clean": "git clean -fdx"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"repository": {
"type": "git",
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm.git"
},
"keywords": [
"itk",
"imaging",
"wasm",
"webassembly",
"wasi",
"io",
"medical",
"scientific"
],
"author": "Insight Software Consortium",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/InsightSoftwareConsortium/itk-wasm/issues"
},
"homepage": "https://wasm.itk.org/",
"devDependencies": {
"@babel/core": "^7.13.1",
"@babel/plugin-transform-modules-commonjs": "^7.13.0",
"@babel/plugin-transform-runtime": "^7.15.8",
"@babel/preset-env": "^7.13.5",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@npmcli/promise-spawn": "^2.0.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@types/estree": "0.0.51",
"@types/mime-types": "^2.1.1",
"assert": "^2.0.0",
"async": "^3.2.1",
"ava": "^4.3.3",
"babel-loader": "^8.2.3",
"commitizen": "^4.2.4",
"core-js": "^3.19.0",
"cypress": "^10.10.0",
"cz-conventional-changelog": "2.1.0",
"file-api": "^0.10.4",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
"karma-tap": "^4.2.0",
"karma-tap-pretty-reporter": "^4.2.0",
"karma-webpack": "^5.0.0",
"node-module-polyfill": "^1.0.1",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"puppeteer": "^18.2.1",
"readable-stream": "^3.6.0",
"resolve-typescript-plugin": "^1.2.0",
"rollup": "^2.79.0",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^20.1.0",
"shx": "^0.3.4",
"standard": "^16.0.4",
"start-server-and-test": "^1.14.0",
"stream-browserify": "^3.0.0",
"tap-spec": "^5.0.0",
"tape": "^4.13.0",
"ts-loader": "^9.3.1",
"ts-standard": "^11.0.0",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.2",
"webpackbar": "^5.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@types/emscripten": "^1.39.6",
"axios": "^0.23.0",
"commander": "^9.4.0",
"fs-extra": "^10.0.0",
"glob": "^8.1.0",
"markdown-table": "^3.0.3",
"mime-types": "^2.1.35",
"promise-file-reader": "^1.0.3",
"webworker-promise": "^0.4.2"
},
"bin": {
"itk-wasm": "./src/itk-wasm-cli.js"
},
"sideEffects": false,
"ts-standard": {
"ignore": [
"src/core/internal/loadEmscriptenModuleWebWorker.ts",
"src/web-workers/*.ts",
"src/core/ITKWasmEmscriptenModule.ts",
"src/pipeline/PipelineEmscriptenModule.ts",
"src/bindgen/typescript-resources/*"
]
},
"release": {
"repositoryUrl": "git@github.com:InsightSoftwareConsortium/itk-wasm.git",
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"release",
{
"name": "main",
"channel": "beta",
"prerelease": "b"
}
],
"tagFormat": "itk-wasm-v${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogTitle": "[itk-wasm](https://wasm.itk.org) combines [ITK](https://itk.org) and [WebAssembly](https://webassembly.org/) to enable high-performance, multi-dimensional spatial analysis and visualization."
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "."
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./dist/image-io"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./dist/mesh-io"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
]
}
],
"@semantic-release/github"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
2,
"always",
200
],
"subject-case": [
2,
"never",
[
"start-case",
"pascal-case",
"upper-case"
]
]
}
}
}