diff --git a/README.md b/README.md index 36091e2e..f32ffe1b 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: true, + extensions: ['js'] + } + }); +``` +* in `package.json` specify latest available version +```js + { + devDependencies: { + "ember-cli-code-coverage": "^1.0.0-beta.6" + } + } +``` + ## 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)