Skip to content

Commit 6d0f01e

Browse files
authored
docs: add Deno commands (#19943)
1 parent 1f90255 commit 6d0f01e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/guide/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ $ pnpm create vite
6565
$ bun create vite
6666
```
6767

68+
```bash [Deno]
69+
$ deno init --npm vite
70+
```
71+
6872
:::
6973

7074
Then follow the prompts!
@@ -90,6 +94,10 @@ $ pnpm create vite my-vue-app --template vue
9094
$ bun create vite my-vue-app --template vue
9195
```
9296

97+
```bash [Deno]
98+
$ deno init --npm vite my-vue-app --template vue
99+
```
100+
93101
:::
94102

95103
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`.
@@ -134,6 +142,10 @@ $ pnpm add -D vite
134142
$ bun add -D vite
135143
```
136144

145+
```bash [Deno]
146+
$ deno add -D npm:vite
147+
```
148+
137149
:::
138150

139151
And create an `index.html` file like this:
@@ -162,6 +174,10 @@ $ pnpm vite
162174
$ bunx vite
163175
```
164176

177+
```bash [Deno]
178+
$ deno run -A npm:vite
179+
```
180+
165181
:::
166182

167183
The `index.html` will be served on `http://localhost:5173`.

0 commit comments

Comments
 (0)