2022-08-01 09:38:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-15 09:36:11 +00:00
|
|
|
|
2022-10-29 07:54:18 +00:00
|
|
|
|
|
|
|
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-11-01 16:03:42 +00:00
|
|
|
deno task install
|
|
|
|
|
|
|
|
rm -rf website_build
|
2022-11-01 16:06:23 +00:00
|
|
|
silverbullet publish --index -o website_build website
|
2022-11-01 16:03:42 +00:00
|
|
|
|
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/
|