Skip to content

Commit 3ac4f59

Browse files
committed
Update electron vue cookbook for Vue CLI 3
1 parent 5e7f10f commit 3ac4f59

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/v2/cookbook/electron-vue-cookbook.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Let's get started and we'll explain more things as we go.
1313

1414
## Getting Started
1515

16-
First, you'll need to install `vue-cli`.
16+
First, you'll need to install `@vue/cli` and `@vue/cli-init`.
1717

1818
```
19-
$ npm install -g vue-cli
19+
$ npm install -g @vue/cli
20+
$ npm install -g @vue/cli-init
2021
```
2122

2223
Next, we're going to set up our project with a pre-existing Electron + Vue template.
@@ -25,7 +26,7 @@ Next, we're going to set up our project with a pre-existing Electron + Vue templ
2526
$ vue init simulatedgreg/electron-vue timer
2627
```
2728

28-
**Please read this whole paragraph before proceeding.** During the set up process, you'll be asked a series of questions to help you set up. When asked which Vue plugins to install; please choose `vue-electron` (we won't need the other options). You'll also be asked which build tool you would like to use; please choose `electron-builder`. We won't need anything else so if you're asked about ESLint or testing, you can say no to those (but you may want to use them in future projects).
29+
**Please read this whole paragraph before proceeding.** During the set up process, you'll be asked a series of questions to help you set up. When asked which Vue plugins to install; please choose `vue-electron` (we won't need the other options). You'll also be asked which build tool you would like to use; please choose `electron-builder`. We won't need anything else so if you're asked about Sass, ESLint or testing, you can say no to those (but you may want to use them in future projects).
2930

3031
The `vue-electron` plugin makes Electron's APIs available for use within our Vue components. We'll use `electron-builder` to package our application into executables for Windows, Mac, and Linux.
3132

0 commit comments

Comments
 (0)