Skip to content

Commit

Permalink
Merge branch 'release/0.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
marmos91 committed Apr 15, 2017
2 parents f9efabc + 205c845 commit a192dc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const shell = require("gulp-shell");
const istanbul = require("gulp-istanbul");
const sourcemaps = require("gulp-sourcemaps");
const ts = require("gulp-typescript");
const remapIstanbul = require("remap-istanbul/lib/gulpRemapIstanbul");

@Gulpclass()
export class GulpFile
Expand Down Expand Up @@ -125,6 +126,14 @@ export class GulpFile
.pipe(istanbul.hookRequire());
}

@Task()
coverageRemap()
{
return gulp.src("./coverage/coverage-final.json")
.pipe(remapIstanbul())
.pipe(gulp.dest("./coverage"));
}

@Task("mocha", ["coverage"])
mocha()
{
Expand All @@ -141,6 +150,6 @@ export class GulpFile
@SequenceTask()
tests()
{
return ["compile", "mocha"];
return ["compile", "mocha", "coverageRemap"];
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "winston-decorator",
"version": "0.0.5",
"version": "0.0.6",
"description": "A decorator version of the winston logger written completely in Typescript.",
"scripts": {
"test": "node_modules/.bin/gulp tests"
Expand Down Expand Up @@ -38,6 +38,7 @@
"gulp-typescript": "^3.1.5",
"gulpclass": "0.1.1",
"mocha": "^3.2.0",
"remap-istanbul": "^0.9.1",
"ts-node": "^2.1.0",
"typescript": "^2.2.1"
}
Expand Down

0 comments on commit a192dc8

Please sign in to comment.