1
0
silverbullet/scripts/build_website.sh

17 lines
483 B
Bash
Raw Normal View History

2022-08-01 09:38:22 +00:00
#!/bin/bash
2022-07-15 09:36:11 +00:00
2022-07-15 12:59:47 +00:00
rm -rf website_build
2022-10-29 07:54:18 +00: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
2022-10-29 14:01:20 +00:00
echo "Generating version number..."
echo "export const version = '$(git rev-parse HEAD)';" > version.ts
echo "Building..."
2022-10-29 07:54:18 +00:00
deno task build
2022-10-29 14:01:20 +00:00
echo "Bundling..."
2022-10-29 07:54:18 +00:00
deno task bundle
2022-10-29 13:48:27 +00:00
cp dist/silverbullet.js website_build/
cp dist_bundle/web/global.plug.json website_build/