vue-cli-template-nativescript
by julon | v1.0.2
Nativescript-VueJS 项目开发模板
npm i --save vue-cli-template-nativescript

vue-cli-template-nativescript

Commitizen semantic-release Npm badge Travis badge Greenkeeper badge

Nativescript-VueJS 项目开发模板

将所有附加工具集成到 Nativescript Vue 工作流中。添加 linters、ES6 支持(使用 babel)、压缩构建生成等。与任何 tns 测试工具兼容。

Nativescript + VueJS + Rollup + Babel + SemanticRelease

使用方法

$ npm install -g vue-cli
$ vue init julon/vue-cli-template-nativescript my-project
$ cd my-project
$ npm install
$ npm run dev

# In another shell, to run on emulators which is going to refresh on file changes
$ npm run android
# or/and
$ npm run ios

包含内容

  • npm run build : 生产就绪的构建。
    • 导出为 CommonJS(开发版 & 压缩版)
    • 使用 Rollup 计算 Vue、ES6 js 文件
    • vue 文件支持 Pugjs 和 Stylus
  • npm run dev : 以监视模式运行 rollup 构建
    • 预先配置更新 app 文件夹内的 src 代码
  • npm run lint
    • 基于 prettier:recommended, vue:recommended 的规则
    • 导入错误和警告检测
    • 使用 npm run lint:fix 修复 eslint 错误
  • npm run cz : Commitizen 支持
    • 加载了 Conventional-changelog 规则
    • 语义发布自动化入口点
  • 语义发布自动部署配置
    • 自动生成变更日志
    • 自动在 git 中提交计算出的包版本
    • 在 github 上自动发布
    • 通过使用 semantic-release-cli 启用这些功能

分叉并创建自己的

您可以分叉此仓库以创建自己的模板,并使用它与 vue-cli 一起使用

vue init username/repo my-project