• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PathKit WASM API
2================
3
4This library lets you use Skia's feature-rich PathOps API in the browser.
5
6
7Compiling the source
8--------------------
9
10Download the [Enscriptem SDK](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html).
11
12Set the EMSDK environment variable to the directory you installed it to.
13
14Run `./compile.sh` to compile a production, WASM build to `$SKIA_HOME/out/pathkit`.
15Add "--help" for more options.
16
17Deploying to npm
18----------------
19
20    # Build the release version for both asmjs and WASM
21    # These binaries will be placed in the proper places of npm-*/bin
22    make npm
23
24    # In each npm- subdirectory, run:
25    npm version minor (or patch or major)
26    npm login --registry https://wombat-dressing-room.appspot.com
27    npm publish
28