Skip to content

Commit c7a282c

Browse files
captbaritoneclaude
andauthored
Split demo site into its own package (#1351)
* Split demo site into its own package 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> * Fix: add type-check dependency to webamp#build task 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> * Add updated readme to webamp-demo package Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Document the live reloading dev flow in both readmes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix code-size CI: use deploy script that exists on both branches 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> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 52c425d commit c7a282c

70 files changed

Lines changed: 253 additions & 157 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: pnpm install --frozen-lockfile
2424
- name: Build all packages
2525
run: |
26-
npx turbo build build-library
26+
npx turbo build
2727
env:
2828
NODE_ENV: production
2929
- name: Lint and type-check

README.md

Lines changed: 2 additions & 2 deletions

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
22
command = "pnpm run deploy"
3-
publish = "packages/webamp/dist/demo-site/"
3+
publish = "packages/webamp-demo/dist/"
44

55
# A short URL for listeners of https://changelog.com/podcast/291
66
[[redirects]]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test:unit": "jest",
1616
"lint": "npx turbo lint",
1717
"type-check": "pnpm --filter webamp type-check && pnpm --filter ani-cursor type-check && pnpm --filter skin-database type-check && pnpm --filter webamp-docs type-check && pnpm --filter winamp-eqf type-check",
18-
"deploy": "npx turbo webamp#build webamp-modern#build --concurrency 1 && mv packages/webamp-modern/build packages/webamp/dist/demo-site/modern",
18+
"deploy": "npx turbo build webamp-modern#build --concurrency 1 && mv packages/webamp-modern/build packages/webamp-demo/dist/modern",
1919
"format": "prettier --write '**/*.{js,ts,tsx}'"
2020
},
2121
"devDependencies": {

packages/webamp/demo/images/icons/internet-folder-32x32.png renamed to packages/webamp-demo/images/icons/internet-folder-32x32.png

File renamed without changes.

packages/webamp/demo/images/icons/paint-file-32x32.png renamed to packages/webamp-demo/images/icons/paint-file-32x32.png

File renamed without changes.

packages/webamp/demo/images/icons/soundcloud-32x32.png renamed to packages/webamp-demo/images/icons/soundcloud-32x32.png

File renamed without changes.

0 commit comments

Comments
 (0)