MCPcopy Index your code
hub / github.com/SoCreate/angular-playground / writeSandboxContent

Function writeSandboxContent

projects/cli/src/build-sandboxes.ts:80–89  ·  view source on GitHub ↗
(filePath, fileContent)

Source from the content-addressed store, hash-verified

78}
79
80async function writeSandboxContent(filePath, fileContent): Promise<string> {
81 return new Promise((resolve, reject) => {
82 writeFile(filePath, fileContent, err => {
83 if (err) {
84 reject(new Error('Unable to compile sandboxes.'));
85 }
86 resolve(filePath);
87 });
88 });
89}
90
91export function buildSandboxFileContents(
92 rootPath: string,

Callers 1

buildSandboxMenuItemFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected