0.1.4 • Published 6 months ago

@olton/rollup-plugin-typedoc v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

rollup-plugin-typedoc

This plugin runs Typedoc to generate your API documentation as a step of your Rollup flow.

Setup

npm i @olton/rollup-plugin-typedoc --save-dev

Typedoc is required as peer dependency.

npm i typedoc --save-dev

Usage

import typescript from '@rollup/plugin-typescript';
import typedoc from '@olton/rollup-plugin-typedoc';

// see https://typedoc.org/guides/options/
const options = {
    out: './docsDir',
    entryPoints: ['./src'],
};
// the plugin reads tsconfig.json, typedoc.json,
// and your custom options (as above) and merges them
export default [
    {
        input: 'src/index.ts',
        plugins: [
            typescript(),
            typedoc(options)
        ],
    }
];

Note: do not include this plugin for your watch configurations for performance reasons.

License

Copyright © 2023, Serhii Pimenov. Released under the MIT License.

0.1.4

6 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago