Skip to content

Commit

Permalink
Changes: use coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
joe223 committed Oct 22, 2019
1 parent 9a65c95 commit 0737fcd
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ install:
script:
- npm run build
- npm run test
- npm run coverage
- npm run report
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![](https://badge.fury.io/js/tiny-swiper.svg)](https://www.npmjs.com/package/tiny-swiper)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/tiny-swiper)](https://www.npmjs.com/package/tiny-swiper)
[![](https://travis-ci.com/joe223/tiny-swiper.svg?branch=master)](https://travis-ci.com/joe223/tiny-swiper)
[![codecov](https://codecov.io/gh/joe223/tiny-swiper/branch/dev/graph/badge.svg)](https://codecov.io/gh/joe223/tiny-swiper)
[![Coverage Status](https://coveralls.io/repos/github/joe223/tiny-swiper/badge.svg?branch=dev)](https://coveralls.io/github/joe223/tiny-swiper?branch=dev)

📦 2kb gzipped library alternative to SwiperJS with the same modern API.

Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dev": "cross-env NODE_ENV=development rollup -wc",
"build": "cross-env NODE_ENV=production rollup -c",
"test": "nyc mocha test/setup.js test/**/*.spec.js",
"coverage": "nyc report && codecov"
"report": "nyc npm run test && nyc report --reporter=text-lcov | coveralls"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"codecov": "^3.6.1",
"coveralls": "^3.0.7",
"cross-env": "^6.0.3",
"expect": "^24.9.0",
"finalhandler": "^1.1.2",
Expand Down Expand Up @@ -50,9 +50,15 @@
"report-dir": "./coverage",
"reporter": [
"lcov",
"html",
"text-summary"
],
"include": [
"**/*.js"
],
"exclude": [
"test",
"node_modules"
],
"watermarks": {
"lines": [
70,
Expand Down

0 comments on commit 0737fcd

Please sign in to comment.