Skip to content

Commit

Permalink
feat: configure collie repo with LF line endings
Browse files Browse the repository at this point in the history
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
meshcloud/collie-hub#63
  • Loading branch information
JohannesRudolph committed Sep 22, 2023
1 parent 1ab7114 commit 33baafa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/commands/init.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 33baafa

Please sign in to comment.