ember-cli-typedoc v1.1.1
ember-cli-typedoc
TypeDoc documentation generation for EmberCLI projects.
Installation
ember install ember-cli-typedocUsage
Docs generation is opt-in via either environment variable or build config.
TYPEDOC=true ember start// ember-cli-build.js
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function (defaults) {
return new EmberAddon(defaults, {
'ember-cli-typedoc': {
enabled: true,
},
});
};Configuration
Out of the box, ember-cli-typedoc has a couple of loosely held opinions; you're free to interject your own
as required. The parent project's /addon directory is the default entrypoint, with expand as the default
interpretation strategy. Private, protected, internal annotated, and external super class members are ignored.
Any configuration offered by TypeDoc can be tweaked in the project's build config.
Both HTML and JSON outputs are generated to a /docs directory, by default. The
out and json arguments
properties can be unset to limit this.
For example, to include everything that is ignored by default while limiting your output to JSON:
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function (defaults) {
return new EmberAddon(defaults, {
'ember-cli-typedoc': {
enabled: true,
excludeExternals: false,
excludePrivate: false,
excludeProtected: false,
excludeInternal: false,
out: null,
},
});
};