vue boilerplate typescript
1.0.0
帶有 Vue CLI 3.x 的 Vue.js 的打字稿樣板,使用:
安裝 Vue CLI 3.x
npm install -g @vue/cli
# OR
yarn global add @vue/cli
安裝依賴項
npm install
# OR
yarn install
這是我個人建立 Vue.js 專案的方式。請隨意修改它以滿足您的需求。
assets :包含所有資產,例如圖像或聲音檔案。components :包含所有Vue元件。layouts :包含所有可以在vue-router中設定的Vue -Layouts 。models :包含業務邏輯所需的所有模型。requests :包含與 API 通訊所需的所有請求。rules :包含所有可重複使用的驗證規則。services :包含所有滿足網路請求的服務。store :包含vuex -store 正在使用的所有模組。style :包含所有樣式表。translations :包含.ts檔案形式的所有翻譯。views :包含vue-router中所使用的所有視圖。 npm run serve
# OR
yarn run serve
npm run build
# OR
yarn run build
npm run lint
# OR
yarn run lint
請參閱配置參考。