Skip to content

🎥 Make videos programmatically with React

simplify

Jonny Burger7106c7722985
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 35650c3c9d..f54b772d80 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -14,10 +14,17 @@ jobs:
runs-on: ubuntu-latest
name: Lambda integration
steps:
- - uses: actions/checkout@main
+ - uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: "8.10.2"
+ - name: Cache turbo build setup
+ uses: actions/cache@v4
+ with:
+ path: .turbo
+ key: ${{ runner.os }}-turbo-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-turbo-
- uses: actions/setup-node@v4
with:
node-version: 16
@@ -43,10 +50,17 @@ jobs:
runs-on: ubuntu-latest
name: SSR integration
steps:
- - uses: actions/checkout@main
+ - uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: "8.10.2"
+ - name: Cache turbo build setup
+ uses: actions/cache@v4
+ with:
+ path: .turbo
+ key: ${{ runner.os }}-turbo-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-turbo-
- uses: actions/setup-node@v4
with:
node-version: 16
@@ -83,10 +97,17 @@ jobs:
runs-on: ubuntu-latest
name: Linting + Formatting
steps:
- - uses: actions/checkout@main
+ - uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: "8.10.2"
+ - name: Cache turbo build setup
+ uses: actions/cache@v4
+ with:
+ path: .turbo
+ key: ${{ runner.os }}-turbo-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-turbo-
- uses: actions/setup-node@v4
with:
node-version: 16
@@ -120,7 +141,7 @@ jobs:
- os: ubuntu-latest
node_version: 20.5
steps:
- - uses: actions/checkout@main
+ - uses: actions/checkout@v4
- uses: actions/setup-go@v5
if: matrix.os == 'macos-14'
with:
@@ -132,6 +153,13 @@ jobs:
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
+ - name: Cache turbo build setup
+ uses: actions/cache@v4
+ with:
+ path: .turbo
+ key: ${{ runner.os }}-turbo-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-turbo-
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.20
diff --git a/package.json b/package.json
index 384459c7d4..61b4c23616 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
"watch": "tsc -b --verbose -w",
"release-alpha": "pnpm recursive publish --tag=alpha --no-git-checks && pnpm recursive run --sequential publishprivate",
"release": "pnpm recursive publish && pnpm recursive run --sequential publishprivate && git push --tags && git push",
- "clean": "rm -rf packages/**/dist && rm -rf packages/**/node_modules && rm -rf node_modules && rm -rf .cache && rm -rf packages/**/tsconfig.tsbuildinfo && rm -f packages/tsconfig.tsbuildinfo && rm -rf packages/**/.turbo && rm -rf .turbo"
+ "clean": "turbo run clean && rm -rf packages/**/dist && rm -rf packages/**/node_modules && rm -rf node_modules && rm -rf .cache && rm -rf packages/**/tsconfig.tsbuildinfo && rm -f packages/tsconfig.tsbuildinfo && rm -rf packages/**/.turbo && rm -rf .turbo"
},
"engines": {
"node": ">=16",
diff --git a/packages/example/package.json b/packages/example/package.json
index b0d7808ade..625b9dfbae 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -17,6 +17,7 @@
"start-bun": "PATCH_BUN_DEVELOPMENT=true bun --bun remotion studio",
"start-js": "remotion preview src/entry.jsx",
"comps": "remotion compositions",
+ "clean": "rm -rf build && rm -rf out",
"lint": "eslint src --ext ts,tsx,js,jsx",
"test": "vitest --run",
"make": "remotion bundle",
diff --git a/turbo.json b/turbo.json
index 5e98ab7287..4a94e807d4 100644
--- a/turbo.json
+++ b/turbo.json
@@ -1,6 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
+ "clean": {},
"make": {
"dependsOn": ["^make", "//#ts-build"],
"outputs": ["dist/esm/**"],
@@ -16,12 +17,12 @@
},
"@remotion/example#make": {
"dependsOn": ["^make"],
- "outputs": ["build", "./node_modules/.cache/**"],
+ "outputs": ["build", "./node_modules/.cache"],
"outputLogs": "new-only"
},
"build-docs": {
"dependsOn": ["^make", "make"],
- "outputs": [".docusaurus/**", "build/**", "./node_modules/.cache/**"]
+ "outputs": [".docusaurus", "build", "node_modules/.cache"]
},
"test": {
"dependsOn": ["^make", "make"],
@@ -50,7 +51,7 @@
"dependsOn": ["@remotion/eslint-config#make"]
},
"@remotion/google-fonts#make": {
- "outputs": ["src/**", ".cache-css/**", "dist/esm/**"],
+ "outputs": ["src", ".cache-css", "dist/esm"],
"dependsOn": ["^make"],
"outputLogs": "new-only"
},
@@ -58,13 +59,13 @@
"dependsOn": ["^make", "//#ts-build"],
"outputs": [
"dist/shared/sa-permissions.json",
- "container/dist/**",
+ "container/dist",
"gcpInstaller/gcpInstaller.tar"
],
"outputLogs": "new-only"
},
"@remotion/renderer#make": {
- "outputs": ["target/debug/build/**", "target/release/build/**"],
+ "outputs": ["target/debug/build", "target/release/build"],
"dependsOn": ["^make"],
"outputLogs": "new-only"
},
@@ -80,11 +81,11 @@
},
"@remotion/media-parser#build": {
"dependsOn": ["//#ts-build"],
- "outputs": ["dist/esm/**"]
+ "outputs": ["dist/esm"]
},
"@remotion/webcodecs#make": {
"dependsOn": ["^@remotion/media-parser#make"],
- "outputs": ["dist/esm/**"],
+ "outputs": ["dist/esm"],
"outputLogs": "new-only"
},
"@remotion/convert#build-page": {
@@ -92,7 +93,7 @@
},
"convert": {
"dependsOn": ["^@remotion/convert#build-page"],
- "outputs": ["build/**"]
+ "outputs": ["build"]
}
}
}