-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug.sh
executable file
·46 lines (40 loc) · 971 Bytes
/
debug.sh
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
36
37
38
39
40
41
42
43
44
45
46
set -eu
pushd rs/wasm
wasm-pack build --target web
cp pkg/wasm_book.js ../../js
cp pkg/wasm_book_bg.wasm ../../src
pushd
pushd js
if [ ! -e ./node_modules ]; then
bun install
fi
if [ ! -e ./highlight.js ]; then
bun create-highlight.bun.sh
fi
bun run build.js
cp -r dist/. ../src/
pushd
pushd scss
if [ ! -e ./node_modules ]; then
bun install
fi
bun run compile general.scss ../src/css/general.css
bun run compile style.scss ../src/css/style.css
pushd
mdbook build --dest-dir commentary
#rm commentary/ayu-highlight.css
#rm commentary/clipboard.min.js
#rm commentary/elasticlunr.min.js
#rm commentary/favicon.png
#rm commentary/fonts.css
#rm commentary/highlight.css
#rm commentary/highlight.js
#rm commentary/searcher.js
#rm commentary/tomorrow-night.css
#rm commentary/css/chrome.css
#rm commentary/css/variables.css
#rm commentary/mark.min.js
#rm -rf commentary/searchindex.js
#rm -rf commentary/FontAwesome
#rm -rf commentary/fonts
echo '\n🐥 complete!'