Skip to content

Commit 816fb38

Browse files
committed
deploy x-bow-playground demo
1 parent 80d43a6 commit 816fb38

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,15 @@ demo_simple:
2323
rm gh-pages/demos/simple/pkg/.gitignore
2424
cp examples/web-simple-examples/index.html gh-pages/demos/simple/
2525

26+
.PHONY: demo_x_bow_playground
27+
demo_x_bow_playground:
28+
@echo "====> building demo x_bow_playground"
29+
# before running make, run `git worktree add gh-pages/ gh-pages
30+
rm -rf gh-pages/demos/x-bow-playground
31+
wasm-pack build --release --target web --out-dir ../../gh-pages/demos/x-bow-playground/pkg examples/x-bow-playground
32+
rm gh-pages/demos/x-bow-playground/pkg/.gitignore
33+
cp examples/x-bow-playground/index.html gh-pages/demos/x-bow-playground/
34+
35+
2636
.PHONY: demos
27-
demos: demo_todomvc demo_simple
37+
demos: demo_todomvc demo_simple demo_x_bow_playground

examples/x-bow-playground/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
<!DOCTYPE html>
22
<html>
3+
4+
<head>
5+
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
</head>
8+
9+
<body>
10+
<script type="module">
11+
import init from './pkg/x_bow_playground.js';
12+
init();
13+
</script>
14+
</body>
15+
316
</html>

0 commit comments

Comments
 (0)