-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
35 lines (28 loc) · 1.3 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
build-markdown:
cd examples/markdown && trunk build --example markdown
dist-out := "/tmp/massive-shell-dist"
build-markdown-release:
rm -f shell/dist/*
cd examples/markdown && trunk build --example markdown --release
mkdir -p {{dist-out}}
rm -f {{dist-out}}/*
cp examples/markdown/dist/massive-shell-*.js {{dist-out}}/massive-markdown.js
cp examples/markdown/dist/massive-shell-*_bg.wasm {{dist-out}}/massive-markdown_bg.wasm
sed -i '' 's/massive-shell_bg.wasm/massive-markdown_bg.wasm/g' {{dist-out}}/massive-markdown.js
build-code-viewer-release:
rm -f shell/dist/*
cd shell && trunk build --example code_viewer --release
mkdir -p {{dist-out}}
rm -f {{dist-out}}/*
cp shell/dist/massive-shell-*.js {{dist-out}}/massive-code.js
cp shell/dist/massive-shell-*_bg.wasm {{dist-out}}/massive-code_bg.wasm
sed -i '' 's/massive-shell_bg.wasm/massive-code_bg.wasm/g' {{dist-out}}/massive-code.js
serve-markdown:
cd examples/markdown && trunk serve --example markdown --port 8888 --no-minification
serve-markdown-release:
cd examples/markdown && trunk serve --example markdown --port 8888 --no-minification --release
wasm-features:
cd examples/markdown && cargo tree -f '{p} {f}' --target wasm32-unknown-unknown
flame:
cat tracing.folded | inferno-flamegraph > /tmp/massive-trace.svg
open /tmp/massive-trace.svg