Skip to content

Commit

Permalink
docs: add bun commands to getting started guide (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Sep 8, 2023
1 parent 5828737 commit f9b458f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions website/src/assets/svg/bun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions website/src/components/PackageManagerCommand.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ import InlineSVG from "@src/components/InlineSVG.astro";
<InlineSVG src="pnpm" />
<span>pnpm</span>
</li>
<li data-name="bun">
<InlineSVG src="bun" />
<span>bun</span>
</li>
</ul>

<pre data-name="npm" class="package-manager-command language-shellsession active"><code>{Astro.props.npx ? "npx" : "npm"} {Astro.props.npx ?? Astro.props.npm ?? Astro.props.command}</code></pre>
<pre data-name="yarn" class="package-manager-command language-shellsession"><code>yarn {Astro.props.yarn ?? Astro.props.command}</code></pre>
<pre data-name="pnpm" class="package-manager-command language-shellsession"><code>pnpm {Astro.props.pnpm ?? Astro.props.command}</code></pre>
<pre data-name="bun" class="package-manager-command language-shellsession"><code>bun{Astro.props.bun ? "" : "x"} {Astro.props.bunx ?? Astro.props.bun ?? Astro.props.command}</code></pre>
2 changes: 1 addition & 1 deletion website/src/components/PackageManagerRomeCommand.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ let {command} = Astro.props;
command = `biome ${command}`;
---

<PackageManagerCommand yarn={command} pnpm={command} npx={command} />
<PackageManagerCommand yarn={command} pnpm={command} npx={command} bunx={command} />
1 change: 1 addition & 0 deletions website/src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ To install Biome, run the following commands in a directory containing a `packag
npm="install --save-dev --save-exact @biomejs/biome"
pnpm="add --save-dev --save-exact @biomejs/biome"
yarn="add --dev --exact @biomejs/biome"
bun="add --dev --exact @biomejs/biome"
/>

> **Note**: It is also possible to install Biome globally rather than locally.
Expand Down

0 comments on commit f9b458f

Please sign in to comment.