如何使用「vue init」,根據「GitHub」上的樣版,來產生新的專案

範例樣版

操作步驟

根據樣版,產生新專案

執行下面指令

$ vue init foreachsam/demo-project-template-for-vue-init my-project

執行樣式是「vue init [github-user-name/github-project-name] [new-project-name]」。

一直按下「Enter」使用「預設值」

顯示


? Project name my-project
? Project description A new project
? Author

   vue-cli · Generated "my-project".

   To get started:

     cd my-project
     npm install
     npm run dev