- Add script tags to demo-site HTML files for manual development - Disable CLI inline script injection to prevent duplicate scripts - Add library serving endpoints to servedev command - Update build process to auto-copy library to demo-site - Add CDN URL helpers for future production deployment - Update .gitignore for generated demo-site files Fixes .insertr-gate authentication for manual npm run serve workflow while maintaining clean separation between CLI and manual setups.
20 lines
528 B
Bash
Executable File
20 lines
528 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Rebuild library and copy to CLI assets
|
|
# Used by Air for hot reloading when library changes
|
|
|
|
set -e
|
|
|
|
echo "🔄 Library changed, rebuilding..."
|
|
|
|
# Build the library (this will also copy to demo-site)
|
|
cd ../lib
|
|
npm run build --silent
|
|
|
|
# Copy to CLI assets
|
|
echo "📁 Copying updated library to CLI assets..."
|
|
cp dist/* ../insertr-cli/pkg/content/assets/
|
|
|
|
# Get library version for confirmation
|
|
VERSION=$(node -e "console.log(require('./package.json').version)")
|
|
echo "✅ Library v$VERSION ready for CLI embedding" |