Skip to content

Split demo site into its own package#1351

Merged
captbaritone merged 5 commits into
masterfrom
split-demo-package
Jun 7, 2026
Merged

Split demo site into its own package#1351
captbaritone merged 5 commits into
masterfrom
split-demo-package

Conversation

@captbaritone

Copy link
Copy Markdown
Owner

Summary

  • Move demo site from packages/webamp/demo/ to packages/webamp-demo/ as a standalone workspace package
  • Demo imports webamp source via relative paths — no Vite aliases needed
  • Remove vite branching from rollupPlugins.mjs (now library-only)
  • Rename build-librarybuild in webamp package, update turbo/CI accordingly
  • Remove demo-only deps from webamp package (@sentry/browser, redux-sentry-middleware, milkdrop-preset-converter-aws, vite)
  • Zero library bundle size change (byte-for-byte identical output)

Test plan

  • Library build passes (npm run build — all 7 bundles)
  • Library tests pass (224 tests)
  • Library type-check clean
  • Library lint clean
  • Demo vite build succeeds
  • Demo dev server starts and serves
  • Demo type-check clean
  • Turbo deploy pipeline works (webamp-demo#build + webamp-modern#build)
  • CI passes
  • Verify demo works in browser after deploy

🤖 Generated with Claude Code

Move the demo site from packages/webamp/demo/ into packages/webamp-demo/
as a standalone workspace package. This cleanly separates the library
(published to npm) from the demo site (deployed to webamp.org).

Key changes:
- Demo imports webamp source via relative paths (no aliases needed)
- Demo has its own package.json with demo-specific deps
- Simplified vite config (just nodePolyfills plugin)
- Removed vite branching from rollupPlugins.mjs (library-only now)
- Renamed build-library -> build in webamp package
- Updated turbo.json, CI, netlify config, and code-size workflow
- Removed demo-only deps from webamp package (sentry, butterchurn stays
  for the butterchurn bundle)
- Zero bundle size change for the library

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 7, 2026

Copy link
Copy Markdown

Deploy Preview for tourmaline-kringle-c98715 canceled.

Name Link
🔨 Latest commit fb30ef5
🔍 Latest deploy log https://app.netlify.com/projects/tourmaline-kringle-c98715/deploys/6a25e3dbd030dc0008bb856d

captbaritone and others added 2 commits June 7, 2026 14:17
The webamp-docs package needs type declarations from webamp to
type-check. These are generated by tsc (type-check), which must run
before the build task.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
captbaritone and others added 2 commits June 7, 2026 14:28
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The compressed-size-action checks out master and runs the build script.
Master doesn't have a root "build" script, so revert to using "deploy"
which exists on both branches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 491 kB

ℹ️ View Unchanged
Filename Size
packages/webamp/built/webamp.bundle.min.js 298 kB
packages/webamp/built/webamp.lazy-bundle.min.js 193 kB

compressed-size-action

@captbaritone captbaritone merged commit c7a282c into master Jun 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant