2022-09-05 14:33:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Building silver bullet"
|
|
|
|
npm run clean-build
|
|
|
|
echo "Cleaning website build dir"
|
|
|
|
rm -rf website_build
|
2022-09-13 06:46:30 +00:00
|
|
|
mkdir -p website_build/fs/_plug
|
2022-09-05 14:33:56 +00:00
|
|
|
echo "Copying silverbullet runtime files"
|
|
|
|
cp -r packages/web/dist/* website_build/
|
|
|
|
echo "Copying netlify config files"
|
|
|
|
cp website/{_redirects,_headers} website_build/
|
|
|
|
|
|
|
|
echo "Copying website markdown files"
|
2022-09-13 06:46:30 +00:00
|
|
|
cp -r website/* website_build/fs/
|
|
|
|
rm website_build/fs/{_redirects,_headers}
|
2022-09-05 14:33:56 +00:00
|
|
|
|
|
|
|
echo "Copying standard set of plugs"
|
2022-09-13 06:46:30 +00:00
|
|
|
cp packages/plugs/dist/* website_build/fs/_plug/
|
2022-09-05 14:33:56 +00:00
|
|
|
|
|
|
|
echo "Generating file listing"
|
|
|
|
node scripts/generate_fs_list.js > website_build/index.json
|
|
|
|
|
|
|
|
echo > website_build/empty.md
|
|
|
|
|