feat: add Dotbot

This commit is contained in:
Stefan Imhoff
2024-08-09 11:57:28 +02:00
parent a41290c297
commit 0437240919
248 changed files with 1205 additions and 44 deletions

11
functions/server.sh Executable file
View File

@@ -0,0 +1,11 @@
# Server
server() {
if command -v browser-sync >/dev/null 2>&1; then
echo "Starting Browser-Sync server..."
browser-sync start --server --files "${1:-**}" "${@:2}"
else
echo "Error: browser-sync is not installed or not in the PATH."
echo "Please install it using npm: npm install -g browser-sync"
fi
}