1
0
silverbullet/scripts/build_website.sh

12 lines
430 B
Bash
Raw Normal View History

2022-07-15 09:36:11 +00:00
#!/bin/sh
2022-07-15 10:42:18 +00:00
npm run clean-build
2022-07-15 09:36:11 +00:00
rm -rf website
2022-07-15 12:14:26 +00:00
mkdir -p website/fs/_plug
2022-07-15 09:36:11 +00:00
cp -r packages/web/dist/* website/
2022-07-15 12:27:17 +00:00
cp _redirects _headers website/
2022-07-15 09:51:54 +00:00
cp -r docs/* website/fs/
2022-07-15 12:14:26 +00:00
cp packages/plugs/dist/* website/fs/_plug/
2022-07-15 10:04:44 +00:00
find website/fs/ -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}"' _ {} \;
find website/fs/ -depth -name "*.plug.json" -exec sh -c 'mv "$1" "${1%.plug.json}"' _ {} \;
2022-07-15 10:00:30 +00:00
node scripts/generate_fs_list.js > website/index.json