1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 08:18:50 -05:00
gitattributes/Web.gitattributes

218 lines
5.2 KiB
Plaintext
Raw Normal View History

2016-05-06 22:36:40 -04:00
## GITATTRIBUTES FOR WEB PROJECTS
#
2016-05-06 22:36:40 -04:00
# These settings are for any web project.
#
2016-05-06 22:36:40 -04:00
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
2016-05-06 22:36:40 -04:00
# Note that binary is a macro for -text -diff.
######################################################################
2019-04-19 20:35:18 -04:00
# Auto detect
2017-04-06 09:09:22 -04:00
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
2019-04-27 01:03:07 -04:00
* text=auto
2019-04-19 20:35:18 -04:00
# Source code
2019-04-27 01:03:07 -04:00
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
2019-04-27 01:03:07 -04:00
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.mjs text
*.cjs text
2019-04-27 01:03:07 -04:00
*.json text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
2019-04-27 01:03:07 -04:00
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text diff=css
*.sh text eol=lf
2022-07-12 05:25:30 -04:00
.husky/* text eol=lf
2019-04-27 01:03:07 -04:00
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html
2019-04-19 20:35:18 -04:00
# Docker
2019-04-27 01:03:07 -04:00
Dockerfile text
2017-04-21 05:19:51 -04:00
2019-04-19 20:35:18 -04:00
# Documentation
*.ipynb text eol=lf
*.markdown text diff=markdown
*.md text diff=markdown
*.mdwn text diff=markdown
*.mdown text diff=markdown
*.mkd text diff=markdown
*.mkdn text diff=markdown
2019-04-27 01:03:07 -04:00
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
2016-05-06 22:12:51 -04:00
2019-04-19 20:35:18 -04:00
# Templates
2019-04-27 01:03:07 -04:00
*.dot text
*.ejs text
2021-11-04 06:12:58 -04:00
*.erb text
2019-04-27 01:03:07 -04:00
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.svelte text
2019-04-27 01:03:07 -04:00
*.tmpl text
*.tpl text
*.twig text
*.vue text
2019-04-19 20:35:18 -04:00
# Configs
2019-04-27 01:03:07 -04:00
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package.json text eol=lf
package-lock.json text eol=lf -diff
pnpm-lock.yaml text eol=lf -diff
.prettierrc text
yarn.lock text -diff
*.toml text
2019-04-27 01:03:07 -04:00
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
2023-07-16 21:05:31 -04:00
# Fixes syntax highlighting on GitHub to allow comments
tsconfig.json linguist-language=JSON-with-Comments
2019-04-19 20:35:18 -04:00
# Heroku
2019-04-27 01:03:07 -04:00
Procfile text
2019-04-19 20:35:18 -04:00
# Graphics
2019-04-27 01:03:07 -04:00
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
2019-05-10 02:05:01 -04:00
*.gifv binary
2019-04-27 01:03:07 -04:00
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
2019-04-19 20:10:44 -04:00
# SVG treated as an asset (binary) by default.
2019-04-27 01:03:07 -04:00
*.svg text
2019-04-21 03:16:56 -04:00
# If you want to treat it as binary,
2019-04-19 20:10:44 -04:00
# use the following line instead.
2019-04-27 01:03:07 -04:00
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
2016-05-06 22:19:25 -04:00
2019-04-19 20:35:18 -04:00
# Audio
2019-04-27 01:03:07 -04:00
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
2016-05-06 22:19:55 -04:00
2019-04-19 20:35:18 -04:00
# Video
2019-04-27 01:03:07 -04:00
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
2021-05-22 22:15:31 -04:00
*.avi binary
2019-04-27 01:03:07 -04:00
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary
2016-05-06 22:20:41 -04:00
2019-04-19 20:35:18 -04:00
# Archives
2019-04-27 01:03:07 -04:00
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
2016-05-06 22:21:14 -04:00
2019-04-19 20:35:18 -04:00
# Fonts
2019-04-27 01:03:07 -04:00
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
2016-05-06 22:21:41 -04:00
2019-04-19 20:35:18 -04:00
# Executables
2019-04-27 01:03:07 -04:00
*.exe binary
*.pyc binary
2023-07-16 21:05:31 -04:00
# Prevents massive diffs caused by vendored, minified files
**/.yarn/releases/** binary
**/.yarn/plugins/** binary
# RC files (like .babelrc or .eslintrc)
*.*rc text
# Ignore files (like .npmignore or .gitignore)
*.*ignore text
2023-07-16 21:07:50 -04:00
# Prevents massive diffs from built files
dist/* binary