From e174eebc7e91ed269189758dafbceee8fcab562a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 23 Sep 2015 15:36:21 -0400 Subject: [PATCH] create sourcemap and rig up remap-istanbul --- gobblefile.js | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gobblefile.js b/gobblefile.js index 6036237..4042dd7 100644 --- a/gobblefile.js +++ b/gobblefile.js @@ -8,7 +8,8 @@ var node = src entry: 'rollup.js', dest: 'rollup.js', format: 'cjs', - external: [ 'sander', 'acorn' ] + external: [ 'sander', 'acorn' ], + sourceMap: true }) .transform( 'babel' ); diff --git a/package.json b/package.json index 68690c4..39de624 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,9 @@ "pretest": "npm run build", "test": "mocha", "pretest-coverage": "npm run build", - "test-coverage": "istanbul cover --report cobertura node_modules/.bin/_mocha -- -u exports -R spec test/test.js", - "ci": "npm run test-coverage && codecov < coverage/cobertura-coverage.xml", + "test-coverage": "istanbul cover --report json node_modules/.bin/_mocha -- -u exports -R spec test/test.js", + "posttest-coverage": "remap-istanbul -i coverage/coverage-final.json -o coverage/coverage-remapped.json -b dist", + "ci": "npm run test-coverage && codecov < coverage/coverage-remapped.json", "build": "gobble build -f dist", "prepublish": "npm test", "lint": "eslint src"