Skip to content

Commit 89beb57

Browse files
authored
docs: add Deno commands (#1938)
1 parent b9d0516 commit 89beb57

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

guide/index.md

+16
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
あとは画面表示に従ってください!
@@ -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
サポートされている各テンプレートの詳細は [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) を参照してください: `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
そして、次のような `index.html` ファイルを作成します:
@@ -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
`index.html``http://localhost:5173` で配信されます。

0 commit comments

Comments
 (0)