From 4d3cdd1b316950885d3edd210d7777cf71b347ce Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Sun, 3 Sep 2023 11:15:10 -0700 Subject: [PATCH] docs: detect Bun package manager in `create-vite` (#14017) --- docs/guide/index.md | 7 +++++++ packages/create-vite/README.md | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/guide/index.md b/docs/guide/index.md index 3c691d7dd83e46..af5ab30e410f77 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! @@ -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`. diff --git a/packages/create-vite/README.md b/packages/create-vite/README.md index c6f29d59893448..02156e4697bd71 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: @@ -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: