Skip to content

Commit

Permalink
WIP: ENH: Update package.json configuration to use itk-wasm pnpm-script
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 31, 2024
1 parent e860aad commit d80dd6e
Show file tree
Hide file tree
Showing 6 changed files with 1,392 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ node_modules/
emscripten-build/
wasi-build/

package-lock.json
pnpm-lock.yaml
micromamba/

wasm/python/
10 changes: 10 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: mesh-to-poly-data
channels:
- conda-forge
dependencies:
- pytest
- python=3.11
- pip
- pip:
- hatch
- itkwasm-mesh-io
35 changes: 28 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@
{
"name": "wasm",
"name": "@itk-wasm/-to-polydata-build",
"version": "1.0.0",
"description": "npm scripts to generate itk-wasm artifacts.",
"private": true,
"type": "module",
"scripts": {
"build": "npm run emscripten && npm run bindgen:typescript && npm run wasi && npm run bindgen:python",
"emscripten": "npx itk-wasm -b emscripten-build build",
"bindgen:typescript": "npx itk-wasm -b emscripten-build bindgen --output-dir wasm/typescript --package-name @itk-wasm/mesh-to-poly-data --package-version 0.1.0 --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"bindgen:python": "npx itk-wasm -b wasi-build bindgen --interface python --output-dir wasm/python --package-name itkwasm-mesh-to-poly-data --package-version 0.1.0 --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"wasi": "npx itk-wasm -b wasi-build -i itkwasm/wasi build",
"build": "pnpm build:gen:typescript && pnpm build:gen:python",
"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",
"build:wasi:debug": "itk-wasm pnpm-script build:wasi:debug",
"build:python:wasi": "itk-wasm pnpm-script build:python:wasi -- ./python/itkwasm-mesh-to-poly-data-wasi",
"bindgen:typescript": "itk-wasm pnpm-script bindgen:typescript -- --package-name @itk-wasm/mesh-to-poly-data --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"bindgen:python": "itk-wasm pnpm-script bindgen:python -- --package-name itkwasm-mesh-to-poly-data --package-description \"Convert an ITK Mesh to a simple data structure compatible with vtkPolyData.\" --repository 'https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData'",
"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-mesh-to-poly-data",
"publish:python": "itk-wasm pnpm-script publish:python -- --package-name itkwasm-mesh-to-poly-data",
"test": "pnpm test:data:download && pnpm build:gen:python && pnpm test:python",
"test:data:download": "echo \"not needed\"",
"test:data:pack": "dam pack test/data test/data.tar.gz",
"test:python:wasi": "itk-wasm pnpm-script test:python:wasi -- ./python/itkwasm-mesh-to-poly-data-wasi",
"test:pyodide:download:emscripten": "itk-wasm pnpm-script test:pyodide:download:emscripten -- ./python/itkwasm-mesh-to-poly-data-emscripten/dist",
"test:python:emscripten": "itk-wasm pnpm-script test:python:emscripten -- ./python/itkwasm-mesh-to-poly-data-emscripten",
"test:pyodide:download:dispatch": "itk-wasm pnpm-script test:pyodide:download:dispatch -- ./python/itkwasm-mesh-to-poly-data/dist",
"test:python:dispatch": "itk-wasm pnpm-script test:python:emscripten -- ./python/itkwasm-mesh-to-poly-data",
"test:python": "itk-wasm pnpm-script test:python",
"test:wasi": "itk-wasm pnpm-script test:wasi -- -V",
"clean": "git clean -fdx -e node_modules"
},
"license": "Apache-2.0",
"devDependencies": {
"itk-wasm": "^1.0.0-b.157"
"@itk-wasm/dam": "^1.1.0",
"@thewtex/setup-micromamba": "^1.9.7",
"itk-wasm": "^1.0.0-b.163"
}
}
Loading

0 comments on commit d80dd6e

Please sign in to comment.