Skip to content

A Vue 2, Webpack 3 and Typescript 2 setup with hot reload, unit testing, code coverage, sass and bundling/minification.

Notifications You must be signed in to change notification settings

soon08/vue-webpack-typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue-cli Typescript Webpack 模版

此模版fork自ducksoupdev/vue-webpack-typescript. 因为本人的一些癖好做了一些修改.

支持 hot reload,单元测试,代码覆盖率测试,sass 和 集成打包/压缩的vue模版.

此模版适用于Vue 2.4. 查看最新的changelog.

请使用node 6版本及以上,npm3版本及以上.

模版里都有啥

  • Vue 2.4
  • Webpack 3.5
  • Typescript 2.4
  • Bootstrap 3.3.7

模版的用法

这是一个vue-cli的模版工程.

$ npm install -g vue-cli
$ vue init soon08/vue-webpack-typescript my-project
$ cd my-project
$ npm install
$ npm run dev

模版中包含的命令

  • npm run dev: 运行热加载的开发态
  • npm test: Mocha 单元测试
  • npm run test:debug: 在Chrome中Debug Mocha
  • npm run test:watch: 热加载测试
  • npm run coverage: Karma 覆盖测试
  • npm run lint: 检查typescript文件
  • npm run build: 打包
  • npm run ci:teamcity: Teamcity 持续集成
  • npm run ci:jenkins: Jenkins 持续集成

About

A Vue 2, Webpack 3 and Typescript 2 setup with hot reload, unit testing, code coverage, sass and bundling/minification.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 45.6%
  • JavaScript 43.2%
  • HTML 10.3%
  • CSS 0.9%