Skip to content

🎥 Make videos programmatically with React

feel the turbo

Jonny Burger964bcb8d55b3
diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 92d6ea72e1..42a0a8f134 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -54,5 +54,4 @@ jobs:
- name: Build & Test
run: |
- pnpm run build
- pnpm test
+ pnpm run ci
diff --git a/package.json b/package.json
index 64751a8c28..01086eeca7 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,9 @@
"private": true,
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
- "test": "pnpm run test --recursive && jest --runInBand",
- "build": "pnpm run build --recursive",
+ "test": "turbo run lint test",
+ "build": "turbo run build",
+ "ci": "turbo run build lint test",
"watch": "pnpm run watch --recursive --stream --parallel",
"release": "npx lerna publish --force-publish"
},
@@ -15,6 +16,14 @@
},
"devDependencies": {
"@jonny/eslint-config": "^2.1.248",
+ "@remotion/babel-loader": "workspace:*",
+ "@remotion/bundler": "workspace:*",
+ "@remotion/cli": "workspace:*",
+ "@remotion/gif": "workspace:*",
+ "@remotion/media-utils": "workspace:*",
+ "@remotion/player": "workspace:*",
+ "@remotion/renderer": "workspace:*",
+ "@remotion/three": "workspace:*",
"@types/jest": "^27.0.2",
"@types/minimist": "^1.2.1",
"@types/node": "^16.7.5",
@@ -27,17 +36,10 @@
"jest-environment-jsdom": "^27.2.4",
"prettier": "^2.2.1",
"prettier-plugin-organize-imports": "^1.1.1",
- "sharp": "^0.29.0",
- "@remotion/babel-loader": "workspace:*",
- "@remotion/three": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/gif": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/media-utils": "workspace:*",
- "@remotion/renderer": "workspace:*",
- "@remotion/bundler": "workspace:*",
"remotion": "workspace:*",
+ "sharp": "^0.29.0",
"ts-jest": "^27.0.5",
+ "turbo": "^1.1.2",
"typescript": "^4.4.2"
},
"dependencies": {
diff --git a/packages/babel-loader/package.json b/packages/babel-loader/package.json
index c431847d8a..1850166783 100644
--- a/packages/babel-loader/package.json
+++ b/packages/babel-loader/package.json
@@ -4,7 +4,7 @@
"description": "babel-loader polyfill for Remotion",
"main": "dist/index.js",
"scripts": {
- "test": "eslint src --ext ts,tsx",
+ "lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
"build": "tsc -d"
},
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 0193078111..a850743775 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -8,7 +8,8 @@
"url": "https://github.com/remotion-dev/remotion"
},
"scripts": {
- "test": "eslint src --ext ts,tsx && jest",
+ "lint": "eslint src --ext ts,tsx",
+ "test": "jest",
"build": "tsc -d",
"watch": "tsc -w"
},
diff --git a/packages/cli/package.json b/packages/cli/package.json
index a6b5b63476..822ee43ccc 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -9,7 +9,8 @@
},
"module": "true",
"scripts": {
- "test": "eslint src --ext ts,tsx && jest",
+ "lint": "eslint src --ext ts,tsx",
+ "test": "jest",
"build": "tsc -d",
"watch": "tsc -w"
},
diff --git a/packages/core/package.json b/packages/core/package.json
index f7fd54b11f..31fdb48b6c 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
- "test": "eslint src --ext ts,tsx && jest --coverage && node generate-badges.js",
+ "lint": "eslint src --ext ts,tsx",
+ "test": "jest --coverage && node generate-badges.js",
"build": "tsc -d",
"watch": "tsc -w",
"prerelease": "cp ../../README.md ."
diff --git a/packages/create-video/package.json b/packages/create-video/package.json
index 48051c7612..ca93d21c08 100644
--- a/packages/create-video/package.json
+++ b/packages/create-video/package.json
@@ -13,7 +13,7 @@
"scripts": {
"build": "tsc -d",
"watch": "tsc -w",
- "test": "eslint src --ext ts,tsx"
+ "lint": "eslint src --ext ts,tsx"
},
"author": "",
"license": "SEE LICENSE IN LICENSE.md",
diff --git a/packages/docs/package.json b/packages/docs/package.json
index 05a4abda2a..4ebdddb7d8 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -11,7 +11,8 @@
"deploy": "docusaurus deploy",
"serve": "docusaurus serve",
"clear": "docusaurus clear",
- "test": "eslint src && jest"
+ "lint": "eslint src",
+ "test": "jest"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.7",
diff --git a/packages/example/package.json b/packages/example/package.json
index fab340670f..3800305e2a 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -12,7 +12,8 @@
"scripts": {
"start": "remotion preview src/index.tsx",
"start-js": "remotion preview src/entry.jsx",
- "test": "eslint src --ext ts,tsx,js,jsx && jest",
+ "lint": "eslint src --ext ts,tsx,js,jsx",
+ "test": "jest",
"build": "tsc -d",
"render": "remotion render src/index.tsx react-svg out/video.mp4",
"render-js": "remotion render src/entry.jsx framer out/video.mp4",
diff --git a/packages/gif/package.json b/packages/gif/package.json
index d8d23e9817..a17b8a99f3 100644
--- a/packages/gif/package.json
+++ b/packages/gif/package.json
@@ -13,7 +13,7 @@
"dist"
],
"scripts": {
- "test": "eslint src --ext ts,tsx ",
+ "lint": "eslint src --ext ts,tsx",
"build": "tsc -d",
"watch": "tsc -w"
},
diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json
index ffc649dea7..385194db90 100644
--- a/packages/media-utils/package.json
+++ b/packages/media-utils/package.json
@@ -5,7 +5,7 @@
"main": "dist/index.js",
"sideEffects": false,
"scripts": {
- "test": "eslint src --ext ts,tsx",
+ "lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
"build": "tsc -d"
},
diff --git a/packages/player-example/package.json b/packages/player-example/package.json
index a5bff766fb..0d24d6c331 100644
--- a/packages/player-example/package.json
+++ b/packages/player-example/package.json
@@ -24,8 +24,7 @@
"typescript": "^4.4.2"
},
"scripts": {
- "start": "craco start",
- "build": "exit 0"
+ "start": "craco start"
},
"eslintConfig": {
"extends": [
diff --git a/packages/player/package.json b/packages/player/package.json
index fb5e96bba8..d162982f7e 100644
--- a/packages/player/package.json
+++ b/packages/player/package.json
@@ -5,7 +5,8 @@
"main": "dist/index.js",
"sideEffects": false,
"scripts": {
- "test": "eslint src --ext ts,tsx && jest",
+ "lint": "eslint src --ext ts,tsx",
+ "test": "jest",
"build": "tsc -d",
"watch": "tsc -w",
"prerelease": "cp ../../README.md ."
diff --git a/packages/renderer/package.json b/packages/renderer/package.json
index 05def3c82a..220439ed39 100644
--- a/packages/renderer/package.json
+++ b/packages/renderer/package.json
@@ -6,7 +6,8 @@
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
- "test": "eslint src --ext ts,tsx && jest",
+ "lint": "eslint src --ext ts,tsx",
+ "test": "jest",
"watch": "tsc -w",
"build": "tsc -d"
},
diff --git a/packages/three/package.json b/packages/three/package.json
index d93b4d4173..a32a94db22 100644
--- a/packages/three/package.json
+++ b/packages/three/package.json
@@ -6,7 +6,7 @@
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
- "test": "eslint src --ext ts,tsx",
+ "lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
"build": "tsc -d"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0f130141d8..8ccbeb1cf6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -33,6 +33,7 @@ importers:
sharp: ^0.29.0
three: ^0.134.0
ts-jest: ^27.0.5
+ turbo: ^1.1.2
typescript: ^4.4.2
dependencies:
'@react-three/fiber': 7.0.19_907a6f2f9ddb15de374f8d77b33fd4f4
@@ -65,6 +66,7 @@ importers:
remotion: link:packages/core
sharp: 0.29.1
ts-jest: 27.0.5_52a571d76319e63aeaa66dc9db9e90cc
+ turbo: 1.1.2
typescript: 4.4.3
packages/babel-loader:
@@ -21162,6 +21164,121 @@ packages:
dependencies:
safe-buffer: 5.2.1
+ /turbo-darwin-64/1.1.2:
+ resolution: {integrity: sha512-rua17HnVvAqAU54gVfiQoH7cfopOqANv+yI6NtxLMD8aFfX2cJ9m8SSvH2v2vCaToNDW6OnTkdqDKQpqIHzbCw==}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-darwin-arm64/1.1.2:
+ resolution: {integrity: sha512-otqSQNYDyKg0KqB3NM0BI4oiRPKdJkUE/XBn8dcUS+zeRLrL00XtaM0eSwynZs1tb6zU/Y+SPMSBRygD1TCOnw==}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-freebsd-64/1.1.2:
+ resolution: {integrity: sha512-2nxwVDTAM0DtIQ2i3UOfEsQLF7vp+XZ/b9SKtiHxz710fXvdyuGivYI25axDdcBn8kQ45rnbUnarF1aW8CMGgg==}
+ cpu: [x64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-freebsd-arm64/1.1.2:
+ resolution: {integrity: sha512-ro1Ah96yzgzyT0BJe1mceAqxPxi0pUwzAvN3IKVpMqi4hYkT3aRbzDCaSxzyC6let2Al/NUsgHnbAv38OF2Xkw==}
+ cpu: [arm64]
+ os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-32/1.1.2:
+ resolution: {integrity: sha512-HKBsETxQMVaf/DJwMg7pypPbGA6KEu0gEf9C8o2aPJvwMPBYgNsNaU08Xizuh5xzEQTzpbIWfQyqdNgMV4RG3Q==}
+ cpu: [ia32]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-64/1.1.2:
+ resolution: {integrity: sha512-IklKsOklcRHIWkTzKg95BQ6jgJ53kLvRMrp8yqzlvZprkWdiyhAgUxrUTTHOOTce2XA3+jdN2+MwixG44uY2vg==}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-arm/1.1.2:
+ resolution: {integrity: sha512-CNbaTvRozq7H/5jpy9OZlzJ6BkeEXF+nF2n9dHiUrbAXd3nq84Qt9odcQJmGnexP19YS9w6l3tIHncX4BgwtqA==}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-arm64/1.1.2:
+ resolution: {integrity: sha512-3kS6sk2lOtuBBqkcL+yeGqD1yew4UZ1o7XUcbDD8UPwhF2kAfK7Qs0vTJw4lnO1scjhihkoTrmXM7yozvjf4/w==}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-mips64le/1.1.2:
+ resolution: {integrity: sha512-CDoXVIlW43C6KLgYxe13KkG8h6DswXHxbTVHiZdOwRQ56j46lU+JOVpLoh6wpQGcHvj58VEiypZBRTGVFMeogw==}
+ cpu: [mips64el]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-linux-ppc64le/1.1.2:
+ resolution: {integrity: sha512-xPVMHoiOJE/qI63jSOXwYIUFQXLdstxDV6fLnRxvq0QnJNxgTKq+mLUeE8M4LDVh1bdqHLcfk/HmyQ6+X1XVkQ==}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-windows-32/1.1.2:
+ resolution: {integrity: sha512-Gj1yvPE0aMDSOxGVSBaecLnwsVDT1xX8U0dtLrg52TYY2jlaci0atjHKr9nTFuX7z8uwAf6PopwdriGoCeT3ng==}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo-windows-64/1.1.2:
+ resolution: {integrity: sha512-0Ncx/iKhnKrdAU8hJ+8NUcF9jtFr8KoW5mMWfiFzy+mgUbVKbpzWT2eoGR6zJExedQsRvYOejbEX5iihbnj5bA==}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /turbo/1.1.2:
+ resolution: {integrity: sha512-3ViHKyAkaBKNKwHASTa1zkVT3tVVhQNLrpxBS7LoN+794ouQUYmy6lf0rTqzG3iTZHtIDwC+piZSdTl4XjEVMg==}
+ hasBin: true
+ requiresBuild: true
+ optionalDependencies:
+ turbo-darwin-64: 1.1.2
+ turbo-darwin-arm64: 1.1.2
+ turbo-freebsd-64: 1.1.2
+ turbo-freebsd-arm64: 1.1.2
+ turbo-linux-32: 1.1.2
+ turbo-linux-64: 1.1.2
+ turbo-linux-arm: 1.1.2
+ turbo-linux-arm64: 1.1.2
+ turbo-linux-mips64le: 1.1.2
+ turbo-linux-ppc64le: 1.1.2
+ turbo-windows-32: 1.1.2
+ turbo-windows-64: 1.1.2
+ dev: true
+
/tweetnacl/0.14.5:
resolution: {integrity: sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=}
dev: false
diff --git a/turbo.json b/turbo.json
index f9050a8c73..0c6081fc45 100644
--- a/turbo.json
+++ b/turbo.json
@@ -11,9 +11,6 @@
},
"lint": {
"outputs": []
- },
- "dev": {
- "cache": false
}
}
}