From 6af639cad7e724b39c653d69862abfc774cd2b05 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 19 Jan 2022 14:52:26 +0100 Subject: [PATCH] Add documentation for setup in standalone addons --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ee53007..500bb883 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ let app = new EmberApp(defaults, { }); ``` -For in-repo addons (index.js): +For in-repo and standalone addons (index.js): ```js module.exports = { @@ -67,6 +67,16 @@ module.exports = EngineAddon.extend({ }); ``` +For `app` files in standalone addons (ember-cli-build.js): + +```js +let app = new EmberAddon(defaults, { + babel: { + plugins: [...require('ember-cli-code-coverage').buildBabelPlugin()] + }, +}); +``` + tests/test-helpers.js: ```js import { forceModulesToBeLoaded, sendCoverage } from 'ember-cli-code-coverage/test-support';