Skip to content

Commit 5b90979

Browse files
feat(gitignore): add .gitignore and .gitattributes templates for proj… (#405)
* feat(gitignore): add .gitignore and .gitattributes templates for project configuration * feat(gitignore): add Beads and Dolt file patterns to .gitignore templates * feat(gitignore): add MemPalace file patterns to .gitignore template * fix: duplicated setting Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net> --------- Signed-off-by: Martin Stühmer <me@samtrion.net> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e730305 commit 5b90979

4 files changed

Lines changed: 431 additions & 0 deletions

File tree

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,3 +364,13 @@ MigrationBackup/
364364
# Prevent nested .editorconfig files - only root .editorconfig should be used
365365
**/.editorconfig
366366
!/.editorconfig
367+
368+
# MemPalace per-project files
369+
.mempalace/
370+
mempalace.yaml
371+
entities.json
372+
373+
# Beads / Dolt files (added by bd init)
374+
.dolt/
375+
*.db
376+
.beads-credential-key

src/NetEvolve.Defaults/buildMultiTargeting/SupportAdditionalFiles.targets

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,27 @@
2828
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(CsharpierIgnoreSource)' -Destination '$(CsharpierIgnoreDest)' -Force -ErrorAction SilentlyContinue"</CsharpierIgnoreCopyCommand
2929
>
3030
<CsharpierIgnoreCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(CsharpierIgnoreSource)' '$(CsharpierIgnoreDest)' 2&gt;/dev/null || true"</CsharpierIgnoreCopyCommand>
31+
32+
<GitIgnoreSource>$(MSBuildThisFileDirectory)..\configurations\template.gitignore</GitIgnoreSource>
33+
<GitIgnoreDest>$([MSBuild]::NormalizePath('$(ConfigDir)', '.gitignore'))</GitIgnoreDest>
34+
35+
<GitIgnoreCopyCommand Condition="'$(OS)' == 'Windows_NT'"
36+
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(GitIgnoreSource)' -Destination '$(GitIgnoreDest)' -Force -ErrorAction SilentlyContinue"</GitIgnoreCopyCommand
37+
>
38+
<GitIgnoreCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(GitIgnoreSource)' '$(GitIgnoreDest)' 2&gt;/dev/null || true"</GitIgnoreCopyCommand>
39+
40+
<GitAttributesSource>$(MSBuildThisFileDirectory)..\configurations\template.gitattributes</GitAttributesSource>
41+
<GitAttributesDest>$([MSBuild]::NormalizePath('$(ConfigDir)', '.gitattributes'))</GitAttributesDest>
42+
43+
<GitAttributesCopyCommand Condition="'$(OS)' == 'Windows_NT'"
44+
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(GitAttributesSource)' -Destination '$(GitAttributesDest)' -Force -ErrorAction SilentlyContinue"</GitAttributesCopyCommand
45+
>
46+
<GitAttributesCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(GitAttributesSource)' '$(GitAttributesDest)' 2&gt;/dev/null || true"</GitAttributesCopyCommand>
3147
</PropertyGroup>
3248

3349
<Exec Command="$(EditorConfigCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
3450
<Exec Command="$(CsharpierIgnoreCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
51+
<Exec Command="$(GitIgnoreCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
52+
<Exec Command="$(GitAttributesCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
3553
</Target>
3654
</Project>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* text=auto eol=lf
2+
3+
# (binary is a macro for -text -diff)
4+
*.png binary
5+
*.jpg binary
6+
*.jpeg binary
7+
*.gif binary
8+
*.ico binary
9+
*.mov binary
10+
*.mp4 binary
11+
*.mp3 binary
12+
*.flv binary
13+
*.fla binary
14+
*.swf binary
15+
*.gz binary
16+
*.zip binary
17+
*.7z binary
18+
*.ttf binary
19+
*.eot binary
20+
*.woff binary
21+
*.pyc binary
22+
*.pdf binary
23+
24+
# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
25+
*.verified.txt text eol=lf working-tree-encoding=UTF-8
26+
*.verified.xml text eol=lf working-tree-encoding=UTF-8
27+
*.verified.json text eol=lf working-tree-encoding=UTF-8

0 commit comments

Comments
 (0)