$ 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前端