MCPcopy Create free account
hub / github.com/GrapesJS/cli / getTemplateFileContent

Function getTemplateFileContent

src/init.ts:32–35  ·  view source on GitHub ↗
(pth: string)

Source from the content-addressed store, hash-verified

30 .join(' ');
31
32const getTemplateFileContent = (pth: string) => {
33 const pt = path.resolve(__dirname, `${tmpPath}/${pth}`);
34 return fs.readFileSync(pt, 'utf8');
35};
36
37const resolveRoot = (pth: string) => {
38 return path.resolve(rootPath, pth);

Callers 3

createSourceFilesFunction · 0.85
createI18nFunction · 0.85
createPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected