Skip to content

Commit

Permalink
added build & serve script for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Glowman554 committed Sep 23, 2022
1 parent 01e3e3e commit 60cb6e5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
._DS_Strore

#Build
/out
/out
/src/docs
23 changes: 23 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
if [ -d "out" ]; then
rm -rfv out
fi

if [ -d "src/docs" ]; then
rm -rfv src/docs
fi

curl https://raw.githubusercontent.com/Glowman554/TheBot-reloaded/main/deno/install.sh | sudo sh
if [ -d "horizon" ]; then
echo "no need to clone again"
else
echo "cloning..."
git clone https://github.com/TheUltimateFoxOS/horizon
fi

(
cd horizon
deno run -A tools/doc/main.ts http://example.com
cp -rv docs ../src/docs
)

node build.js
6 changes: 6 additions & 0 deletions server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bash build.sh

(
cd out
python3 -m http.server 8080
)

0 comments on commit 60cb6e5

Please sign in to comment.