add-new-package

द्वारा remotion-dev

Remotion मोनोरेपो में एक नया पैकेज जोड़ें, जिसमें पैकेज स्कैफोल्डिंग, मोनोरेपो पंजीकरण, दस्तावेज़ीकरण, बिल्ड स्क्रिप्ट, परीक्षण और रिलीज़ चेकलिस्ट शामिल है…

npx skills add https://github.com/remotion-dev/remotion --skill add-new-package

Add a new Remotion package

Steps

  1. Create packages/<name>/ with these files:

    • package.json — copy from @remotion/light-leaks as template; update name, description, homepage, dependencies
    • tsconfig.json — extends ../tsconfig.settings.json, uses the native TypeScript compiler with emitDeclarationOnly: true, outDir: "dist", module: "es2020", moduleResolution: "bundler", target: "ES2022"
    • src/index.ts — exports
    • bundle.ts — Bun build script, externalize react, remotion, remotion/no-react, react/jsx-runtime, react/jsx-dev-runtime, react-dom
    • eslint.config.mjs — use remotionFlatConfig({react: true}) if React, {react: false} otherwise
    • .npmignore — copy from @remotion/light-leaks
    • README.md — package name, description, install command, link to docs
  2. Register in monorepo:

    • tsconfig.json (root) — add {"path": "./packages/<name>"} to references
    • packages/cli/src/list-of-remotion-packages.ts — add '@remotion/<name>'
    • packages/create-video/src/list-of-remotion-packages.ts — add '@remotion/<name>'
    • packages/studio-shared/src/package-info.ts — add to packages, descriptions, installableMap, apiDocs
  3. Documentation (packages/docs/docs/<name>/):

    • Add "@remotion/<name>": "workspace:*" to packages/docs/package.json dependencies (needed for twoslash snippets)
    • index.mdx — install tabs, table of contents, license
    • table-of-contents.tsx — TOCItem grid linking to component/function pages
    • Individual component/function .mdx pages
    • Edit packages/docs/sidebars.ts — add category
    • Edit packages/docs/components/TableOfContents/api.tsx — import table of contents and add section

See the writing-docs skill for details on writing documentation.

  1. Example usage:

    • Add "@remotion/<name>": "workspace:*" to packages/example/package.json
    • Create packages/example/src/<Name>/index.tsx
    • Register <Composition> in packages/example/src/Root.tsx
    • Add {"path": "../<name>"} to packages/example/tsconfig.json references
  2. Run bun i to install dependencies

  3. Build: cd packages/<name> && bun run make

Version

Use the current version from packages/core/src/version.ts.
For the documentation version, increment the patch version by 1 as it will only be released with the next Remotion release.

Patterns

  • Use "workspace:*" for internal dependencies
  • Use "catalog:" for shared external dependency versions
  • Set make to node ../.monorepo/tsrs.cjs && bun --env-file=../.env.bundle bundle.ts.
  • Add "type": "module" to package.json
  • Add "typescript": "catalog:" to devDependencies. The monorepo launcher uses tsrs where supported and falls back to the pinned TypeScript compiler.
  • Types/main point to dist/index.d.ts and dist/index.js (not dist/cjs/)
  • Packages with React components need peerDependencies for react and react-dom

remotion-dev की और Skills

3d
remotion-dev
Remotion में Three.js और React Three Fiber का उपयोग करके 3D सामग्री।
accept-element
remotion-dev
बाहरी Remotion Element योगदान को स्वीकार करें, इसकी प्रतिबद्ध पूर्वावलोकनों की पुष्टि करके, उन्हें R2 पर अपलोड करके, अस्थायी संपत्तियों को हटाकर, और तैयारी करके…
add-bug
remotion-dev
पैकेज/बग्स/एपीआई/[v].ts में एक नया रेमोशन बग प्रविष्टि जोड़ें। इसका उपयोग तब करें जब उपयोगकर्ता किसी बग और प्रभावित रेमोशन संस्करणों का वर्णन करता है जिन्हें…
add-cli-option
remotion-dev
एक नया Remotion CLI या कॉन्फ़िग विकल्प जोड़ें, AnyRemotionOption बनाकर, CLI पार्सिंग रजिस्टर करके, कॉन्फ़िग सेटर को वायर करके और दस्तावेज़ीकरण अपडेट करके। इसका उपयोग तब करें जब...
add-effect
remotion-dev
@remotion/effects में एक नया प्रभाव जोड़ें, जिसमें कार्यान्वयन, पैकेज निर्यात, दस्तावेज़, डेमो, पूर्वावलोकन चित्र, Remotion कौशल अपडेट, परीक्षण, फ़ॉर्मेटिंग, और… शामिल हैं।
add-expert
remotion-dev
Remotion विशेषज्ञ पृष्ठ पर एक नया विशेषज्ञ जोड़ें
add-sfx
remotion-dev
@remotion/sfx में एक नया ध्वनि प्रभाव जोड़ें
add-webcodecs-bug
remotion-dev
ब्राउज़र WebCodecs बग को Remotion Mediabunny WebCodecs बग्स डॉक्स पेज में जोड़ें। तब उपयोग करें जब कोई Chromium, WebKit, या Firefox मुद्दा URL दिया गया हो जिसे ट्रैक किया जाना चाहिए…