$ vue init webpack my-front -- 这个是那个安装vue脚手架的命令
This will install Vue 2.x version of the template. --这里说明将要建立一个vue 2.x版本的项目
For Vue 1.x use: vue init webpack#1.0 my-front
? Project name (my-front) --项目名称
? Project name my-front
? Project description (my-front project) --项目描述
? Project description my-front project
? Author Louis -- 项目建立者
? Author Louis
? Vue build (Use arrow keys)
? Vue build standalone
? Install vue-router? (Y/n) -- 是否安装Vue路由,也就是之后是spa(但页面应用须要的模块)
? Install vue-router? Yes
? Use ESLint to lint your code? (Y/n) n --是否启用eslint检测规则,这里我的建议选no
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? (Y/n)
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? (Y/n)
? Setup e2e tests with Nightwatch? Yes
vue-cli · Generated "my-front".
To get started: -- 这里说明如何启动这个服务
cd my-front
npm install
npm run dev前端