From c8a1c31ae24f3564855f63bfb2a775c8b64190fd Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Thu, 20 Sep 2018 20:46:50 +0300 Subject: [PATCH 1/3] TypeScript integration (howto) --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/README.md b/README.md index 36091e2e..24de6ed6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,40 @@ and then: When running with `parallel` set to true, the final reports can be merged by using `ember coverage-merge`. The final merged output will be stored in the `coverageFolder`. +## TypeScript integration + +Steps: + +* in `tsconfig.json` +```js + { + "compilerOptions": { + "inlineSourceMap": true, + "inlineSources": true + } + } +``` +* in `ember-cli-build.js` +```js + const app = new EmberApp(defaults, { + babel: { + sourceMaps: 'inline' + }, + sourcemaps: { + enabled: config.sourcemapsEnabled, + extensions: ['js'] + } + }); +``` +* in `package.json` specify latest available version +```js + { + devDependencies: { + "ember-cli-code-coverage": "https://github.com/kategengler/ember-cli-code-coverage#master#2018-08-15T15:51:29Zs" + } + } +``` + ## Configuration Configuration is optional. It should be put in a file at `config/coverage.js` (`configPath` configuration in package.json is honored). In addition to this you can configure Istanbul by adding a `.istanbul.yml` file to the root directory of your app (See https://github.com/gotwarlost/istanbul#configuring) From 71a0a1f083128581dc5a2f25382dedf00a3390fd Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Thu, 20 Sep 2018 20:48:54 +0300 Subject: [PATCH 2/3] removed some abstraction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24de6ed6..9964cfee 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Steps: sourceMaps: 'inline' }, sourcemaps: { - enabled: config.sourcemapsEnabled, + enabled: true, extensions: ['js'] } }); From 780f9ffe9da0f22daf2d2f304390ac603a141910 Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Thu, 20 Sep 2018 22:30:55 +0300 Subject: [PATCH 3/3] 1.0.0-beta.6 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9964cfee..f32ffe1b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Steps: ```js { devDependencies: { - "ember-cli-code-coverage": "https://github.com/kategengler/ember-cli-code-coverage#master#2018-08-15T15:51:29Zs" + "ember-cli-code-coverage": "^1.0.0-beta.6" } } ```