webamp/packages/webamp-demo/package.json
Jordan Eldredge c7a282c1fd
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>
2026-06-07 14:40:07 -07:00

39 lines
1 KiB
JSON

{
"name": "webamp-demo",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "vite",
"build": "vite build",
"serve": "vite preview"
},
"devDependencies": {
"@sentry/browser": "5.9.1",
"ani-cursor": "workspace:*",
"butterchurn": "3.0.0-beta.5",
"butterchurn-presets": "3.0.0-beta.4",
"classnames": "^2.2.5",
"invariant": "^2.2.3",
"jszip": "^3.10.1",
"lodash": "^4.17.21",
"milkdrop-preset-converter-aws": "^0.1.6",
"music-metadata": "^11.6.0",
"music-metadata-browser": "^0.6.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-redux": "^8.0.5",
"redux": "^5.0.0-alpha.0",
"redux-sentry-middleware": "^0.1.3",
"redux-thunk": "^3.1.0",
"reselect": "^3.0.1",
"strtok3": "^10.3.1",
"tinyqueue": "^3.0.0",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"rollup-plugin-polyfill-node": "^0.13.0",
"typescript": "^5.6.2",
"vite": "^5.2.12",
"webamp": "workspace:*",
"winamp-eqf": "workspace:*"
}
}