@gulp-utils/gulp-core-build-api-documenter
v1.0.0
Published
Gulp Core Build API Documenter
Downloads
75
Readme
@gulp-utils/gulp-core-build-api-documenter
gulp-core-build-api-documenter
is a gulp-core-build
subtask which introduces the ability to generate documentation, using api-documenter.
Tasks
ApiDocumenterTask
Description
This task invokes api-documenter on a package.
Usage
const {apiDocumenter} = require("@gulp-utils/gulp-core-build-api-documenter");
const {initialize, parallel, serial, task} = require("@microsoft/gulp-core-build");
const {tscCmd, tslintCmd, apiExtractor} = require("@microsoft/gulp-core-build-typescript");
apiDocumenter.setConfig({
format: "markdown"
});
task("default", serial(parallel(tscCmd, tslintCmd), apiExtractor, apiDocumenter));
initialize(require("gulp"));
Config
interface IApiDocumenterTaskConfig {
format?: Format;
inputFolder?: string;
outputFolder?: string;
}
type Format = 'markdown' | 'yaml';