From 98ec760508e84bd9e946cd102ded07f201dcf307 Mon Sep 17 00:00:00 2001 From: Andy Chen Date: Tue, 27 Aug 2019 17:06:13 +0800 Subject: [PATCH] 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 --- pages/common/vue-build.md | 8 ++++++++ pages/common/vue-init.md | 16 ++++++++++++++++ pages/common/vue-serve.md | 8 ++++++++ pages/common/vue.md | 17 ++++++----------- 4 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 pages/common/vue-build.md create mode 100644 pages/common/vue-init.md create mode 100644 pages/common/vue-serve.md diff --git a/pages/common/vue-build.md b/pages/common/vue-build.md new file mode 100644 index 000000000..a82128123 --- /dev/null +++ b/pages/common/vue-build.md @@ -0,0 +1,8 @@ +# vue build + +> A subcommand provided by `@vue/cli` and `@vue/cli-service-global` that enables quick prototyping. +> More information: . + +- Build a `.js` or `.vue` file in production mode with zero config: + +`vue build {{filename}}` diff --git a/pages/common/vue-init.md b/pages/common/vue-init.md new file mode 100644 index 000000000..6ab3473b7 --- /dev/null +++ b/pages/common/vue-init.md @@ -0,0 +1,16 @@ +# vue init + +> Legacy project initialization subcommand of the Vue.js framework. +> More information: . + +- 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}}` diff --git a/pages/common/vue-serve.md b/pages/common/vue-serve.md new file mode 100644 index 000000000..c3282ef0e --- /dev/null +++ b/pages/common/vue-serve.md @@ -0,0 +1,8 @@ +# vue serve + +> A subcommand provided by `@vue/cli` and `@vue/cli-service-global` that enables quick prototyping. +> More information: . + +- Serve a `.js` or `.vue` file in development mode with zero config: + +`vue serve {{filename}}` diff --git a/pages/common/vue.md b/pages/common/vue.md index 200a95ac7..e842fb6b4 100644 --- a/pages/common/vue.md +++ b/pages/common/vue.md @@ -1,17 +1,12 @@ -# vue-cli +# vue -> Simple CLI for scaffolding Vue.js projects. -> Official templates include: webpack, webpack-simple, browserify, browserify-simple, simple. +> Multi-purpose CLI for Vue.js. > More information: . -- Create a new vue project: +- Create a new vue project interactively: -`vue init {{template}} {{project_name}}` +`vue create {{project_name}}` -- Create a new project with a local template: +- Create a new project with web UI: -`vue init {{path/to/template_directory}} {{project_name}}` - -- Create project using template on GitHub: - -`vue init {{username}}/{{repo}} {{project_name}}` +`vue ui`