feat(site): ejected skins build script, docs page, and home page wiring#809
Merged
feat(site): ejected skins build script, docs page, and home page wiring#809
Conversation
Add a script that produces copy-paste skin snippets (Shadcn-style eject) for all 4 skins across HTML and React, in both CSS and Tailwind variants. The script outputs `site/src/content/ejected-skins.json` with 16 entries: - HTML skins: rendered templates with inline SVGs and resolved classes - React skins: TSX (typed) and JSX (types stripped) with inline SVGs - CSS variants include resolved CSS (all @imports flattened) - Tailwind variants omit CSS (users bring their own Tailwind config) All private package dependencies are resolved at build time: - @videojs/icons → SVGs inlined directly into markup - @videojs/skins → Tailwind tokens serialized as const declarations - @videojs/utils/style cn() → replaced with [].filter(Boolean).join(' ') - Internal path aliases (@/) → rewritten to @videojs/react Closes #701 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📦 Bundle Size Report🎨 @videojs/html(no changes) Presets (7)
Media (4)
Players (3)
Skins (14)
UI Components (21)
Sizes are marginal over the root entry point. ⚛️ @videojs/react(no changes) Presets (7)
Media (3)
Skins (14)
UI Components (17)
Sizes are marginal over the root entry point. 🧩 @videojs/core(no changes) Entries (5)
🏷️ @videojs/element(no changes) Entries (2)
📦 @videojs/store(no changes) Entries (3)
🔧 @videojs/utils(no changes) Entries (10)
📦 @videojs/spf(no changes) Entries (3)
ℹ️ How to interpretAll sizes are standalone totals (minified + brotli).
Run |
- Move build script from build/scripts to site/scripts - Add ejected skins content collection and build integration - Wire real ejected skin data to Eject demo via ServerCode slots - Rename 'frosted' skin to 'default' across home page - Add EjectedSkin.astro component and customize-skins docs page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sampotts
added a commit
that referenced
this pull request
Mar 11, 2026
…ng (#809) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Darius Cepulis <dcepulis@mux.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
site/scripts/build-ejected-skins.tsthat produces copy-paste skin snippets (Shadcn-style eject) for all 4 skins across HTML and React, in both CSS and Tailwind variants (16 entries total)site/src/content/ejected-skins.json(gitignored); run withpnpm -F site ejected-skins(requirespnpm build:packagesfirst)'frosted'skin to'default'across home page componentsEjectedSkin.astrocomponent andcustomize-skins.mdxdocs pagecn()replaced with[].filter(Boolean).join(' '), internal path aliases rewritten to@videojs/reactCloses #701
Test plan
pnpm build:packages && pnpm -F site ejected-skinssucceedssite/src/content/ejected-skins.jsoncontains 16 entries<svg)tsxandjsxfields with inline SVGscssfield with no remaining@importstatementscssfield@videojs/icons,@videojs/skins,@videojs/utils) in React output🤖 Generated with Claude Code