MCPcopy
hub / github.com/angular/angularfire / addIgnoreFiles

Function addIgnoreFiles

src/schematics/utils.ts:311–337  ·  view source on GitHub ↗
(host: Tree)

Source from the content-addressed store, hash-verified

309}
310
311export const addIgnoreFiles = (host: Tree) => {
312 const path = "/.gitignore";
313 if (!host.exists(path)) {
314 return host;
315 }
316
317 const buffer = host.read(path);
318 if (!buffer) {
319 return host;
320 }
321
322 const content = buffer.toString();
323 if (!content.includes("# Firebase")) {
324 overwriteIfExists(
325 host,
326 path,
327 content.concat(`
328# Firebase
329.firebase
330*-debug.log
331.runtimeconfig.json
332`)
333 );
334 }
335
336 return host;
337};
338
339export function parseDataConnectConfig(
340 config: SetupConfig

Callers 1

setupProjectFunction · 0.90

Calls 2

overwriteIfExistsFunction · 0.90
existsMethod · 0.65

Tested by

no test coverage detected