From 33baafadddd6437122916a4a79f047417ece4750 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Fri, 22 Sep 2023 14:26:30 +0200 Subject: [PATCH] feat: configure collie repo with LF line endings collie cli's code generation emits LF endings and a lot of the parsing code e.g. for yaml frontmatter expects this as well also, we're switching collie hub to LF endings as well https://github.com/meshcloud/collie-hub/pull/63 --- src/commands/init.command.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/commands/init.command.ts b/src/commands/init.command.ts index e6ed562..dac7eb3 100644 --- a/src/commands/init.command.ts +++ b/src/commands/init.command.ts @@ -39,6 +39,7 @@ export function registerInitCommand(program: TopLevelCommand) { entries: [ { name: "README.md", content: readmeMd }, { name: ".gitignore", content: gitignore }, + { name: ".gitattributes", content: gitattributes }, { name: "kit", entries: [ @@ -140,6 +141,14 @@ const gitignore = `# terraform/terragrunt caches **.meta.json `; +const gitattributes = `# Force LF file endings for all text files +* text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary +`; + const kitReadmeMd = `# Your Collie Kit Build your own set of Collie [kit modules](https://landingzone.meshcloud.io/reference/kit-module.html) in this folder.