Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,13 @@ MigrationBackup/
# Prevent nested .editorconfig files - only root .editorconfig should be used
**/.editorconfig
!/.editorconfig

# MemPalace per-project files
.mempalace/
mempalace.yaml
entities.json

# Beads / Dolt files (added by bd init)
.dolt/
*.db
.beads-credential-key
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,27 @@
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(CsharpierIgnoreSource)' -Destination '$(CsharpierIgnoreDest)' -Force -ErrorAction SilentlyContinue"</CsharpierIgnoreCopyCommand
>
<CsharpierIgnoreCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(CsharpierIgnoreSource)' '$(CsharpierIgnoreDest)' 2&gt;/dev/null || true"</CsharpierIgnoreCopyCommand>

<GitIgnoreSource>$(MSBuildThisFileDirectory)..\configurations\template.gitignore</GitIgnoreSource>
<GitIgnoreDest>$([MSBuild]::NormalizePath('$(ConfigDir)', '.gitignore'))</GitIgnoreDest>

<GitIgnoreCopyCommand Condition="'$(OS)' == 'Windows_NT'"
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(GitIgnoreSource)' -Destination '$(GitIgnoreDest)' -Force -ErrorAction SilentlyContinue"</GitIgnoreCopyCommand
>
<GitIgnoreCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(GitIgnoreSource)' '$(GitIgnoreDest)' 2&gt;/dev/null || true"</GitIgnoreCopyCommand>

<GitAttributesSource>$(MSBuildThisFileDirectory)..\configurations\template.gitattributes</GitAttributesSource>
<GitAttributesDest>$([MSBuild]::NormalizePath('$(ConfigDir)', '.gitattributes'))</GitAttributesDest>

<GitAttributesCopyCommand Condition="'$(OS)' == 'Windows_NT'"
>pwsh -NoProfile -NonInteractive -Command "Copy-Item -Path '$(GitAttributesSource)' -Destination '$(GitAttributesDest)' -Force -ErrorAction SilentlyContinue"</GitAttributesCopyCommand
>
<GitAttributesCopyCommand Condition="'$(OS)' != 'Windows_NT'">bash -c "cp -f '$(GitAttributesSource)' '$(GitAttributesDest)' 2&gt;/dev/null || true"</GitAttributesCopyCommand>
</PropertyGroup>

<Exec Command="$(EditorConfigCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
<Exec Command="$(CsharpierIgnoreCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
<Exec Command="$(GitIgnoreCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
<Exec Command="$(GitAttributesCopyCommand)" ContinueOnError="true" IgnoreExitCode="true" />
</Target>
</Project>
27 changes: 27 additions & 0 deletions src/NetEvolve.Defaults/configurations/template.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
* text=auto eol=lf

# (binary is a macro for -text -diff)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary

# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
*.verified.txt text eol=lf working-tree-encoding=UTF-8
*.verified.xml text eol=lf working-tree-encoding=UTF-8
*.verified.json text eol=lf working-tree-encoding=UTF-8
Loading
Loading