|
| 1 | +# https://github.com/gitattributes/gitattributes/blob/master/Web.gitattributes |
| 2 | +## GITATTRIBUTES FOR WEB PROJECTS |
| 3 | +# |
| 4 | +# These settings are for any web project. |
| 5 | +# |
| 6 | +# Details per file setting: |
| 7 | +# text These files should be normalized (i.e. convert CRLF to LF). |
| 8 | +# binary These files are binary and should be left untouched. |
| 9 | +# |
| 10 | +# Note that binary is a macro for -text -diff. |
| 11 | +###################################################################### |
| 12 | + |
| 13 | +# Auto detect |
| 14 | +## Handle line endings automatically for files detected as |
| 15 | +## text and leave all files detected as binary untouched. |
| 16 | +## This will handle all files NOT defined below. |
| 17 | +* text=auto |
| 18 | + |
| 19 | +# Source code |
| 20 | +*.bash text eol=lf |
| 21 | +*.bat text eol=crlf |
| 22 | +*.cmd text eol=crlf |
| 23 | +*.coffee text |
| 24 | +*.css text diff=css |
| 25 | +*.htm text diff=html |
| 26 | +*.html text diff=html |
| 27 | +*.inc text |
| 28 | +*.ini text |
| 29 | +*.js text |
| 30 | +*.mjs text |
| 31 | +*.cjs text |
| 32 | +*.json text |
| 33 | +*.jsx text |
| 34 | +*.less text |
| 35 | +*.ls text |
| 36 | +*.map text -diff |
| 37 | +*.od text |
| 38 | +*.onlydata text |
| 39 | +*.php text diff=php |
| 40 | +*.pl text |
| 41 | +*.ps1 text eol=crlf |
| 42 | +*.py text diff=python |
| 43 | +*.rb text diff=ruby |
| 44 | +*.sass text |
| 45 | +*.scm text |
| 46 | +*.scss text diff=css |
| 47 | +*.sh text eol=lf |
| 48 | +.husky/* text eol=lf |
| 49 | +*.sql text |
| 50 | +*.styl text |
| 51 | +*.tag text |
| 52 | +*.ts text |
| 53 | +*.tsx text |
| 54 | +*.xml text |
| 55 | +*.xhtml text diff=html |
| 56 | + |
| 57 | +# Docker |
| 58 | +Dockerfile text |
| 59 | + |
| 60 | +# Documentation |
| 61 | +*.ipynb text eol=lf |
| 62 | +*.markdown text diff=markdown |
| 63 | +*.md text diff=markdown |
| 64 | +*.mdwn text diff=markdown |
| 65 | +*.mdown text diff=markdown |
| 66 | +*.mkd text diff=markdown |
| 67 | +*.mkdn text diff=markdown |
| 68 | +*.mdtxt text |
| 69 | +*.mdtext text |
| 70 | +*.txt text |
| 71 | +AUTHORS text |
| 72 | +CHANGELOG text |
| 73 | +CHANGES text |
| 74 | +CONTRIBUTING text |
| 75 | +COPYING text |
| 76 | +copyright text |
| 77 | +*COPYRIGHT* text |
| 78 | +INSTALL text |
| 79 | +license text |
| 80 | +LICENSE text |
| 81 | +NEWS text |
| 82 | +readme text |
| 83 | +*README* text |
| 84 | +TODO text |
| 85 | + |
| 86 | +# Templates |
| 87 | +*.dot text |
| 88 | +*.ejs text |
| 89 | +*.erb text |
| 90 | +*.haml text |
| 91 | +*.handlebars text |
| 92 | +*.hbs text |
| 93 | +*.hbt text |
| 94 | +*.jade text |
| 95 | +*.latte text |
| 96 | +*.mustache text |
| 97 | +*.njk text |
| 98 | +*.phtml text |
| 99 | +*.svelte text |
| 100 | +*.tmpl text |
| 101 | +*.tpl text |
| 102 | +*.twig text |
| 103 | +*.vue text |
| 104 | + |
| 105 | +# Configs |
| 106 | +*.cnf text |
| 107 | +*.conf text |
| 108 | +*.config text |
| 109 | +.editorconfig text |
| 110 | +.env text |
| 111 | +.gitattributes text |
| 112 | +.gitconfig text |
| 113 | +.htaccess text |
| 114 | +*.lock text -diff |
| 115 | +package.json text eol=lf |
| 116 | +package-lock.json text eol=lf -diff |
| 117 | +pnpm-lock.yaml text eol=lf -diff |
| 118 | +.prettierrc text |
| 119 | +yarn.lock text -diff |
| 120 | +*.toml text |
| 121 | +*.yaml text |
| 122 | +*.yml text |
| 123 | +browserslist text |
| 124 | +Makefile text |
| 125 | +makefile text |
| 126 | +# Fixes syntax highlighting on GitHub to allow comments |
| 127 | +tsconfig.json linguist-language=JSON-with-Comments |
| 128 | + |
| 129 | +# Heroku |
| 130 | +Procfile text |
| 131 | + |
| 132 | +# Graphics |
| 133 | +*.ai binary |
| 134 | +*.bmp binary |
| 135 | +*.eps binary |
| 136 | +*.gif binary |
| 137 | +*.gifv binary |
| 138 | +*.ico binary |
| 139 | +*.jng binary |
| 140 | +*.jp2 binary |
| 141 | +*.jpg binary |
| 142 | +*.jpeg binary |
| 143 | +*.jpx binary |
| 144 | +*.jxr binary |
| 145 | +*.pdf binary |
| 146 | +*.png binary |
| 147 | +*.psb binary |
| 148 | +*.psd binary |
| 149 | +# SVG treated as an asset (binary) by default. |
| 150 | +*.svg text |
| 151 | +# If you want to treat it as binary, |
| 152 | +# use the following line instead. |
| 153 | +# *.svg binary |
| 154 | +*.svgz binary |
| 155 | +*.tif binary |
| 156 | +*.tiff binary |
| 157 | +*.wbmp binary |
| 158 | +*.webp binary |
| 159 | + |
| 160 | +# Audio |
| 161 | +*.kar binary |
| 162 | +*.m4a binary |
| 163 | +*.mid binary |
| 164 | +*.midi binary |
| 165 | +*.mp3 binary |
| 166 | +*.ogg binary |
| 167 | +*.ra binary |
| 168 | + |
| 169 | +# Video |
| 170 | +*.3gpp binary |
| 171 | +*.3gp binary |
| 172 | +*.as binary |
| 173 | +*.asf binary |
| 174 | +*.asx binary |
| 175 | +*.avi binary |
| 176 | +*.fla binary |
| 177 | +*.flv binary |
| 178 | +*.m4v binary |
| 179 | +*.mng binary |
| 180 | +*.mov binary |
| 181 | +*.mp4 binary |
| 182 | +*.mpeg binary |
| 183 | +*.mpg binary |
| 184 | +*.ogv binary |
| 185 | +*.swc binary |
| 186 | +*.swf binary |
| 187 | +*.webm binary |
| 188 | + |
| 189 | +# Archives |
| 190 | +*.7z binary |
| 191 | +*.gz binary |
| 192 | +*.jar binary |
| 193 | +*.rar binary |
| 194 | +*.tar binary |
| 195 | +*.zip binary |
| 196 | + |
| 197 | +# Fonts |
| 198 | +*.ttf binary |
| 199 | +*.eot binary |
| 200 | +*.otf binary |
| 201 | +*.woff binary |
| 202 | +*.woff2 binary |
| 203 | + |
| 204 | +# Executables |
| 205 | +*.exe binary |
| 206 | +*.pyc binary |
| 207 | +# Prevents massive diffs caused by vendored, minified files |
| 208 | +**/.yarn/releases/** binary |
| 209 | +**/.yarn/plugins/** binary |
| 210 | + |
| 211 | +# RC files (like .babelrc or .eslintrc) |
| 212 | +*.*rc text |
| 213 | + |
| 214 | +# Ignore files (like .npmignore or .gitignore) |
| 215 | +*.*ignore text |
| 216 | + |
| 217 | +# Prevents massive diffs from built files |
| 218 | +dist/* binary |
0 commit comments