Skip to content
基于 vue-cli 3.0 构建的快速开发框架
Branch: master
Clone or download
Latest commit 0d2e5f2 Apr 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config 加入环境配置注释 Dec 28, 2018
public 优化HTML模板 Dec 29, 2018
src Api.Options加入Headers的设置 Jan 21, 2019
utils 添加相关文件 Dec 24, 2018
.gitignore
LICENSE 优化描述 Apr 15, 2019
README.md 优化描述 Apr 15, 2019
babel.config.js 优化配置 Dec 25, 2018
package.json 优化描述 Apr 15, 2019
vue.config.js 优化配置 Dec 25, 2018

README.md

optimize-vue

LICENSE

Install Cli

npm i -g optimize-vue-cli

Create Project

vues create <project-name>
// eg: vues create demo

Init Project

// Install vue-cli-3.0 at first.
npm install -g @vue/cli

// Open Project Dir
cd <project-name>

// Init
yarn install 

Add Module

Remark: Used in the project root directory.

vues add -m <module-title> -p <module-path>
// eg: vues add -m module1 -p /mobile/page/index
// Html-Title: module1
// Html-Url: localhost:port/mobile/page/index

Add Component

Remark: Used in the project root directory.

vues add -c <component-path>
// eg: vues add -c /home/index

Project setup

yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Customize configuration

See Configuration Reference.

See Cli Information

You can’t perform that action at this time.