Skip to content

Commit 1c62985

Browse files
author
Matt Lewis
committed
chore: add codecov support
1 parent cbbb0ce commit 1c62985

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ script: npm test
88
notifications:
99
email: false
1010

11-
cache:
12-
directories:
13-
- node_modules
11+
cache: yarn
12+
13+
after_success:
14+
- npm run codecov

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# angular 2.0+ drag and drop
22
[![Build Status](https://travis-ci.org/mattlewis92/angular-draggable-droppable.svg?branch=master)](https://travis-ci.org/mattlewis92/angular-draggable-droppable)
3+
[![codecov](https://codecov.io/gh/mattlewis92/angular-draggable-droppable/branch/master/graph/badge.svg)](https://codecov.io/gh/mattlewis92/angular-draggable-droppable)
34
[![npm version](https://badge.fury.io/js/angular-draggable-droppable.svg)](http://badge.fury.io/js/angular-draggable-droppable)
45
[![devDependency Status](https://david-dm.org/mattlewis92/angular-draggable-droppable/dev-status.svg)](https://david-dm.org/mattlewis92/angular-draggable-droppable#info=devDependencies)
56
[![GitHub issues](https://img.shields.io/github/issues/mattlewis92/angular-draggable-droppable.svg)](https://github.com/mattlewis92/angular-draggable-droppable/issues)

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"prerelease": "npm test",
2222
"release": "git add package.json && git commit -m 'chore: bump version number' && standard-version --first-release && git push --follow-tags origin master && npm run build:dist && npm publish",
2323
"postrelease": "npm run build:clean && npm run gh-pages",
24-
"commitmsg": "validate-commit-msg"
24+
"commitmsg": "validate-commit-msg",
25+
"codecov": "cat coverage/lcov.info | codecov"
2526
},
2627
"repository": {
2728
"type": "git",
@@ -55,6 +56,7 @@
5556
"@types/sinon-chai": "^2.7.26",
5657
"awesome-typescript-loader": "^3.0.8",
5758
"chai": "^3.5.0",
59+
"codecov-lite": "^0.1.3",
5860
"commitizen": "^2.8.1",
5961
"compodoc": "^0.0.41",
6062
"concurrently": "^3.0.0",

yarn.lock

+35-1
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ array-find-index@^1.0.1:
201201
version "1.0.2"
202202
resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
203203

204+
array-find@^1.0.0:
205+
version "1.0.0"
206+
resolved "https://registry.yarnpkg.com/array-find/-/array-find-1.0.0.tgz#6c8e286d11ed768327f8e62ecee87353ca3e78b8"
207+
204208
205209
version "1.1.1"
206210
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -694,6 +698,15 @@ code-point-at@^1.0.0:
694698
version "1.1.0"
695699
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
696700

701+
codecov-lite@^0.1.3:
702+
version "0.1.3"
703+
resolved "https://registry.yarnpkg.com/codecov-lite/-/codecov-lite-0.1.3.tgz#ddc39e28be25718a296fdd19457859c33ec7e88b"
704+
dependencies:
705+
array-find "^1.0.0"
706+
makethen "^0.1.0"
707+
request "^2.79.0"
708+
request-promise-native "^1.0.3"
709+
697710
colors@^1.1.0, colors@^1.1.2, colors@latest:
698711
version "1.1.2"
699712
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
@@ -2873,7 +2886,7 @@ lodash@^3.8.0:
28732886
version "3.10.1"
28742887
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
28752888

2876-
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.1.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.5.0, lodash@^4.5.1:
2889+
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.1.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.5.0, lodash@^4.5.1:
28772890
version "4.17.4"
28782891
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
28792892

@@ -2924,6 +2937,10 @@ lunr@^0.7.2:
29242937
version "0.7.2"
29252938
resolved "https://registry.yarnpkg.com/lunr/-/lunr-0.7.2.tgz#79a30e932e216cba163541ee37a3607c12cd7281"
29262939

2940+
makethen@^0.1.0:
2941+
version "0.1.0"
2942+
resolved "https://registry.yarnpkg.com/makethen/-/makethen-0.1.0.tgz#dd69b9e7296deaf6566135f1496c82b3236c5d08"
2943+
29272944
map-obj@^1.0.0, map-obj@^1.0.1:
29282945
version "1.0.1"
29292946
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
@@ -3664,6 +3681,19 @@ request-progress@~2.0.1:
36643681
dependencies:
36653682
throttleit "^1.0.0"
36663683

3684+
3685+
version "1.1.1"
3686+
resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6"
3687+
dependencies:
3688+
lodash "^4.13.1"
3689+
3690+
request-promise-native@^1.0.3:
3691+
version "1.0.3"
3692+
resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.3.tgz#9cb2b2f69f137e4acf35116a08a441cbfd0c0134"
3693+
dependencies:
3694+
request-promise-core "1.1.1"
3695+
stealthy-require "^1.0.0"
3696+
36673697
request@^2.79.0, request@~2.79.0:
36683698
version "2.79.0"
36693699
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
@@ -4062,6 +4092,10 @@ standard-version@^4.0.0:
40624092
version "1.3.1"
40634093
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e"
40644094

4095+
stealthy-require@^1.0.0:
4096+
version "1.0.0"
4097+
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.0.0.tgz#1a8ed8fc19a8b56268f76f5a1a3e3832b0c26200"
4098+
40654099
stream-browserify@^2.0.1:
40664100
version "2.0.1"
40674101
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db"

0 commit comments

Comments
 (0)