1
0
silverbullet/scripts/build_website.sh

11 lines
372 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
mkdir -p website/fs
cp -r packages/web/dist/* website/
2022-07-15 09:51:54 +00:00
cp _redirects website/
cp -r docs/* website/fs/
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