Skip to content

🎥 Make videos programmatically with React

add bun to docs

Jonny Burgerf3dc9ba7f129
diff --git a/packages/docs/docs/dataset-render.md b/packages/docs/docs/dataset-render.md
index 349c868777..38659b8fbc 100644
--- a/packages/docs/docs/dataset-render.md
+++ b/packages/docs/docs/dataset-render.md
@@ -20,8 +20,9 @@ import TabItem from '@theme/TabItem';
defaultValue="npm"
values={[
{ label: 'npm', value: 'npm', },
-{ label: 'yarn', value: 'yarn', },
{ label: 'pnpm', value: 'pnpm', },
+{ label: 'bun', value: 'bun', },
+{ label: 'yarn', value: 'yarn', },
]
}>
<TabItem value="npm">
@@ -38,14 +39,21 @@ pnpm create video --blank
```
</TabItem>
-
<TabItem value="yarn">
+```bash
+bun create video --blank
+```
+
+ </TabItem>
+ <TabItem value="bun">
+
```bash
yarn create video --blank
```
</TabItem>
+
</Tabs>
## Sample dataset
diff --git a/packages/docs/docs/getting-started.md b/packages/docs/docs/getting-started.md
index 5ffbff2ba0..22e38149ec 100644
--- a/packages/docs/docs/getting-started.md
+++ b/packages/docs/docs/getting-started.md
@@ -23,8 +23,9 @@ You can initialize a new Remotion video using
defaultValue="npm"
values={[
{ label: 'npm', value: 'npm', },
-{ label: 'yarn', value: 'yarn', },
+{ label: 'bun', value: 'bun', },
{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
]
}>
<TabItem value="npm">
@@ -46,6 +47,14 @@ pnpm create video
```bash
yarn create video
+```
+
+ </TabItem>
+
+ <TabItem value="bun">
+
+```bash
+bun create video
```
</TabItem>
diff --git a/packages/docs/docs/skia/skia.md b/packages/docs/docs/skia/skia.md
index 5c4e28cda5..f2f7a95bd6 100644
--- a/packages/docs/docs/skia/skia.md
+++ b/packages/docs/docs/skia/skia.md
@@ -109,6 +109,7 @@ values={[
{ label: 'npm', value: 'npm', },
{ label: 'yarn', value: 'yarn', },
{ label: 'pnpm', value: 'pnpm', },
+{ label: 'bun', value: 'bun', },
]
}>
<TabItem value="npm">
@@ -131,6 +132,13 @@ yarn create video --skia
```bash
pnpm create video --skia
+```
+
+ </TabItem>
+ <TabItem value="pnpm">
+
+```bash
+bun create video --skia
```
</TabItem>
diff --git a/packages/docs/docs/tailwind.md b/packages/docs/docs/tailwind.md
index 2717014cbd..091edbc48e 100644
--- a/packages/docs/docs/tailwind.md
+++ b/packages/docs/docs/tailwind.md
@@ -16,8 +16,9 @@ The easiest way to get started with Tailwind and Remotion is to [use the templat
defaultValue="npm"
values={[
{ label: 'npm', value: 'npm', },
-{ label: 'yarn', value: 'yarn', },
+{ label: 'bun', value: 'bun', },
{ label: 'pnpm', value: 'pnpm', },
+{ label: 'yarn', value: 'yarn', },
]
}>
<TabItem value="npm">
@@ -34,7 +35,13 @@ pnpm create video --tailwind
```
</TabItem>
+ <TabItem value="bun">
+
+```bash
+bun create video --tailwind
+```
+ </TabItem>
<TabItem value="yarn">
```bash
diff --git a/packages/docs/docs/tailwind/overview.md b/packages/docs/docs/tailwind/overview.md
index 38ac158af8..14eadc7e4d 100644
--- a/packages/docs/docs/tailwind/overview.md
+++ b/packages/docs/docs/tailwind/overview.md
@@ -77,6 +77,7 @@ values={[
{ label: 'npm', value: 'npm', },
{ label: 'yarn', value: 'yarn', },
{ label: 'pnpm', value: 'pnpm', },
+{ label: 'bun', value: 'bun', },
]
}>
<TabItem value="npm">
@@ -94,7 +95,13 @@ yarn create video --tailwind
```
</TabItem>
+ <TabItem value="bun">
+```bash
+bun create video --tailwind
+```
+
+ </TabItem>
<TabItem value="pnpm">
```bash
@@ -102,6 +109,7 @@ pnpm create video --tailwind
```
</TabItem>
+
</Tabs>
## APIs
diff --git a/packages/docs/src/components/TemplateModalContent.tsx b/packages/docs/src/components/TemplateModalContent.tsx
index ca3a836e4f..584f6b9cee 100644
--- a/packages/docs/src/components/TemplateModalContent.tsx
+++ b/packages/docs/src/components/TemplateModalContent.tsx
@@ -159,6 +159,7 @@ export const TemplateModalContent: React.FC<{
const npmCommand = `npx create-video@latest --${template.cliId}`;
const yarnCommand = `yarn create video --${template.cliId}`;
const pnpmCommand = `pnpm create video --${template.cliId}`;
+ const bunCommand = `bun create video --${template.cliId}`;
return (
<div>
@@ -246,6 +247,20 @@ export const TemplateModalContent: React.FC<{
}}
/>
</div>
+ {showPkgManagers ? (
+ <div style={githubrow}>
+ <a
+ target={"_blank"}
+ style={link}
+ onPointerDown={() => copyCommand(bunCommand)}
+ >
+ <div style={iconContainer}>
+ <CommandCopyButton copied={copied === bunCommand} />
+ </div>
+ <div style={installCommand}>{bunCommand}</div>
+ </a>
+ </div>
+ ) : null}
{showPkgManagers ? (
<div style={githubrow}>
<a style={link} onPointerDown={() => copyCommand(pnpmCommand)}>
@@ -270,6 +285,7 @@ export const TemplateModalContent: React.FC<{
</a>
</div>
) : null}
+
<div style={githubrow}>
<a
target={"_blank"}