Add .gitignore to exclude all node packages and lock files
This commit is contained in:
32
skills/remotion-prompt-video/scripts/setup_project.sh
Executable file
32
skills/remotion-prompt-video/scripts/setup_project.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
# Setup script for Remotion Prompt Video project.
|
||||
# Usage: bash setup_project.sh <project_dir>
|
||||
# Copies templates, installs dependencies, ensures browser.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="${1:?Usage: setup_project.sh <project_dir>}"
|
||||
SKILL_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
echo "🎬 Setting up Remotion Prompt Video project at: $PROJECT_DIR"
|
||||
|
||||
# Create project directory
|
||||
mkdir -p "$PROJECT_DIR"
|
||||
|
||||
# Copy template files
|
||||
cp -r "$SKILL_DIR/templates/"* "$PROJECT_DIR/"
|
||||
echo " ✅ Template files copied"
|
||||
|
||||
# Install dependencies
|
||||
cd "$PROJECT_DIR"
|
||||
npm install 2>&1 | tail -3
|
||||
echo " ✅ Dependencies installed"
|
||||
|
||||
# Ensure Remotion has a browser for rendering
|
||||
npx remotion browser ensure 2>&1 | tail -2
|
||||
echo " ✅ Browser ready"
|
||||
|
||||
echo ""
|
||||
echo "✅ Project ready at: $PROJECT_DIR"
|
||||
echo " Generate a video: node generate.mjs \"Your prompt here\""
|
||||
echo " Render a script: node render.mjs script.json output.mp4"
|
||||
Reference in New Issue
Block a user