Skip to content

Commit

Permalink
docs: detect Bun package manager in create-vite (#14017)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Sep 3, 2023
1 parent cd6bf29 commit 4d3cdd1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ $ yarn create vite
$ pnpm create vite
```

```bash [Bun]
$ bunx create-vite
```

:::

Then follow the prompts!
Expand All @@ -74,6 +78,9 @@ yarn create vite my-vue-app --template vue

# pnpm
pnpm create vite my-vue-app --template vue

# bun
bunx create-vite my-vue-app --template vue
```

See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) for more details on each supported template: `vanilla`, `vanilla-ts`, `vue`, `vue-ts`, `react`, `react-ts`, `react-swc`, `react-swc-ts`, `preact`, `preact-ts`, `lit`, `lit-ts`, `svelte`, `svelte-ts`, `solid`, `solid-ts`, `qwik`, `qwik-ts`.
Expand Down
9 changes: 9 additions & 0 deletions packages/create-vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ With PNPM:
$ pnpm create vite
```

With Bun:

```bash
$ bunx create-vite
```

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue project, run:
Expand All @@ -36,6 +42,9 @@ yarn create vite my-vue-app --template vue

# pnpm
pnpm create vite my-vue-app --template vue

# Bun
bunx create-vite my-vue-app --template vue
```

Currently supported template presets include:
Expand Down

0 comments on commit 4d3cdd1

Please sign in to comment.