Skip to content

Commit 7b55c5a

Browse files
committed
starting to work on go/wasm
1 parent bdbb55e commit 7b55c5a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ _TODO_: notes about web
3232
Normally, you should not need to do this stuff, but for local dev:
3333

3434
```bash
35+
# build wasm
36+
npm run build
37+
3538
# start a watching local web-server
3639
# /sqldef is aliased to root-dir
3740
npm start

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
},
1414
"scripts": {
1515
"test": "node --test",
16-
"start": "npx -y live-server docs --mount=/sqldef:."
16+
"start": "npx -y live-server docs --mount=/sqldef:.",
17+
"build" : "GOOS=js GOARCH=wasm go build $GOFLAGS -o sqldef.wasm sqldef-wasm.go"
1718
},
1819
"author": "David Konsumer <[email protected]> (http://konsumer.js.org)",
1920
"license": "MIT",

0 commit comments

Comments
 (0)