Skip to content

Commit 80fe362

Browse files
committed
Added code coverage support for https://codecov.io/ and fix travis.yml
1 parent 3e32374 commit 80fe362

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

Diff for: .travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
language: node_js
22
node_js:
33
- "node"
4+
install:
5+
- npm install
46
script:
57
- npm run lint
6-
- npm run build
8+
- npm run build:docs
9+
- npm run release
710
- npm test
11+
- codecov

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Vue Numeric Input
22

3+
[![npm](https://img.shields.io/npm/v/vue-numeric-input.svg?style=flat-square)](https://www.npmjs.com/package/vue-numeric-input)
4+
[![npm](https://img.shields.io/npm/dt/vue-numeric-input.svg?style=flat-square)](https://www.npmjs.com/package/vue-numeric-input)
5+
[![Build Status](https://travis-ci.org/JayeshLab/vue-numeric-input.svg?branch=master)](https://travis-ci.org/JayeshLab/vue-numeric-input)
6+
[![codecov](https://codecov.io/gh/JayeshLab/vue-numeric-input/branch/master/graph/badge.svg)](https://codecov.io/gh/JayeshLab/vue-numeric-input)
7+
[![npm](https://img.shields.io/npm/l/vue-numeric-input.svg?style=flat-square)](http://opensource.org/licenses/MIT)
8+
39
Number input component based on Vue that is a replacement of native input number with optional control.
410

511
![vue-numeric-input](https://user-images.githubusercontent.com/36194663/44717643-33e4ea00-aadb-11e8-82bf-e1fdeeea3bb5.gif)

Diff for: package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"test": "npm run unit",
3030
"lint": "eslint --ext .js,.vue src test/unit",
3131
"build:docs": "webpack --config build/webpack.prod.conf.js",
32-
"release": "webpack --hide-modules -p --progress --config build/webpack.release.conf.js"
32+
"release": "webpack --hide-modules -p --progress --config build/webpack.release.conf.js",
33+
"codecov": "codecov"
3334
},
3435
"devDependencies": {
3536
"autoprefixer": "^7.2.6",
@@ -43,6 +44,7 @@
4344
"chai": "^4.1.2",
4445
"chalk": "^2.0.1",
4546
"clean-webpack-plugin": "^0.1.19",
47+
"codecov": "^3.0.4",
4648
"copy-webpack-plugin": "^4.0.1",
4749
"cross-env": "^5.0.1",
4850
"css-loader": "^0.28.0",

Diff for: test/unit/karma.conf.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = function karmaConfig (config) {
3434
dir: './coverage',
3535
reporters: [
3636
{ type: 'lcov', subdir: '.' },
37+
{ type: 'json', subdir: '.' },
3738
{ type: 'text-summary' }
3839
]
3940
}

0 commit comments

Comments
 (0)