1. 程式人生 > >vue-cli 初始專案配置說明

vue-cli 初始專案配置說明

初始安裝配置說明:

    Project name  專案名稱(根資料夾名稱)

    Project description  專案描述

    Author  專案作者

    Vue build  選擇Runtime+Compiler,提供loader等。選擇Runtime-only,只安裝Runtime(比較輕便)。

    Install vue-router  是否安裝路由

    Use Eslint to lint your code  是否安裝測試

    Setup unit tests with Karma+Mocha  是否安裝Karma和Mocha測試

    Setup e2e tests with Nightwatch  是否安裝端對端測試

專案結構說明:

    build  裡面構建了客戶端和服務端,可以配置埠號

    config  對應了一些配置

    node_modules  

    src  

    static  存放對應的靜態檔案

    test  

    .gitignore  忽略的檔案

    index.html  入口檔案

    package.json  配置的依賴

    README.md    命令