(host: Tree)
| 309 | } |
| 310 | |
| 311 | export 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 | |
| 339 | export function parseDataConnectConfig( |
| 340 | config: SetupConfig |
no test coverage detected