Skip to content

Commit

Permalink
ENH: Add wasm binding generation configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 30, 2023
1 parent e3313af commit e03f4f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ wasi-build/

package-lock.json
pnpm-lock.yaml

wasm/python/
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"description": "npm scripts to generate itk-wasm artifacts.",
"type": "module",
"scripts": {
"build": "npm run emscripten && npm run bindgen && npm run wasi",
"build": "npm run emscripten && npm run bindgen:typescript && npm run wasi && npm run bindgen:python",
"emscripten": "npx itk-wasm -b emscripten-build build",
"bindgen": "npx itk-wasm -b emscripten-build bindgen --output-dir wasm/typescript --package-name 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: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 --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",
"clean": "git clean -fdx -e node_modules"
},
"license": "Apache-2.0",
"devDependencies": {
"itk-wasm": "^1.0.0-b.73"
"itk-wasm": "^1.0.0-b.157"
}
}

0 comments on commit e03f4f6

Please sign in to comment.