Skip to content

Commit

Permalink
docs: improve additional command line options by code-group (#1503)
Browse files Browse the repository at this point in the history
resolve #1502

vitejs/vite@d81de48 の反映です。
  • Loading branch information
shuuji3 authored Jul 23, 2024
1 parent 1f7174e commit 513e51d
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,27 @@ $ bun create vite

プロジェクト名や使用するテンプレートは、追加のコマンドラインオプションによって直接指定することもできます。例えば Vite + Vue のプロジェクトを生成するには以下のコマンドを実行します:

```bash
::: code-group

```bash [NPM]
# npm 7+ は追加で 2 つのダッシュが必要:
npm create vite@latest my-vue-app -- --template vue
$ npm create vite@latest my-vue-app -- --template vue
```

# yarn
yarn create vite my-vue-app --template vue
```bash [Yarn]
$ yarn create vite my-vue-app --template vue
```

# pnpm
pnpm create vite my-vue-app --template vue
```bash [PNPM]
$ pnpm create vite my-vue-app --template vue
```

# bun
bun create vite my-vue-app --template vue
```bash [Bun]
$ bun create vite my-vue-app --template vue
```

:::

サポートされている各テンプレートの詳細は [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`.

現在のディレクトリーに生成するには、プロジェクト名に `.` を使用します。
Expand Down

0 comments on commit 513e51d

Please sign in to comment.