Skip to content

Commit

Permalink
chore: add codecov (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
doctyper authored and cwelch5 committed Mar 21, 2017
1 parent 63ec09d commit 7c174a1
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 34 deletions.
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
node_modules
lib
build
npm-debug.log
.DS_Store

.idea
.eslintcache
.idea
coverage
es
lib
node_modules
npm-debug.log
18 changes: 9 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
node_modules
src
build
.arcconfig
*.yml
.babelrc
.editorconfig
karma.config.js
travis.yml
.eslintrc
.nvmrc
*.yml
CHANGELOG.md
CONTRIBUTING.md
coverage
karma.config.js
lib/test
.nvmrc
.babelrc
.eslintrc
node_modules
src
travis.yml
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ before_install:
cache:
directories:
- node_modules

after_success: codecov
2 changes: 1 addition & 1 deletion karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function (config) {
},

coverageReporter: {
dir: "build/reports/coverage",
dir: "coverage",
includeAllSources: true,
reporters: [{
type: "html",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"babel-preset-env": "^1.2.2",
"babel-preset-react": "^6.23.0",
"chai": "^3.5.0",
"codecov": "^2.1.0",
"cross-env": "^3.2.4",
"eslint": "^3.18.0",
"eslint-config-nfl": "^11.1.0",
Expand Down Expand Up @@ -78,10 +79,10 @@
"webpack": "^2.2.1"
},
"scripts": {
"clean": "rimraf lib build es",
"clean": "rimraf lib coverage es",
"lint": "eslint --ignore-path .gitignore -- .",
"test": "cross-env BABEL_ENV=test karma start karma.config.js",
"posttest": "cat ./build/reports/coverage/text.txt",
"posttest": "cat ./coverage/text.txt",
"pretest": "npm run clean && npm run lint",
"compile": "npm run compile:commonjs && npm run compile:es",
"compile:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
Expand Down
48 changes: 32 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"

argv@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab"

aria-query@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-0.3.0.tgz#cb8a9984e2862711c83c80ade5b8f5ca0de2b467"
Expand Down Expand Up @@ -1166,6 +1170,14 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

codecov@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/codecov/-/codecov-2.1.0.tgz#25f48f9e9aa7473b61c5a9a934d595420a71cade"
dependencies:
argv "0.0.2"
request "2.79.0"
urlgrey "0.4.4"

colors@^1.1.0, colors@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
Expand Down Expand Up @@ -3798,56 +3810,56 @@ request-progress@~2.0.1:
dependencies:
throttleit "^1.0.0"

request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
request@2.79.0, request@~2.79.0:
version "2.79.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
dependencies:
aws-sign2 "~0.6.0"
aws4 "^1.2.1"
caseless "~0.12.0"
caseless "~0.11.0"
combined-stream "~1.0.5"
extend "~3.0.0"
forever-agent "~0.6.1"
form-data "~2.1.1"
har-validator "~4.2.1"
har-validator "~2.0.6"
hawk "~3.1.3"
http-signature "~1.1.0"
is-typedarray "~1.0.0"
isstream "~0.1.2"
json-stringify-safe "~5.0.1"
mime-types "~2.1.7"
oauth-sign "~0.8.1"
performance-now "^0.2.0"
qs "~6.4.0"
safe-buffer "^5.0.1"
qs "~6.3.0"
stringstream "~0.0.4"
tough-cookie "~2.3.0"
tunnel-agent "^0.6.0"
tunnel-agent "~0.4.1"
uuid "^3.0.0"

request@~2.79.0:
version "2.79.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
dependencies:
aws-sign2 "~0.6.0"
aws4 "^1.2.1"
caseless "~0.11.0"
caseless "~0.12.0"
combined-stream "~1.0.5"
extend "~3.0.0"
forever-agent "~0.6.1"
form-data "~2.1.1"
har-validator "~2.0.6"
har-validator "~4.2.1"
hawk "~3.1.3"
http-signature "~1.1.0"
is-typedarray "~1.0.0"
isstream "~0.1.2"
json-stringify-safe "~5.0.1"
mime-types "~2.1.7"
oauth-sign "~0.8.1"
qs "~6.3.0"
performance-now "^0.2.0"
qs "~6.4.0"
safe-buffer "^5.0.1"
stringstream "~0.0.4"
tough-cookie "~2.3.0"
tunnel-agent "~0.4.1"
tunnel-agent "^0.6.0"
uuid "^3.0.0"

require-directory@^2.1.1:
Expand Down Expand Up @@ -4382,6 +4394,10 @@ url@^0.11.0:
punycode "1.3.2"
querystring "0.2.0"

urlgrey@0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f"

user-home@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190"
Expand Down

0 comments on commit 7c174a1

Please sign in to comment.