🎥 Make videos programmatically with React
pnpm workspaces
Jonny Burger17daa48a98b1
diff --git a/.gitignore b/.gitignoreindex 8636132df0..378e2fa68c 100644--- a/.gitignore+++ b/.gitignore@@ -9,3 +9,4 @@ packages/example/out.env.pnpm-debug.log.vscode/taskmarks.json+.turbodiff --git a/lerna.json b/lerna.jsonindex 0baa221996..8468f3b366 100644--- a/lerna.json+++ b/lerna.json@@ -1,11 +1,10 @@{- "packages": [- "packages/*"- ],+ "packages": ["packages/*"],"version": "2.6.6","command": {"publish": {"exact": true}- }+ },+ "useWorkspaces": true}diff --git a/package.json b/package.jsonindex db36728680..774541ece2 100644--- a/package.json+++ b/package.json@@ -1,12 +1,12 @@{- "version": "1.0.0-alpha.4",+ "name": "remotion",+ "version": "2.6.6","private": true,"license": "SEE LICENSE IN LICENSE.md","scripts": {"test": "pnpm run test --recursive && jest --runInBand","build": "pnpm run build --recursive","watch": "pnpm run watch --recursive --stream --parallel",- "postinstall": "lerna bootstrap","release": "npx lerna publish --force-publish"},"engines": {@@ -28,15 +28,15 @@"prettier": "^2.2.1","prettier-plugin-organize-imports": "^1.1.1","sharp": "^0.29.0",- "@remotion/babel-loader": "2.6.6",- "@remotion/three": "2.6.6",- "@remotion/player": "2.6.6",- "@remotion/gif": "2.6.6",- "@remotion/cli": "2.6.6",- "@remotion/media-utils": "2.6.6",- "@remotion/renderer": "2.6.6",- "@remotion/bundler": "2.6.6",- "remotion": "2.6.6",+ "@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:*","ts-jest": "^27.0.5","typescript": "^4.4.2"},@@ -47,5 +47,7 @@"react-dom": "^17.0.1","three": "^0.134.0"},- "name": "remotion"+ "workspaces": [+ "packages/*"+ ]}diff --git a/packages/babel-loader/package.json b/packages/babel-loader/package.jsonindex 8bdc33299d..c431847d8a 100644--- a/packages/babel-loader/package.json+++ b/packages/babel-loader/package.json@@ -33,7 +33,7 @@"eslint": "^7.25.0","prettier": "^2.0.5","prettier-plugin-organize-imports": "^1.1.1",- "remotion": "2.6.6",+ "remotion": "workspace:2.6.6","typescript": "^4.4.2"},"publishConfig": {diff --git a/packages/bundler/package.json b/packages/bundler/package.jsonindex 3292a2d4e7..0193078111 100644--- a/packages/bundler/package.json+++ b/packages/bundler/package.json@@ -28,7 +28,7 @@"memfs": "^3.4.0","mime-types": "^2.1.34","react-refresh": "^0.9.0-rc.2",- "remotion": "2.6.6",+ "remotion": "workspace:*","semver": "7.3.4","source-map": "^0.5.7","source-map-loader": "^3.0.0",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 38e5f401f9..a6b5b63476 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -19,16 +19,16 @@"author": "Jonny Burger <[email protected]>","license": "SEE LICENSE IN LICENSE.md","dependencies": {- "@remotion/bundler": "2.6.6",- "@remotion/media-utils": "2.6.6",- "@remotion/player": "2.6.6",- "@remotion/renderer": "2.6.6",+ "@remotion/bundler": "workspace:2.6.6",+ "@remotion/media-utils": "workspace:2.6.6",+ "@remotion/player": "workspace:2.6.6",+ "@remotion/renderer": "workspace:2.6.6","better-opn": "^2.1.1","chalk": "^4.1.0","dotenv": "^9.0.0","execa": "^4.0.2","minimist": "^1.2.5",- "remotion": "2.6.6",+ "remotion": "workspace:2.6.6","semver": "^7.3.4","webpack": "5.60.0"},diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex 461b97936e..05a4abda2a 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -19,13 +19,13 @@"@docusaurus/preset-classic": "2.0.0-beta.7","@jonny/docusaurus-preset-shiki-twoslash": "1.1.36","@mdx-js/react": "^1.6.21",- "@remotion/babel-loader": "2.6.6",- "@remotion/bundler": "2.6.6",- "@remotion/gif": "2.6.6",- "@remotion/media-utils": "2.6.6",- "@remotion/player": "2.6.6",- "@remotion/renderer": "2.6.6",- "@remotion/three": "2.6.6",+ "@remotion/babel-loader": "workspace:2.6.6",+ "@remotion/bundler": "workspace:2.6.6",+ "@remotion/gif": "workspace:2.6.6",+ "@remotion/media-utils": "workspace:2.6.6",+ "@remotion/player": "workspace:2.6.6",+ "@remotion/renderer": "workspace:2.6.6",+ "@remotion/three": "workspace:2.6.6","@splitbee/web": "^0.2.4","chalk": "^4.1.0","clipboard": "^2.0.8",@@ -35,7 +35,7 @@"jest": "^27.2.4","polished": "4.1.2","react-player": "^2.9.0",- "remotion": "2.6.6",+ "remotion": "workspace:2.6.6","ts-jest": "^27.0.5"},"devDependencies": {diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.jsonindex 1b4f068ce1..90d5b3ef08 100644--- a/packages/eslint-config/package.json+++ b/packages/eslint-config/package.json@@ -16,7 +16,7 @@"author": "Jonny Burger <[email protected]>","license": "ISC","dependencies": {- "@remotion/eslint-plugin": "2.6.6",+ "@remotion/eslint-plugin": "workspace:2.6.6","@typescript-eslint/eslint-plugin": "^4.22.0","@typescript-eslint/parser": "^4.22.0","eslint-config-prettier": "^8.2.0",diff --git a/packages/example/package.json b/packages/example/package.jsonindex a27ea812b6..fab340670f 100644--- a/packages/example/package.json+++ b/packages/example/package.json@@ -24,15 +24,15 @@"@babel/preset-react": "7.12.13","@mdx-js/react": "^1.6.21","@react-three/drei": "^7.22.7",- "@remotion/babel-loader": "2.6.6",- "@remotion/bundler": "2.6.6",- "@remotion/cli": "2.6.6",- "@remotion/eslint-config": "2.6.6",- "@remotion/eslint-plugin": "2.6.6",- "@remotion/gif": "2.6.6",- "@remotion/media-utils": "2.6.6",- "@remotion/renderer": "2.6.6",- "@remotion/three": "2.6.6",+ "@remotion/babel-loader": "workspace:2.6.6",+ "@remotion/bundler": "workspace:2.6.6",+ "@remotion/cli": "workspace:2.6.6",+ "@remotion/eslint-config": "workspace:2.6.6",+ "@remotion/eslint-plugin": "workspace:2.6.6",+ "@remotion/gif": "workspace:2.6.6",+ "@remotion/media-utils": "workspace:2.6.6",+ "@remotion/renderer": "workspace:2.6.6",+ "@remotion/three": "workspace:2.6.6","@types/express": "^4.17.11","@types/node": "^16.7.5","@types/styled-components": "^5.1.1",diff --git a/packages/gif/package.json b/packages/gif/package.jsonindex 8e02c219a5..d8d23e9817 100644--- a/packages/gif/package.json+++ b/packages/gif/package.json@@ -20,7 +20,7 @@"dependencies": {"@react-gifs/tools": "^0.1.1","lru_map": "^0.4.1",- "remotion": "2.6.6"+ "remotion": "workspace:2.6.6"},"devDependencies": {"@jonny/eslint-config": "^2.1.248",diff --git a/packages/media-utils/package.json b/packages/media-utils/package.jsonindex 584cb411ca..ffc649dea7 100644--- a/packages/media-utils/package.json+++ b/packages/media-utils/package.json@@ -15,7 +15,7 @@"url": "https://github.com/remotion-dev/remotion"},"dependencies": {- "remotion": "2.6.6"+ "remotion": "workspace:2.6.6"},"peerDependencies": {"react": "^17.0.1",diff --git a/packages/player-example/package.json b/packages/player-example/package.jsonindex 0ed198329f..a5bff766fb 100644--- a/packages/player-example/package.json+++ b/packages/player-example/package.json@@ -9,7 +9,7 @@],"dependencies": {"@craco/craco": "^6.1.1",- "@remotion/player": "2.6.6",+ "@remotion/player": "workspace:2.6.6","@testing-library/jest-dom": "^5.11.4","@testing-library/react": "^11.1.0","@testing-library/user-event": "^12.1.10",@@ -20,7 +20,7 @@"react": "^17.0.1","react-dom": "^17.0.1","react-scripts": "4.0.3",- "remotion": "2.6.6",+ "remotion": "workspace:2.6.6","typescript": "^4.4.2"},"scripts": {diff --git a/packages/player/package.json b/packages/player/package.jsonindex 63ef18ce0a..fb5e96bba8 100644--- a/packages/player/package.json+++ b/packages/player/package.json@@ -24,7 +24,7 @@],"license": "SEE LICENSE IN LICENSE.md","dependencies": {- "remotion": "2.6.6"+ "remotion": "workspace:2.6.6"},"peerDependencies": {"react": ">=16.8.0",diff --git a/packages/renderer/package.json b/packages/renderer/package.jsonindex 9bfc6fe2b0..05def3c82a 100644--- a/packages/renderer/package.json+++ b/packages/renderer/package.json@@ -16,11 +16,11 @@"url": "https://github.com/remotion-dev/remotion"},"dependencies": {- "@remotion/bundler": "2.6.6",+ "@remotion/bundler": "workspace:2.6.6","execa": "^4.0.2","p-limit": "^3.1.0","puppeteer-core": "^13.1.2",- "remotion": "2.6.6",+ "remotion": "workspace:2.6.6","serve-handler": "^6.1.3"},"peerDependencies": {diff --git a/packages/three/package.json b/packages/three/package.jsonindex 6aa1db5ab8..d93b4d4173 100644--- a/packages/three/package.json+++ b/packages/three/package.json@@ -17,7 +17,7 @@"url": "https://github.com/remotion-dev/remotion"},"dependencies": {- "remotion": "2.6.6"+ "remotion": "workspace:2.6.6"},"peerDependencies": {"@react-three/fiber": ">=7.0.19",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex f8c2c190e9..0f130141d8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,14 +6,14 @@ importers:specifiers:'@jonny/eslint-config': ^2.1.248'@react-three/fiber': ^7.0.19- '@remotion/babel-loader': 2.6.6- '@remotion/bundler': 2.6.6- '@remotion/cli': 2.6.6- '@remotion/gif': 2.6.6- '@remotion/media-utils': 2.6.6- '@remotion/player': 2.6.6- '@remotion/renderer': 2.6.6- '@remotion/three': 2.6.6+ '@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@@ -29,7 +29,7 @@ importers:prettier-plugin-organize-imports: ^1.1.1react: ^17.0.1react-dom: ^17.0.1- remotion: 2.6.6+ remotion: workspace:*sharp: ^0.29.0three: ^0.134.0ts-jest: ^27.0.5@@ -82,7 +82,7 @@ importers:prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1react-refresh: ^0.9.0-rc.2- remotion: 2.6.6+ remotion: workspace:2.6.6typescript: ^4.4.2webpack: 5.60.0dependencies:@@ -124,7 +124,7 @@ importers:prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1react-refresh: ^0.9.0-rc.2- remotion: 2.6.6+ remotion: workspace:*semver: 7.3.4source-map: ^0.5.7source-map-loader: ^3.0.0@@ -164,10 +164,10 @@ importers:packages/cli:specifiers:'@jonny/eslint-config': ^2.1.248- '@remotion/bundler': 2.6.6- '@remotion/media-utils': 2.6.6- '@remotion/player': 2.6.6- '@remotion/renderer': 2.6.6+ '@remotion/bundler': workspace:2.6.6+ '@remotion/media-utils': workspace:2.6.6+ '@remotion/player': workspace:2.6.6+ '@remotion/renderer': workspace:2.6.6'@types/jest': ^27.0.2'@types/node': ^16.7.5'@types/react': 17.0.27@@ -181,7 +181,7 @@ importers:minimist: ^1.2.5prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1- remotion: 2.6.6+ remotion: workspace:2.6.6semver: ^7.3.4ts-jest: ^27.0.5typescript: ^4.4.2@@ -287,13 +287,13 @@ importers:'@docusaurus/preset-classic': 2.0.0-beta.7'@jonny/docusaurus-preset-shiki-twoslash': 1.1.36'@mdx-js/react': ^1.6.21- '@remotion/babel-loader': 2.6.6- '@remotion/bundler': 2.6.6- '@remotion/gif': 2.6.6- '@remotion/media-utils': 2.6.6- '@remotion/player': 2.6.6- '@remotion/renderer': 2.6.6- '@remotion/three': 2.6.6+ '@remotion/babel-loader': workspace:2.6.6+ '@remotion/bundler': workspace:2.6.6+ '@remotion/gif': workspace:2.6.6+ '@remotion/media-utils': workspace:2.6.6+ '@remotion/player': workspace:2.6.6+ '@remotion/renderer': workspace:2.6.6+ '@remotion/three': workspace:2.6.6'@splitbee/web': ^0.2.4'@tsconfig/docusaurus': ^1.0.4'@types/color-namer': ^1.3.0@@ -307,7 +307,7 @@ importers:jest: ^27.2.4polished: 4.1.2react-player: ^2.9.0- remotion: 2.6.6+ remotion: workspace:2.6.6ts-jest: ^27.0.5typescript: ^4.4.4url-loader: ^4.1.1@@ -346,7 +346,7 @@ importers:packages/eslint-config:specifiers:- '@remotion/eslint-plugin': 2.6.6+ '@remotion/eslint-plugin': workspace:2.6.6'@types/babel__core': ^7.1.12'@types/babel__template': ^7.4.0'@typescript-eslint/eslint-plugin': ^4.22.0@@ -394,15 +394,15 @@ importers:'@babel/preset-react': 7.12.13'@mdx-js/react': ^1.6.21'@react-three/drei': ^7.22.7- '@remotion/babel-loader': 2.6.6- '@remotion/bundler': 2.6.6- '@remotion/cli': 2.6.6- '@remotion/eslint-config': 2.6.6- '@remotion/eslint-plugin': 2.6.6- '@remotion/gif': 2.6.6- '@remotion/media-utils': 2.6.6- '@remotion/renderer': 2.6.6- '@remotion/three': 2.6.6+ '@remotion/babel-loader': workspace:2.6.6+ '@remotion/bundler': workspace:2.6.6+ '@remotion/cli': workspace:2.6.6+ '@remotion/eslint-config': workspace:2.6.6+ '@remotion/eslint-plugin': workspace:2.6.6+ '@remotion/gif': workspace:2.6.6+ '@remotion/media-utils': workspace:2.6.6+ '@remotion/renderer': workspace:2.6.6+ '@remotion/three': workspace:2.6.6'@types/babel__core': ^7.1.12'@types/babel__template': ^7.4.0'@types/express': ^4.17.11@@ -475,7 +475,7 @@ importers:jest: ^27.2.4lru_map: ^0.4.1prettier-plugin-organize-imports: ^1.1.1- remotion: 2.6.6+ remotion: workspace:2.6.6ts-jest: ^27.0.5typescript: ^4.4.2webpack: 5.60.0@@ -504,7 +504,7 @@ importers:eslint: ^7.25.0prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1- remotion: 2.6.6+ remotion: workspace:2.6.6typescript: ^4.4.2dependencies:remotion: link:../core@@ -529,7 +529,7 @@ importers:jest: ^27.2.4prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1- remotion: 2.6.6+ remotion: workspace:2.6.6ts-jest: ^27.0.5typescript: ^4.4.2webpack: 5.60.0@@ -554,7 +554,7 @@ importers:packages/player-example:specifiers:'@craco/craco': ^6.1.1- '@remotion/player': 2.6.6+ '@remotion/player': workspace:2.6.6'@testing-library/jest-dom': ^5.11.4'@testing-library/react': ^11.1.0'@testing-library/user-event': ^12.1.10@@ -565,7 +565,7 @@ importers:react: ^17.0.1react-dom: ^17.0.1react-scripts: 4.0.3- remotion: 2.6.6+ remotion: workspace:2.6.6typescript: ^4.4.2dependencies:'@craco/craco': [email protected]@@ -586,7 +586,7 @@ importers:packages/renderer:specifiers:'@jonny/eslint-config': ^2.1.248- '@remotion/bundler': 2.6.6+ '@remotion/bundler': workspace:2.6.6'@testing-library/dom': ^8.7.2'@testing-library/react': ^11.2.5'@types/jest': ^27.0.2@@ -599,7 +599,7 @@ importers:prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1puppeteer-core: ^13.1.2- remotion: 2.6.6+ remotion: workspace:2.6.6serve-handler: ^6.1.3ts-jest: 26.5.1typescript: ^4.4.2@@ -632,7 +632,7 @@ importers:eslint: ^7.4.0prettier: ^2.0.5prettier-plugin-organize-imports: ^1.1.1- remotion: 2.6.6+ remotion: workspace:2.6.6three: ^0.134.0typescript: ^4.4.2dependencies:diff --git a/tsconfig.json b/tsconfig.jsonindex 9f4bb1696e..16d1b65bc2 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -10,6 +10,7 @@"noEmit": false,"strict": true,"esModuleInterop": true,- "resolveJsonModule": true+ "resolveJsonModule": true,+ "incremental": true}}diff --git a/turbo.json b/turbo.jsonnew file mode 100644index 0000000000..3b4d0435a1--- /dev/null+++ b/turbo.json@@ -0,0 +1,19 @@+{+ "baseBranch": "origin/main",+ "pipeline": {+ "build": {+ "dependsOn": ["^build"],+ "outputs": [".next/**"]+ },+ "test": {+ "dependsOn": ["^build"],+ "outputs": []+ },+ "lint": {+ "outputs": []+ },+ "dev": {+ "cache": false+ }+ }+}