Skip to content

Commit 73b052e

Browse files
authored
docs: rework scaffolding your first vite project (vitejs#20477)
1 parent c669c52 commit 73b052e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/guide/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ The supported template presets are:
4343

4444
## Scaffolding Your First Vite Project
4545

46-
::: tip Compatibility Note
47-
Vite requires [Node.js](https://nodejs.org/en/) version 20.19+, 22.12+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
48-
:::
49-
5046
::: code-group
5147

5248
```bash [npm]
@@ -73,6 +69,12 @@ $ deno init --npm vite
7369

7470
Then follow the prompts!
7571

72+
::: tip Compatibility Note
73+
Vite requires [Node.js](https://nodejs.org/en/) version 20.19+, 22.12+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
74+
:::
75+
76+
:::: details Using create vite with command line options
77+
7678
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:
7779

7880
::: code-group
@@ -104,6 +106,8 @@ See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite)
104106

105107
You can use `.` for the project name to scaffold in the current directory.
106108

109+
::::
110+
107111
## Community Templates
108112

109113
create-vite is a tool to quickly start a project from a basic template for popular frameworks. Check out Awesome Vite for [community maintained templates](https://github.com/vitejs/awesome-vite#templates) that include other tools or target different frameworks.

0 commit comments

Comments
 (0)