MCPcopy Index your code
hub / github.com/stenciljs/core / getFilepathForFile

Function getFilepathForFile

src/cli/task-generate.ts:154–157  ·  view source on GitHub ↗
(filePath: string, componentName: string, extension: GeneratableExtension)

Source from the content-addressed store, hash-verified

152 * added)
153 */
154const getFilepathForFile = (filePath: string, componentName: string, extension: GeneratableExtension): string =>
155 isTest(extension)
156 ? normalizePath(join(filePath, 'test', `${componentName}.${extension}`))
157 : normalizePath(join(filePath, `${componentName}.${extension}`));
158
159/**
160 * Get the boilerplate for a file and write it to disk

Callers 1

taskGenerateFunction · 0.85

Calls 3

joinFunction · 0.90
normalizePathFunction · 0.85
isTestFunction · 0.70

Tested by

no test coverage detected