ember-cli-typedoc

1.1.1 • Public • Published

npm version CI Coverage Status

ember-cli-typedoc

TypeDoc documentation generation for EmberCLI projects.

Installation

ember install ember-cli-typedoc

Usage

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,
    },
  });
};

Package Sidebar

Install

npm i ember-cli-typedoc

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • mdeanjones