diff --git a/.cursor b/.cursor new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/.cursor @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.cursor-workspace b/.cursor-workspace new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/.cursor-workspace @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.cursor.json b/.cursor.json new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/.cursor.json @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dev.sh b/dev.sh new file mode 100755 index 0000000..28ef010 --- /dev/null +++ b/dev.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +# Function to start Hugo development server +function start_hugo() { + cd docker/showerloop/public + hugo server --disableFastRender --minify --gc --navigateToChanged -D --bind "0.0.0.0" --baseURL "http://localhost:1313/" +} + +# Function for quick git commit and push +function quick_commit() { + git add . && git commit -m "Updates and improvements" && git push +} + +# Function to start a new development session +function start_session() { + git pull + start_hugo +} + +# Show usage if no arguments provided +if [ $# -eq 0 ]; then + echo "Usage:" + echo " ./dev.sh start - Pull latest changes and start Hugo server" + echo " ./dev.sh commit - Quick commit and push changes" + echo " ./dev.sh hugo - Start Hugo server only" + exit 1 +fi + +# Handle command line arguments +case "$1" in + "start") + start_session + ;; + "commit") + quick_commit + ;; + "hugo") + start_hugo + ;; + *) + echo "Unknown command: $1" + exit 1 + ;; +esac \ No newline at end of file