1
0
silverbullet/scripts/build_website.sh

12 lines
487 B
Bash
Raw Normal View History

2022-07-15 09:36:11 +00:00
#!/bin/sh
2022-07-15 13:33:40 +00:00
npm run clean-build
2022-07-15 12:59:47 +00:00
rm -rf website_build
mkdir -p website_build/fs/_plug
cp -r packages/web/dist/* website_build/
cp _redirects _headers website_build/
cp -r website/* website_build/fs/
cp packages/plugs/dist/* website_build/fs/_plug/
find website_build/fs/ -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}"' _ {} \;
find website_build/fs/ -depth -name "*.plug.json" -exec sh -c 'mv "$1" "${1%.plug.json}"' _ {} \;
node scripts/generate_fs_list.js > website_build/index.json