vue*: update outdated pages to latest Vue.js version.

Update the examples of the following pages to the latest Vue.js version:

 - vue.md
 - vue-init.md
 - vue-build.md
 - vue-serve.md
This commit is contained in:
Andy Chen
2019-08-27 17:06:13 +08:00
committed by Marco Bonelli
parent d76e3a4a5e
commit 98ec760508
4 changed files with 38 additions and 11 deletions

16
pages/common/vue-init.md Normal file
View File

@@ -0,0 +1,16 @@
# vue init
> Legacy project initialization subcommand of the Vue.js framework.
> More information: <https://cli.vuejs.org/guide/creating-a-project.html#pulling-2-x-templates-legacy>.
- Create a new project using one of the default templates:
`vue init {{webpack|webpack-simple|browserify|browserify-simple|simple}} {{project_name}}`
- Create a new project using a local template:
`vue init {{path/to/template_directory}} {{project_name}}`
- Create a new project using a template from GitHub:
`vue init {{username}}/{{repo}} {{project_name}}`