MCPcopy Index your code
hub / github.com/angular/components / generateExampleModule

Function generateExampleModule

tools/example-module/generate-example-module.ts:177–186  ·  view source on GitHub ↗
(
  sourceFiles: string[],
  outputFile: string,
  baseDir: string = path.dirname(outputFile),
)

Source from the content-addressed store, hash-verified

175 * file.
176 */
177export function generateExampleModule(
178 sourceFiles: string[],
179 outputFile: string,
180 baseDir: string = path.dirname(outputFile),
181) {
182 const analysisData = analyzeExamples(sourceFiles, baseDir);
183 const generatedModuleFile = inlineExampleModuleTemplate(analysisData);
184
185 fs.writeFileSync(outputFile, generatedModuleFile);
186}

Callers 1

bazel-bin.tsFile · 0.90

Calls 2

analyzeExamplesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…