1
0
silverbullet/scripts/build_website.sh
2022-10-29 16:01:20 +02:00

17 lines
483 B
Bash
Executable File

#!/bin/bash
rm -rf website_build
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
echo "Generating version number..."
echo "export const version = '$(git rev-parse HEAD)';" > version.ts
echo "Building..."
deno task build
echo "Bundling..."
deno task bundle
cp dist/silverbullet.js website_build/
cp dist_bundle/web/global.plug.json website_build/