diff --git a/dist/npmts.plugins.d.ts b/dist/npmts.plugins.d.ts index 6b55acc..19adfa9 100644 --- a/dist/npmts.plugins.d.ts +++ b/dist/npmts.plugins.d.ts @@ -7,6 +7,7 @@ export declare let g: { jsdoc3: any; mocha: any; replace: any; + sourcemaps: any; }; export declare let lodashObject: any; export declare let merge2: any; diff --git a/dist/npmts.plugins.js b/dist/npmts.plugins.js index 496506e..158f0c1 100644 --- a/dist/npmts.plugins.js +++ b/dist/npmts.plugins.js @@ -7,7 +7,8 @@ exports.g = { istanbul: require("gulp-istanbul"), jsdoc3: require("gulp-jsdoc3"), mocha: require("gulp-mocha"), - replace: require("gulp-replace") + replace: require("gulp-replace"), + sourcemaps: require("gulp-sourcemaps") }; exports.lodashObject = require('lodash/fp/object'); exports.merge2 = require("merge2"); diff --git a/dist/npmts.tests.js b/dist/npmts.tests.js index c13542a..d8fe49c 100644 --- a/dist/npmts.tests.js +++ b/dist/npmts.tests.js @@ -11,7 +11,9 @@ var istanbul = function (configArg) { npmts_promisechain_1.npmtsOra.text("Instrumentalizing transpiled JS..."); var done = plugins.Q.defer(); var stream = plugins.gulp.src([plugins.path.join(paths.cwd, "dist/*.js")]) + .pipe(plugins.g.sourcemaps.init()) .pipe(plugins.g.istanbul()) // Covering files + .pipe(plugins.g.sourcemaps.write()) .pipe(plugins.g.istanbul.hookRequire()) // Force `require` to return covered files .pipe(plugins.g.gFunction(function () { plugins.beautylog.ok("JS has been instrumentalized to get test code coverage!"); diff --git a/package.json b/package.json index 081cd59..8e1d40b 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "gulp-jsdoc3": "^0.3.0", "gulp-mocha": "^2.2.0", "gulp-replace": "^0.5.4", + "gulp-sourcemaps": "^1.6.0", "lodash": "^4.13.1", "merge2": "1.0.2", "projectinfo": "1.0.3", diff --git a/ts/npmts.plugins.ts b/ts/npmts.plugins.ts index 8d42322..0d9c9ab 100644 --- a/ts/npmts.plugins.ts +++ b/ts/npmts.plugins.ts @@ -6,7 +6,8 @@ export let g = { istanbul: require("gulp-istanbul"), jsdoc3: require("gulp-jsdoc3"), mocha: require("gulp-mocha"), - replace: require("gulp-replace") + replace: require("gulp-replace"), + sourcemaps: require("gulp-sourcemaps") }; export let lodashObject = require('lodash/fp/object'); export let merge2 = require("merge2"); diff --git a/ts/npmts.tests.ts b/ts/npmts.tests.ts index 42871b9..8f7a251 100644 --- a/ts/npmts.tests.ts +++ b/ts/npmts.tests.ts @@ -11,7 +11,9 @@ let istanbul = function (configArg) { npmtsOra.text("Instrumentalizing transpiled JS..."); let done = plugins.Q.defer(); var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"dist/*.js")]) + .pipe(plugins.g.sourcemaps.init()) .pipe(plugins.g.istanbul()) // Covering files + .pipe(plugins.g.sourcemaps.write()) .pipe(plugins.g.istanbul.hookRequire()) // Force `require` to return covered files .pipe(plugins.g.gFunction(function(){ plugins.beautylog.ok("JS has been instrumentalized to get test code coverage!");