Skip to content

Commit

Permalink
build: consolidate build script package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 31, 2024
1 parent 92287e1 commit 86b9af8
Show file tree
Hide file tree
Showing 11 changed files with 280 additions and 131 deletions.
32 changes: 20 additions & 12 deletions examples/inputs-outputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,35 @@
"packageManager": "[email protected]",
"description": "An itk-wasm pipeline example for inputs/outputs",
"type": "module",
"itk-wasm": {
"emscripten-docker-image": "itkwasm/emscripten:latest",
"wasi-docker-image": "itkwasm/wasi:latest",
"typescript-package-name": "@itk-wasm/inputs-outputs-example",
"python-package-name": "itkwasm-inputs-outputs-example",
"package-description": "An example that has non-trivial inputs and outputs.",
"repository": "https://github.com/InsightSoftwareConsortium/itk-wasm"
},
"scripts": {
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"build:emscripten": "itk-wasm pnpm-script build:emscripten -- -i itkwasm/emscripten:latest",
"build:emscripten": "itk-wasm pnpm-script build:emscripten",
"build:emscripten:debug": "itk-wasm pnpm-script build:emscripten:debug",
"build:wasi": "itk-wasm pnpm-script build:wasi -- -i itkwasm/wasi",
"build:wasi": "itk-wasm pnpm-script build:wasi",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi -- ./python/inputs-outputs-example-wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript -- --package-name inputs-outputs-example --package-description \"An example that has non-trivial inputs and outputs.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"bindgen:python": "itk-wasm pnpm-script bindgen:python -- --package-name inputs-outputs-example --package-description \"An example that has non-trivial inputs and outputs.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript",
"bindgen:python": "itk-wasm pnpm-script bindgen:python",
"build:gen:typescript": "itk-wasm pnpm-script build:gen:typescript",
"build:gen:python": "itk-wasm pnpm-script build:gen:python",
"build:micromamba": "itk-wasm pnpm-script build:micromamba",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync -- --package-name inputs-outputs-example",
"publish:python": "itk-wasm pnpm-script publish:python -- --package-name inputs-outputs-example",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync",
"publish:python": "itk-wasm pnpm-script publish:python",
"test:data:download": "dam download test/data test/data.tar.gz bafkreiha6oye3fd5cxfadnua5r2jlkaco2xuyeek454d2ihiffsx7rauqe https://placeholder",
"test:data:pack": "dam pack test/data test/data.tar.gz",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi -- ./python/inputs-outputs-example-wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten -- ./python/inputs-outputs-example-emscripten/dist",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten -- ./python/inputs-outputs-example-emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch -- ./python/inputs-outputs-example/dist",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten -- ./python/inputs-outputs-example",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten",
"test:python": "itk-wasm pnpm-script test:python",
"test": "pnpm test:wasi && pnpm test:wasi:help",
"test:wasi": "itk-wasm -b wasi-build run inputs-outputs.wasi.wasm -- -- cthead1.png smoothed.png",
Expand Down
32 changes: 20 additions & 12 deletions examples/mean-squares-versor-registration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,35 @@
"packageManager": "[email protected]",
"description": "Illustrate the use of the VersorRigid3DTransform for 3D image registration.",
"type": "module",
"itk-wasm": {
"emscripten-docker-image": "itkwasm/emscripten:latest",
"wasi-docker-image": "itkwasm/wasi:latest",
"typescript-package-name": "@itk-wasm/mean-squares-versor-registration-example",
"python-package-name": "itkwasm-mean-squares-versor-registration-example",
"package-description": "Example 3D versor transform registration with a mean-squares similarity metric",
"repository": "https://github.com/InsightSoftwareConsortium/itk-wasm"
},
"scripts": {
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"build:emscripten": "itk-wasm pnpm-script build:emscripten -- -i itkwasm/emscripten:latest",
"build:emscripten": "itk-wasm pnpm-script build:emscripten",
"build:emscripten:debug": "itk-wasm pnpm-script build:emscripten:debug",
"build:wasi": "itk-wasm pnpm-script build:wasi -- -i itkwasm/wasi",
"build:wasi": "itk-wasm pnpm-script build:wasi",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi -- ./python/mean-squares-versor-registration-wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript -- --package-name mean-squares-versor-registration --package-description \"Example 3D versor transform registration with a mean-squares similarity metric\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"bindgen:python": "itk-wasm pnpm-script bindgen:python -- --package-name mean-squares-versor-registration --package-description \"Example 3D versor transform registration with a mean-squares similarity metric\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript",
"bindgen:python": "itk-wasm pnpm-script bindgen:python",
"build:gen:typescript": "itk-wasm pnpm-script build:gen:typescript",
"build:gen:python": "itk-wasm pnpm-script build:gen:python",
"build:micromamba": "itk-wasm pnpm-script build:micromamba",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync -- --package-name mean-squares-versor-registration",
"publish:python": "itk-wasm pnpm-script publish:python -- --package-name mean-squares-versor-registration",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync",
"publish:python": "itk-wasm pnpm-script publish:python",
"test:data:download": "dam download test/data test/data.tar.gz bafkreiha6oye3fd5cxfadnua5r2jlkaco2xuyeek454d2ihiffsx7rauqe https://placeholder",
"test:data:pack": "dam pack test/data test/data.tar.gz",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi -- ./python/mean-squares-versor-registration-wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten -- ./python/mean-squares-versor-registration-emscripten/dist",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten -- ./python/mean-squares-versor-registration-emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch -- ./python/mean-squares-version-registration/dist",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten -- ./python/mean-squares-versor-registration",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten",
"test:python": "itk-wasm pnpm-script test:python",
"test": "pnpm test:wasi:help",
"test:wasi:long": "itk-wasm test -- -- -V",
Expand Down
24 changes: 16 additions & 8 deletions packages/compare-images/package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
{
"name": "@itk-wasm/compare-images-build",
"version": "2.0.0",
"version": "1.0.0",
"private": true,
"packageManager": "[email protected]",
"description": "scripts to generate @itk-wasm/compare-stringify itk-wasm artifacts.",
"type": "module",
"itk-wasm": {
"emscripten-docker-image": "itkwasm/emscripten:latest",
"wasi-docker-image": "itkwasm/wasi:latest",
"typescript-package-name": "@itk-wasm/compare-images",
"python-package-name": "itkwasm-compare-images",
"package-description": "Compare images with a tolerance for regression testing.",
"repository": "https://github.com/InsightSoftwareConsortium/itk-wasm"
},
"scripts": {
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"build:emscripten": "itk-wasm pnpm-script build:emscripten -- -i itkwasm/emscripten:latest",
"build:emscripten": "itk-wasm pnpm-script build:emscripten",
"build:emscripten:debug": "itk-wasm pnpm-script build:emscripten:debug",
"build:wasi": "itk-wasm pnpm-script build:wasi -- -i itkwasm/wasi:latest",
"build:wasi": "itk-wasm pnpm-script build:wasi",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi -- ./python/itkwasm-compare-images-wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript -- --package-name @itk-wasm/compare-images --package-description \"Compare images with a tolerance for regression testing.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"bindgen:python": "itk-wasm pnpm-script bindgen:python -- --package-name itkwasm-compare-images --package-description \"Compare images with a tolerance for regression testing.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript",
"bindgen:python": "itk-wasm pnpm-script bindgen:python",
"build:gen:typescript": "itk-wasm pnpm-script build:gen:typescript",
"build:gen:python": "itk-wasm pnpm-script build:gen:python",
"build:micromamba": "itk-wasm pnpm-script build:micromamba",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync -- --package-name itkwasm-compare-images",
"publish:python": "itk-wasm pnpm-script publish:python -- --package-name itkwasm-compare-images",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync",
"publish:python": "itk-wasm pnpm-script publish:python",
"test": "pnpm test:data:download",
"test:data:download": "dam download test/data test/data.tar.gz bafybeigcvvf3ol3phmpevbin6ufumqfx65uxxthchqacxftxqpn67uxlxa https://github.com/InsightSoftwareConsortium/itk-wasm/releases/download/itk-wasm-v1.0.0-b.157/data.tar.gz https://bafybeiefbfd6kxcmwq6osnwu72gv6srzsnv6ys5omoodjlmaazx47mdhsq.ipfs.w3s.link/ipfs/bafybeiefbfd6kxcmwq6osnwu72gv6srzsnv6ys5omoodjlmaazx47mdhsq/data.tar.gz",
"test:data:pack": "dam pack test/data test/data.tar.gz"
Expand Down
32 changes: 20 additions & 12 deletions packages/compress-stringify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,36 @@
"packageManager": "[email protected]",
"description": "scripts to generate @itk-wasm/compare-stringify itk-wasm artifacts.",
"type": "module",
"itk-wasm": {
"emscripten-docker-image": "itkwasm/emscripten:latest",
"wasi-docker-image": "itkwasm/wasi:latest",
"typescript-package-name": "@itk-wasm/compress-stringify",
"python-package-name": "itkwasm-compress-stringify",
"package-description": "Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.",
"repository": "https://github.com/InsightSoftwareConsortium/itk-wasm"
},
"scripts": {
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"build:emscripten": "itk-wasm pnpm-script build:emscripten -- -i itkwasm/emscripten:latest",
"build:emscripten": "itk-wasm pnpm-script build:emscripten",
"build:emscripten:debug": "itk-wasm pnpm-script build:emscripten:debug",
"build:wasi": "itk-wasm pnpm-script build:wasi -- -i itkwasm/wasi:latest",
"build:wasi": "itk-wasm pnpm-script build:wasi",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi -- ./python/itkwasm-compress-stringify-wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript -- --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'",
"bindgen:python": "itk-wasm pnpm-script bindgen:python -- --package-name itkwasm-compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript",
"bindgen:python": "itk-wasm pnpm-script bindgen:python",
"build:gen:typescript": "itk-wasm pnpm-script build:gen:typescript",
"build:gen:python": "itk-wasm pnpm-script build:gen:python",
"build:micromamba": "itk-wasm pnpm-script build:micromamba",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync -- --package-name itkwasm-compress-stringify",
"publish:python": "itk-wasm pnpm-script publish:python -- --package-name itkwasm-compress-stringify",
"build:python:versionSync": "itk-wasm pnpm-script build:python:versionSync",
"publish:python": "itk-wasm pnpm-script publish:python",
"test": "pnpm test:data:download && pnpm build:gen:python && pnpm test:python",
"test:data:download": "dam download test/data test/data.tar.gz bafkreiha6oye3fd5cxfadnua5r2jlkaco2xuyeek454d2ihiffsx7rauqe https://placeholder",
"test:data:pack": "dam pack test/data test/data.tar.gz",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi -- ./python/itkwasm-compress-stringify-wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten -- ./python/itkwasm-compress-stringify-emscripten/dist",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten -- ./python/itkwasm-compress-stringify-emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch -- ./python/itkwasm-compress-stringify/dist",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten -- ./python/itkwasm-compress-stringify",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten",
"test:python": "itk-wasm pnpm-script test:python",
"test:wasi": "itk-wasm pnpm-script test:wasi"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/typescript/itk-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itk-wasm",
"version": "1.0.0-b.163",
"version": "1.0.0-b.164",
"packageManager": "[email protected]",
"description": "High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.",
"type": "module",
Expand Down
Loading

0 comments on commit 86b9af8

Please sign in to comment.