chore: remove remotion and @remotion/player from dependencies
- Removed 'remotion' and '@remotion/player' from package.json - Deleted Root.tsx (SSR composition registry, no longer needed for frontend) - Updated build scripts to skip remotion:bundle step - Kept @remotion/bundler and @remotion/renderer for server-side (Phase 4) - Verified: electron-vite build passes cleanly
This commit is contained in:
Generated
-2
@@ -12,7 +12,6 @@
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@google/genai": "^2.4.0",
|
||||
"@remotion/bundler": "^4.0.468",
|
||||
"@remotion/player": "^4.0.468",
|
||||
"@remotion/renderer": "^4.0.468",
|
||||
"@tailwindcss/vite": "^4.1.14",
|
||||
"@vitejs/plugin-react": "^5.0.4",
|
||||
@@ -27,7 +26,6 @@
|
||||
"papaparse": "^5.5.3",
|
||||
"react": "^19.0.1",
|
||||
"react-dom": "^19.0.1",
|
||||
"remotion": "^4.0.468",
|
||||
"vite": "^6.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+3
-5
@@ -15,16 +15,15 @@
|
||||
"preview": "vite preview",
|
||||
"clean": "rm -rf dist out server.js",
|
||||
"lint": "tsc --noEmit",
|
||||
"remotion:bundle": "node scripts/bundle-remotion.js",
|
||||
"package": "npm run remotion:bundle && npm run build && electron-forge package",
|
||||
"make": "npm run remotion:bundle && npm run build && electron-forge make"
|
||||
"remotion:bundle": "echo 'Remotion bundle step removed — using Bradly Engine'",
|
||||
"package": "npm run build && electron-forge package",
|
||||
"make": "npm run build && electron-forge make"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@google/genai": "^2.4.0",
|
||||
"@remotion/bundler": "^4.0.468",
|
||||
"@remotion/player": "^4.0.468",
|
||||
"@remotion/renderer": "^4.0.468",
|
||||
"@tailwindcss/vite": "^4.1.14",
|
||||
"@vitejs/plugin-react": "^5.0.4",
|
||||
@@ -39,7 +38,6 @@
|
||||
"papaparse": "^5.5.3",
|
||||
"react": "^19.0.1",
|
||||
"react-dom": "^19.0.1",
|
||||
"remotion": "^4.0.468",
|
||||
"vite": "^6.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
/**
|
||||
* Remotion Root — Entry point for bundler to discover compositions.
|
||||
*
|
||||
* This file is referenced by the server-side renderer bundle step.
|
||||
* It registers BrandComposition as a renderable Composition.
|
||||
*/
|
||||
import React from 'react';
|
||||
import { Composition, Still, registerRoot } from 'remotion';
|
||||
import { BrandComposition } from './components/BrandComposition';
|
||||
import { RenderProps } from './types';
|
||||
|
||||
export const RemotionRoot: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
{/* Video composition — used for MP4/WebM rendering */}
|
||||
<Composition
|
||||
id="BrandVideo"
|
||||
component={BrandComposition}
|
||||
durationInFrames={150}
|
||||
fps={30}
|
||||
width={1080}
|
||||
height={1080}
|
||||
defaultProps={{
|
||||
designMD: {} as any,
|
||||
textOverlay: '',
|
||||
timelineElements: [],
|
||||
layers: [],
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Still composition — used for PNG/JPEG rendering */}
|
||||
<Still
|
||||
id="BrandStill"
|
||||
component={BrandComposition}
|
||||
width={1080}
|
||||
height={1080}
|
||||
defaultProps={{
|
||||
designMD: {} as any,
|
||||
textOverlay: '',
|
||||
timelineElements: [],
|
||||
layers: [],
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
registerRoot(RemotionRoot);
|
||||
Reference in New Issue
Block a user