🎥 Make videos programmatically with React
nice
Jonny Burger06f89a49f751
diff --git a/package.json b/package.jsonindex c0c0c405d7..f2b75a70b0 100644--- a/package.json+++ b/package.json@@ -9,8 +9,8 @@"stylecheck": "turbo run lint formatting --no-update-notifier","build": "turbo run make --no-update-notifier","build-docs": "turbo run build-docs --no-update-notifier",- "ci": "turbo run build test --concurrency=50% --no-update-notifier",- "watch": "tsc -b --verbose -w",+ "ci": "turbo run make test --concurrency=50% --no-update-notifier",+ "watch": "turbo watch make","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": "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"diff --git a/packages/it-tests/src/rendering/rendering.test.ts b/packages/it-tests/src/rendering/rendering.test.tsindex fda909f0d8..242c26796a 100644--- a/packages/it-tests/src/rendering/rendering.test.ts+++ b/packages/it-tests/src/rendering/rendering.test.ts@@ -1,5 +1,5 @@import {RenderInternals} from '@remotion/renderer';-import {beforeAll, beforeEach, expect, test} from 'bun:test';+import {afterEach, beforeAll, beforeEach, expect, test} from 'bun:test';import execa from 'execa';import fs from 'fs';import path from 'path';@@ -25,6 +25,12 @@ beforeEach(() => {}});+afterEach(() => {+ if (fs.existsSync(outputPath)) {+ fs.unlinkSync(outputPath);+ }+});+test('Should be able to render video with custom port',async () => {diff --git a/packages/renderer/src/test/extract-audio.test.ts b/packages/renderer/src/test/extract-audio.test.tsindex bb034c446a..bb54c6bc24 100644--- a/packages/renderer/src/test/extract-audio.test.ts+++ b/packages/renderer/src/test/extract-audio.test.ts@@ -28,6 +28,7 @@ test('Should not be able to extract the audio with the wrong audio format', asynlogLevel: 'info',});}).toThrow(/Input audio codec: 'AV_CODEC_ID_OPUS'. Error: Invalid argument/);+ unlinkSync(audioOutput);});test('Should be able to extract the audio from a webm with the right format', async () => {diff --git a/turbo.json b/turbo.jsonindex e9ed073c74..0e005e1e77 100644--- a/turbo.json+++ b/turbo.json@@ -18,7 +18,8 @@},"test": {"dependsOn": ["^make", "make"],- "outputs": []+ "outputs": [],+ "outputLogs": "new-only"},"@remotion/renderer#test": {"dependsOn": [@@ -28,7 +29,8 @@"@remotion/it-tests#test","@remotion/cloudrun#make"],- "outputs": []+ "outputs": [],+ "outputLogs": "new-only"},"lint": {"dependsOn": ["@remotion/eslint-config-internal#make"],