-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Appropriately deal with line endings in scripts (#74)
* Appropriately deal with line endings in scripts * Rename .gitattributes to gitattributes * Update git.ts
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|