Adding the first glitch gallery

This commit is contained in:
2026-03-24 11:30:14 +01:00
commit 137d1a8191
24 changed files with 1572 additions and 0 deletions
Executable
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
set -euo pipefail
if [ -z "$1" ]; then
echo "Please provide name of glitch component to run."
echo "Usage: ./dev.sh <component-name>"
exit 1
fi
COMPONENT="$1"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
COMPONENT_DIR="$SCRIPT_DIR/$COMPONENT"
if [ ! -d "$COMPONENT_DIR" ]; then
echo "Component '$COMPONENT' not found."
exit 1
fi
if [ ! -f "$COMPONENT_DIR/package.json" ]; then
echo "Component '$COMPONENT' has no package.json."
exit 1
fi
echo "Starting dev server for $COMPONENT..."
cd "$COMPONENT_DIR"
npm run dev