chore: move sandbox to apps/ (#1171)

This commit is contained in:
rahim
2026-04-01 12:42:06 -07:00
committed by GitHub
parent 2fff955ab6
commit 6c5f8c0eda
77 changed files with 94 additions and 84 deletions
-1
View File
@@ -34,7 +34,6 @@ const ROOT = resolve(__dirname, '../..');
const PACKAGES_DIR = join(ROOT, 'packages');
const SKIP_PACKAGES = new Set([
'sandbox',
'react-native',
'skins',
'icons',
+3
View File
@@ -17,6 +17,7 @@ Refer to **[`CONTRIBUTING.md`](./CONTRIBUTING.md)** for setup, development, and
| `packages/html` | Web player—DOM/Browserspecific implementation. |
| `packages/react` | React player—adapts core state to React components. |
| `packages/react-native` | React Native player integration layer. |
| `apps/sandbox` | Vitebased dev playground (private, not published). |
| `site/` | Astrobased docs and website. |
### Dependency Hierarchy
@@ -65,6 +66,8 @@ pnpm typecheck
pnpm build
# Build all packages (no apps)
pnpm build:packages
# Build sandbox (and its package deps)
pnpm build:sandbox
# Build specific package
pnpm -F <pkg> build
+6
View File
@@ -94,6 +94,12 @@ Sometimes you may want to do (non-dev) builds, say, to validate the full build p
pnpm build:packages
```
To build the sandbox (and its package dependencies):
```sh
pnpm build:sandbox
```
To build all workspace packages and applications:
```sh
+1
View File
@@ -18,6 +18,7 @@
"prepare": "simple-git-hooks",
"postinstall": "node build/scripts/link-aliases.mjs",
"build:packages": "turbo run build --filter='./packages/*'",
"build:sandbox": "turbo run build --filter=@videojs/sandbox...",
"build:cdn": "turbo run build:cdn --filter=@videojs/html",
"build:site": "turbo run build --filter=site",
"build": "turbo run build",
+83 -83
View File
@@ -75,6 +75,88 @@ importers:
specifier: ^6.0.2
version: 6.0.2
apps/sandbox:
dependencies:
'@videojs/core':
specifier: workspace:*
version: link:../../packages/core
'@videojs/html':
specifier: workspace:*
version: link:../../packages/html
'@videojs/icons':
specifier: workspace:*
version: link:../../packages/icons
'@videojs/react':
specifier: workspace:*
version: link:../../packages/react
'@videojs/skins':
specifier: workspace:*
version: link:../../packages/skins
'@videojs/spf':
specifier: workspace:*
version: link:../../packages/spf
'@videojs/store':
specifier: workspace:*
version: link:../../packages/store
'@videojs/utils':
specifier: workspace:*
version: link:../../packages/utils
devDependencies:
'@tailwindcss/vite':
specifier: ^4.2.1
version: 4.2.1(vite@8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2))
'@types/fs-extra':
specifier: ^11.0.4
version: 11.0.4
'@types/prompts':
specifier: ^2.4.9
version: 2.4.9
'@types/react':
specifier: ^19.2.14
version: 19.2.14
'@types/react-dom':
specifier: ^19.2.3
version: 19.2.3(@types/react@19.2.14)
'@vitejs/plugin-react':
specifier: ^6.0.1
version: 6.0.1(babel-plugin-react-compiler@1.0.0)(vite@8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2))
chalk:
specifier: ^5.6.2
version: 5.6.2
diff:
specifier: ^8.0.3
version: 8.0.3
dir-compare:
specifier: ^5.0.0
version: 5.0.0
fs-extra:
specifier: ^11.3.4
version: 11.3.4
prompts:
specifier: ^2.4.2
version: 2.4.2
react:
specifier: ^19.2.4
version: 19.2.4
react-dom:
specifier: ^19.2.4
version: 19.2.4(react@19.2.4)
rimraf:
specifier: ^6.1.3
version: 6.1.3
tailwindcss:
specifier: ^4.2.1
version: 4.2.1
tsx:
specifier: ^4.21.0
version: 4.21.0
typescript:
specifier: ^6.0.2
version: 6.0.2
vite:
specifier: ^8.0.0
version: 8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2)
packages/core:
dependencies:
'@videojs/spf':
@@ -245,88 +327,6 @@ importers:
specifier: ^4.1.0
version: 4.1.0(@opentelemetry/api@1.9.0)(@types/node@22.19.15)(@vitest/browser-playwright@4.1.0)(@vitest/ui@4.1.0)(happy-dom@18.0.1)(jsdom@26.1.0)(vite@8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2))
packages/sandbox:
dependencies:
'@videojs/core':
specifier: workspace:*
version: link:../core
'@videojs/html':
specifier: workspace:*
version: link:../html
'@videojs/icons':
specifier: workspace:*
version: link:../icons
'@videojs/react':
specifier: workspace:*
version: link:../react
'@videojs/skins':
specifier: workspace:*
version: link:../skins
'@videojs/spf':
specifier: workspace:*
version: link:../spf
'@videojs/store':
specifier: workspace:*
version: link:../store
'@videojs/utils':
specifier: workspace:*
version: link:../utils
devDependencies:
'@tailwindcss/vite':
specifier: ^4.2.1
version: 4.2.1(vite@8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2))
'@types/fs-extra':
specifier: ^11.0.4
version: 11.0.4
'@types/prompts':
specifier: ^2.4.9
version: 2.4.9
'@types/react':
specifier: ^19.2.14
version: 19.2.14
'@types/react-dom':
specifier: ^19.2.3
version: 19.2.3(@types/react@19.2.14)
'@vitejs/plugin-react':
specifier: ^6.0.1
version: 6.0.1(babel-plugin-react-compiler@1.0.0)(vite@8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2))
chalk:
specifier: ^5.6.2
version: 5.6.2
diff:
specifier: ^8.0.3
version: 8.0.3
dir-compare:
specifier: ^5.0.0
version: 5.0.0
fs-extra:
specifier: ^11.3.4
version: 11.3.4
prompts:
specifier: ^2.4.2
version: 2.4.2
react:
specifier: ^19.2.4
version: 19.2.4
react-dom:
specifier: ^19.2.4
version: 19.2.4(react@19.2.4)
rimraf:
specifier: ^6.1.3
version: 6.1.3
tailwindcss:
specifier: ^4.2.1
version: 4.2.1
tsx:
specifier: ^4.21.0
version: 4.21.0
typescript:
specifier: ^6.0.2
version: 6.0.2
vite:
specifier: ^8.0.0
version: 8.0.0(@types/node@22.19.15)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.8.2)
packages/skins:
dependencies:
'@videojs/utils':
@@ -15794,7 +15794,7 @@ snapshots:
dependencies:
'@oxc-project/runtime': 0.115.0
lightningcss: 1.32.0
picomatch: 4.0.3
picomatch: 4.0.4
postcss: 8.5.8
rolldown: 1.0.0-rc.9
tinyglobby: 0.2.15
+1
View File
@@ -4,4 +4,5 @@ trustPolicy: no-downgrade
packages:
- 'packages/*'
- 'apps/*'
- site