diff --git a/scripts/src/lib/template/git.ts b/scripts/src/lib/template/git.ts index 18907e2f..efe920b8 100644 --- a/scripts/src/lib/template/git.ts +++ b/scripts/src/lib/template/git.ts @@ -1,11 +1,13 @@ import type { ComputedConfiguration, TemplateWriter } from "./template"; +import gitattributes from './templates/git/gitattributes?raw'; import gitignore from './templates/git/gitignore?raw'; import workflow from './templates/git/workflow.yml?raw'; import license from './templates/git/LICENSE?raw'; export async function addGitFiles(writer: TemplateWriter, _config: ComputedConfiguration) { + await writer.write('.gitattributes', gitattributes); await writer.write('.gitignore', gitignore); await writer.write('.github/workflows/build.yml', workflow); await writer.write('LICENSE', license); -} \ No newline at end of file +} diff --git a/scripts/src/lib/template/templates/git/gitattributes b/scripts/src/lib/template/templates/git/gitattributes new file mode 100644 index 00000000..097f9f98 --- /dev/null +++ b/scripts/src/lib/template/templates/git/gitattributes @@ -0,0 +1,9 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf +