feat(cli): add @videojs/cli docs command for LLM-friendly installation (#1214)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-04-14 11:07:49 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 9681515446
commit 24b8b77c8a
49 changed files with 2061 additions and 460 deletions
+1 -32
View File
@@ -1,43 +1,12 @@
import { atom } from 'nanostores';
export type Renderer =
| 'background-video'
// | 'cloudflare'
// | 'dash'
| 'hls'
| 'html5-audio'
| 'html5-video';
// | 'jwplayer'
// | 'mux-audio'
// | 'mux-background-video'
// | 'mux-video'
// | 'shaka'
// | 'spotify'
// | 'vimeo'
// | 'wistia'
// | 'youtube'
export type Skin = 'video' | 'audio' | 'minimal-video' | 'minimal-audio';
export type UseCase = 'default-video' | 'default-audio' | 'background-video';
import type { InstallMethod, Renderer, Skin, UseCase } from '@/utils/installation/types';
export const renderer = atom<Renderer>('html5-video');
export const skin = atom<Skin>('video');
export const useCase = atom<UseCase>('default-video');
export const sourceUrl = atom<string>('');
export type InstallMethod = 'cdn' | 'npm' | 'pnpm' | 'yarn' | 'bun';
export const installMethod = atom<InstallMethod>('cdn');
/** Mux playback ID from successful upload (used by code generation) */
export const muxPlaybackId = atom<string | null>(null);
export const VALID_RENDERERS: Record<UseCase, Renderer[]> = {
'default-video': [
'html5-video',
/* 'cloudflare', 'dash', */ 'hls' /* , 'jwplayer', 'mux-video', 'vimeo', 'wistia', 'youtube' */,
],
'default-audio': ['html5-audio' /* , 'mux-audio', 'spotify' */],
'background-video': ['background-video' /* , 'mux-background-video' */],
};