diff --git a/docs/guide/index.md b/docs/guide/index.md index c45e1711d69dbe..c82973a840dedb 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -59,6 +59,10 @@ $ yarn create vite $ pnpm create vite ``` +```bash [Bun] +$ bunx create-vite +``` + ::: Then follow the prompts! @@ -77,6 +81,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`. diff --git a/packages/create-vite/README.md b/packages/create-vite/README.md index ea05ce4009beaf..8a4f5abf71277c 100644 --- a/packages/create-vite/README.md +++ b/packages/create-vite/README.md @@ -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: @@ -39,6 +45,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: