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
请参阅配置参考。