File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
examples/x-bow-playground Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,15 @@ demo_simple:
23
23
rm gh-pages/demos/simple/pkg/.gitignore
24
24
cp examples/web-simple-examples/index.html gh-pages/demos/simple/
25
25
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
+
26
36
.PHONY : demos
27
- demos : demo_todomvc demo_simple
37
+ demos : demo_todomvc demo_simple demo_x_bow_playground
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< 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
+
3
16
</ html >
You can’t perform that action at this time.
0 commit comments