-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
56 lines (46 loc) · 2.19 KB
/
Copy path.gitattributes
File metadata and controls
56 lines (46 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# GitHub Linguist overrides
# See: https://github.com/github-linguist/linguist/blob/main/docs/overrides.md
# uSync exported config files (XML) - test site data, not source code
src/UpDoc.TestSite/uSync/** linguist-vendored
# Auto-generated Umbraco content type models
*.generated.cs linguist-generated
# Compiled CSS output (generated from SCSS, includes Bootstrap)
src/UpDoc.TestSite/wwwroot/css/index.css linguist-generated
# Vite-bundled JavaScript output (compiled from TypeScript)
src/UpDoc/wwwroot/App_Plugins/UpDoc/dist/** linguist-generated
###############################################################################
# Line endings
#
# Vite writes LF. Without an explicit rule, Git on Windows converts the working
# copy to CRLF on checkout, so every rebuild reports dozens of files as
# "modified" that differ only by line ending. Real changes get buried in the
# noise, and the diff stops being reviewable.
#
# Forcing LF on the committed build output means a rebuild produces files that
# match the stored ones byte-for-byte, so only genuine changes show up.
#
# Source files are normalised too, which stops the "CRLF will be replaced by
# LF" warnings on every commit.
###############################################################################
# Vite build output (committed, ships in the NuGet package)
src/UpDoc/wwwroot/App_Plugins/UpDoc/dist/**/*.js text eol=lf
src/UpDoc/wwwroot/App_Plugins/UpDoc/dist/**/*.mjs text eol=lf
src/UpDoc/wwwroot/App_Plugins/UpDoc/dist/**/*.map text eol=lf
# Frontend source
src/UpDoc/wwwroot/App_Plugins/UpDoc/src/**/*.ts text eol=lf
src/UpDoc/wwwroot/App_Plugins/UpDoc/tests/**/*.ts text eol=lf
# Workflow config files (read by both C# and TypeScript)
# The running site rewrites these with CRLF, so without an explicit rule every
# workflow edit reports the whole file as modified. The mirror needs the same
# rule as the test site — it was added later and missed it.
src/UpDoc.TestSite/updoc/**/*.json text eol=lf
src/TailoredTravel.Web/updoc/**/*.json text eol=lf
# Repo-level text
*.md text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
# C# — LF for consistency with everything else
*.cs text eol=lf
*.csproj text eol=lf
*.sln text eol=crlf