UNPKG

turbo-gulp

Version:

Gulp tasks to boost high-quality projects.

26 lines (25 loc) 896 B
import gulpTypedoc from "gulp-typedoc"; import { resolveTsLocations } from "./_typescript"; export function getTypedocTask(gulp, tsConfig, options) { const resolved = resolveTsLocations(tsConfig); const task = function () { return gulp .src(resolved.absScripts, { base: tsConfig.srcDir }) .pipe(gulpTypedoc({ // TypeScript options (see typescript docs) module: "commonjs", target: "es2017", tsconfig: resolved.tsconfigJson, includeDeclarations: false, out: options.dir, // TypeDoc options (see typedoc docs) name: options.name, // theme: "/path/to/my/theme", plugins: ["external-module-name"], ignoreCompilerErrors: false, version: true, })); }; task.displayName = "_typedoc"; return task; }