GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs/scripts/update-pricing-playground.sh at main · epilot-dev/docs

Expand file tree

/

update-pricing-playground.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
36 lines (27 loc) · 1.18 KB
/

update-pricing-playground.sh

Copy path

File metadata and controls

executable file
·
36 lines (27 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -euo pipefail
# THIS SCRIPT ASSUMES you are within the codebase repo.
# Rebuild the pricing demo and copy the output to the docs static folder.
# Usage: npm run update-playground (from the docs root)
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
DOCS_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
PRICING_DEMO="$DOCS_ROOT/../pricing/demo"
TARGET="$DOCS_ROOT/static/pricing-playground"
if [ ! -d "$PRICING_DEMO" ]; then
echo "ERROR: pricing demo not found at $PRICING_DEMO"
exit 1
fi
echo "→ Installing pricing demo dependencies..."
(cd "$PRICING_DEMO" && pnpm install --frozen-lockfile 2>/dev/null || npm install --no-audit --no-fund)
echo "→ Building pricing demo..."
(cd "$PRICING_DEMO" && npx tsc -b && npx vite build)
# Verify the build has the correct base path
if ! grep -q '/pricing-playground/assets/' "$PRICING_DEMO/dist/index.html"; then
echo "ERROR: Built index.html is missing /pricing-playground/ base path."
echo " Ensure vite.config.ts has: base: '/pricing-playground/'"
exit 1
fi
echo "→ Copying build output to $TARGET..."
rm -rf "$TARGET"
cp -r "$PRICING_DEMO/dist" "$TARGET"
echo "✓ Pricing playground updated at static/pricing-playground/"
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.