Skip to content

Commit 84bb84e

Browse files
committed
improve installation example
1 parent 8d66e68 commit 84bb84e

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

src/guide/quick-start.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,26 @@ You can try Vue with SFCs online on [StackBlitz](https://vite.new/vue). StackBli
5555

5656
To create a built-tool-enabled Vue project on your machine, run the following command in your command line (without the `$` sign):
5757

58-
```sh
59-
$ npm init vue@latest
60-
```
58+
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">$</span> <span style="color:#ddd;">npm init vue@latest</span></span></code></pre></div>
6159

6260
This command will install and execute [create-vue](https://github.com/vuejs/create-vue), the official Vue project scaffolding tool. You will be presented with prompts for a number of optional features such as TypeScript and testing support:
6361

64-
```
65-
✔ Project name: … <your-project-name>
66-
✔ Add TypeScript? … No / Yes
67-
✔ Add JSX Support? … No / Yes
68-
✔ Add Vue Router for Single Page Application development? … No / Yes
69-
✔ Add Vuex for state management? … No / Yes
70-
✔ Add Cypress for testing? … No / Yes
71-
72-
Scaffolding project in /**/vue-project...
73-
```
62+
<div class="language-sh"><pre><code><span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Project name: <span style="color:#888;">… <span style="color:#89DDFF;">&lt;</span><span style="color:#888;">your-project-name</span><span style="color:#89DDFF;">&gt;</span></span></span>
63+
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Add TypeScript? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline">No</span> / Yes</span></span>
64+
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Add JSX Support? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline">No</span> / Yes</span></span>
65+
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Add Vue Router for Single Page Application development? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline">No</span> / Yes</span></span>
66+
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Add Vuex for state management? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline">No</span> / Yes</span></span>
67+
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#ddd;">Add Cypress for testing? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline">No</span> / Yes</span></span>
68+
<span></span>
69+
<span style="color:#ddd;">Scaffolding project in ./<span style="color:#89DDFF;">&lt;</span><span style="color:#888;">your-project-name</span><span style="color:#89DDFF;">&gt;</span>...</span>
70+
<span style="color:#ddd;">Done.</span></code></pre></div>
7471

7572
If you are unsure about an option, simply choose `No` by hitting enter for now. Once the project is created, follow the instructions to install dependencies and start the dev server:
7673

77-
```sh
78-
$ cd <your-project-name>
79-
$ npm install
80-
$ npm run dev
81-
```
74+
<div class="language-sh"><pre><code><span class="line"><span style="color:var(--vt-c-green);">$ </span><span style="color:#ddd;">cd</span><span style="color:#ddd;"> </span><span style="color:#89DDFF;">&lt;</span><span style="color:#888;">your-project-name</span><span style="color:#89DDFF;">&gt;</span></span>
75+
<span class="line"><span style="color:var(--vt-c-green);">$ </span><span style="color:#ddd;">npm install</span></span>
76+
<span class="line"><span style="color:var(--vt-c-green);">$ </span><span style="color:#ddd;">npm run dev</span></span>
77+
<span class="line"></span></code></pre></div>
8278

8379
You should now have your first Vue project running!
8480

0 commit comments

Comments
 (0)