MCPcopy
hub / github.com/stenciljs/core / taskDocs

Function taskDocs

src/cli/task-docs.ts:7–18  ·  view source on GitHub ↗
(coreCompiler: CoreCompiler, config: ValidatedConfig)

Source from the content-addressed store, hash-verified

5import { startupCompilerLog } from './logs';
6
7export const taskDocs = async (coreCompiler: CoreCompiler, config: ValidatedConfig) => {
8 config.devServer = {};
9 config.outputTargets = config.outputTargets.filter(isOutputTargetDocs);
10 config.devMode = true;
11
12 startupCompilerLog(coreCompiler, config);
13
14 const compiler = await coreCompiler.createCompiler(config);
15 await compiler.build();
16
17 await compiler.destroy();
18};

Callers 1

runTaskFunction · 0.90

Calls 3

startupCompilerLogFunction · 0.90
buildMethod · 0.80
destroyMethod · 0.65

Tested by

no test coverage detected