silverbullet/scripts/build_website.sh

13 lines
399 B
Bash
Raw Normal View History

2022-08-01 17:38:22 +08:00
#!/bin/bash
2022-07-15 17:36:11 +08:00
2022-07-15 20:59:47 +08:00
rm -rf website_build
2022-10-29 15:54:18 +08:00
npx --yes @silverbulletmd/publish -o website_build --index website
echo "Now building Silver Bullet bundle"
curl -fsSL https://deno.land/install.sh | sh
export PATH=~/.deno/bin:$PATH
deno task build
deno task bundle
2022-10-29 17:41:11 +08:00
mkdir website_build/silverbullet
cp dist/silverbullet.js website_build/silverbullet/
cp dist_bundle/web/global.plug.json website_build/silverbullet/