Add .gitattributes and tighten .gitignore

Normalises text to LF and marks the migrated WordPress uploads (204 PNGs,
94 JPGs, plus GIFs/PDFs/ICO/MP4) as binary so git stops trying to diff,
merge or rewrite endings in them. src/styles/global.css came out of the
theme with CRLF endings and is renormalised here in one deliberate pass
rather than leaving it to surprise someone on a later commit -- the
content is byte-identical ignoring whitespace.

.gitignore additionally covers .vscode/, *.log, *.swp, Thumbs.db and all
.env variants -- the last of those matters because scripts/export-wp.mjs
reads the WordPress DB credentials from the environment.

Also corrects the note on the excluded 80MB video: it lives in public/
and Astro copies it into dist/ on every build, so no manual copy step is
needed, contrary to what the old comment claimed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 19:31:17 -04:00
co-authored by Claude Opus 5
parent 63c2f6c0e7
commit b5c33ed683
3 changed files with 1464 additions and 1445 deletions
+16 -13
View File
@@ -1,27 +1,30 @@
# build output
# Build output. Apache serves /srv/www/vhosts/vicidial/dist directly from disk,
# so this is regenerated in place by `npm run build` and never committed.
dist/
# generated types
.astro/
# dependencies
# Generated types and caches
.astro/
node_modules/
# logs
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
# Credentials. scripts/export-wp.mjs takes WP_DB_USER / WP_DB_PASSWORD from the
# environment, so keep any local .env holding those out of the repo.
.env
.env.production
.env.*
# macOS-specific files
.DS_Store
# jetbrains setting folder
# Editor and OS noise
.vscode/
.idea/
*.swp
.DS_Store
Thumbs.db
# large video, copied into dist/ post-build instead of tracked in git
# 80MB video. It lives in public/ on disk and Astro copies it into dist/ on every
# build, so the site serves it normally -- it just isn't worth carrying in history.
public/VICIdial_v002_06-23-2017.mp4