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
|
2022-10-29 22:01:20 +08:00
|
|
|
|
|
|
|
echo "Generating version number..."
|
|
|
|
echo "export const version = '$(git rev-parse HEAD)';" > version.ts
|
|
|
|
echo "Building..."
|
2022-10-29 15:54:18 +08:00
|
|
|
deno task build
|
2022-10-29 22:01:20 +08:00
|
|
|
echo "Bundling..."
|
2022-10-29 15:54:18 +08:00
|
|
|
deno task bundle
|
2022-10-29 21:48:27 +08:00
|
|
|
cp dist/silverbullet.js website_build/
|
|
|
|
cp dist_bundle/web/global.plug.json website_build/
|