- Install python
- Install node version 16+
- npm install
- npm run test-node
- npm run build-browser-test
- cd ./test
- python -m SimpleHTTPServer
- open browser and navigate to http://localhost:8080/index.html
CanvasKit + WebAssembly is used for canvas operations in Node.js environments. A custom version of the wasm is used and should be rebuilt when canvaskit-wasm has updated releases.
see ./canvaskit/README.md for more instructions
- npm run build
The geopackage build will generate several files in the dist directory.
- dist/browser
- browser entry: geopackage.min.js
- browser license: geopackage.min.js.LICENSE.txt
- node entry: index.js, lib
- types: index.d.ts, lib
- sql.js wasm: sql-wasm.wasm
- canvaskit js: canvaskit/canvaskit.js
- canvaskit wasm: canvaskit/canvaskit.wasm