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:
@@ -0,0 +1,16 @@
|
||||
# Normalise text to LF in the repository and on checkout. global.css was ported
|
||||
# from the WordPress theme with CRLF endings and has been renormalised.
|
||||
* text=auto eol=lf
|
||||
|
||||
# Migrated WordPress uploads and other binaries: never diff, merge or touch endings.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.ico binary
|
||||
*.webp binary
|
||||
*.pdf binary
|
||||
*.mp4 binary
|
||||
|
||||
# Generated by npm, and pure noise in review.
|
||||
package-lock.json -diff linguist-generated=true
|
||||
+16
-13
@@ -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
|
||||
|
||||
+1432
-1432
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user