Skip to content

Commit

Permalink
Collect code coverage (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrix committed May 8, 2018
1 parent 4e48d6a commit 69f8a1f
Show file tree
Hide file tree
Showing 7 changed files with 2,190 additions and 141 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
dist/

coverage/
.nyc_output/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ factory/
test/
dist/test/

.nyc_output/
coverage/

index.ts
typescript-to-json-schema.ts

Expand Down
20 changes: 20 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"sourceMap": true,
"instrument": true,
"report-dir": "coverage",
"include": [
"src/**/*.ts"
],
"require": [
"ts-node/register",
"source-map-support/register"
],
"reporter": [
"text-summary",
"html",
"lcov"
],
"extension": [
".ts"
]
}
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
language: node_js
node_js:
- "6"
- "7"
- "8"
- "10"
script:
- npm run lint
- npm run test
- npm run build
after_script:
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![npm version](https://img.shields.io/npm/v/typescript-to-json-schema.svg)](https://www.npmjs.com/package/typescript-to-json-schema)
[![Build Status](https://travis-ci.org/xiag-ag/typescript-to-json-schema.svg?branch=master)](https://travis-ci.org/xiag-ag/typescript-to-json-schema)
[![Coverage Status](https://coveralls.io/repos/github/xiag-ag/typescript-to-json-schema/badge.svg?branch=master)](https://coveralls.io/github/xiag-ag/typescript-to-json-schema?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Inspired by [`YousefED/typescript-json-schema`](https://github.com/YousefED/typescript-json-schema). Here's the differences list:
Expand Down

0 comments on commit 69f8a1f

Please sign in to comment.