| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,13 @@ | |||
| 1 | - # Whitelist dotfiles | ||
| 1 | + # Please take extra care not to add rules that will make tracked files ignored. | ||
| 2 | + # To test that, run `git ls-files -i --exclude-standard`. | ||
| 3 | + # To check why a specific file is ignored, run `git check-ignore -v <filepath>`. | ||
| 4 | + | ||
| 5 | + # === Rule for dotfiles === | ||
| 6 | + # Ignore all dotfiles. | ||
| 2 | 7 | .* | |
| 8 | + # Exclude specific dotfiles that we want to track. | ||
| 3 | 9 | !deps/**/.* | |
| 4 | 10 | !test/fixtures/**/.* | |
| 5 | - !tools/node_modules/**/.* | ||
| 6 | - !tools/doc/node_modules/**/.* | ||
| 7 | 11 | !.clang-format | |
| 8 | 12 | !.editorconfig | |
| 9 | 13 | !.eslintignore | |
@@ -19,109 +23,108 @@ | |||
| 19 | 23 | !.eslintrc.yaml | |
| 20 | 24 | !.cpplint | |
| 21 | 25 | ||
| 22 | - core | ||
| 23 | - vgcore.* | ||
| 24 | - v8*.log | ||
| 25 | - perf.data | ||
| 26 | - perf.data.old | ||
| 27 | - tags | ||
| 28 | - *.pyc | ||
| 29 | - doc/api.xml | ||
| 30 | - tmp/ | ||
| 31 | - test/tmp*/ | ||
| 32 | - iojs | ||
| 33 | - iojs_g | ||
| 34 | - node | ||
| 35 | - node_g | ||
| 36 | - *.swp | ||
| 37 | - icu_config.gypi | ||
| 38 | - node_trace.*.log | ||
| 39 | - coverage/ | ||
| 40 | - !**/node_modules/**/coverage | ||
| 41 | - | ||
| 26 | + # === Rules for root dir === | ||
| 27 | + /core | ||
| 28 | + /vgcore.* | ||
| 29 | + /v8*.log | ||
| 30 | + /perf.data | ||
| 31 | + /perf.data.old | ||
| 32 | + /tags | ||
| 33 | + /doc/api.xml | ||
| 34 | + /node | ||
| 35 | + /node_g | ||
| 36 | + /*.exe | ||
| 37 | + /*.swp | ||
| 42 | 38 | /out | |
| 39 | + /*.txt | ||
| 40 | + | ||
| 41 | + # === Rules for artifacts of `./configure` === | ||
| 42 | + /icu_config.gypi | ||
| 43 | + /config.gypi | ||
| 44 | + /config.status | ||
| 45 | + /config_fips.gypi | ||
| 43 | 46 | ||
| 44 | - # various stuff that VC++ produces/uses and is not in /out | ||
| 47 | + # === Rules for MSVS artifacts === | ||
| 45 | 48 | /Debug | |
| 46 | 49 | /Release | |
| 47 | - !doc/blog/** | ||
| 48 | 50 | *.sln | |
| 49 | - !nodemsi.sln | ||
| 50 | 51 | *.suo | |
| 51 | - *.vcxproj | ||
| 52 | - !custom_actions.vcxproj | ||
| 53 | - *.vcxproj.user | ||
| 54 | - *.vcxproj.filters | ||
| 52 | + *.vcxproj* | ||
| 55 | 53 | UpgradeLog*.XML | |
| 56 | 54 | _UpgradeReport_Files/ | |
| 57 | 55 | *.sdf | |
| 58 | 56 | *.opensdf | |
| 59 | - *.VC.db | ||
| 60 | - *.VC.opendb | ||
| 61 | - /*.exe | ||
| 57 | + *.VC.* | ||
| 58 | + *.wixobj | ||
| 59 | + /tools/msvs/genfiles/ | ||
| 60 | + /npm.wxs | ||
| 61 | + # Exclude MSVS files used for .msi file generation | ||
| 62 | + !tools/msvs/msi/custom_actions.vcxproj | ||
| 63 | + !tools/msvs/msi/nodemsi.sln | ||
| 62 | 64 | ||
| 63 | - /config.mk | ||
| 64 | - /config.gypi | ||
| 65 | - /config.status | ||
| 66 | - /config_fips.gypi | ||
| 65 | + # === Rules for GYP artifacts === | ||
| 67 | 66 | *-nodegyp* | |
| 68 | - /gyp-mac-tool | ||
| 69 | - /npm.wxs | ||
| 70 | - /tools/msvs/npm.wixobj | ||
| 71 | - /tools/msvs/genfiles/ | ||
| 67 | + /gyp-*-tool | ||
| 72 | 68 | /test/addons/??_*/ | |
| 73 | - email.md | ||
| 74 | - deps/v8-* | ||
| 75 | - deps/icu | ||
| 76 | - deps/icu*.zip | ||
| 77 | - deps/icu*.tgz | ||
| 78 | - deps/icu-tmp | ||
| 79 | - ./node_modules | ||
| 80 | - android-toolchain/ | ||
| 69 | + /*.mk | ||
| 81 | 70 | ||
| 71 | + # === Rules for other build artifacts === | ||
| 72 | + /email.md | ||
| 73 | + /deps/v8-* | ||
| 74 | + /deps/icu | ||
| 75 | + /deps/icu*.zip | ||
| 76 | + /deps/icu*.tgz | ||
| 77 | + /deps/icu-tmp | ||
| 78 | + ./node_modules | ||
| 79 | + /android-toolchain/ | ||
| 82 | 80 | # generated by gyp on Windows | |
| 83 | - deps/openssl/openssl.props | ||
| 84 | - deps/openssl/openssl.targets | ||
| 85 | - deps/openssl/openssl.xml | ||
| 86 | - | ||
| 81 | + /deps/openssl/openssl.props | ||
| 82 | + /deps/openssl/openssl.targets | ||
| 83 | + /deps/openssl/openssl.xml | ||
| 87 | 84 | # generated by gyp on android | |
| 88 | 85 | /*.target.mk | |
| 89 | 86 | /*.host.mk | |
| 90 | - deps/openssl/openssl.target.mk | ||
| 91 | - deps/zlib/zlib.target.mk | ||
| 92 | - | ||
| 93 | - !deps/npm/node_modules | ||
| 94 | - # not needed and causes issues for distro packagers | ||
| 95 | - deps/npm/node_modules/.bin/ | ||
| 87 | + /deps/openssl/openssl.target.mk | ||
| 88 | + /deps/zlib/zlib.target.mk | ||
| 96 | 89 | ||
| 97 | - # build/release artifacts | ||
| 90 | + # === Rules for release artifacts === | ||
| 98 | 91 | /*.tar.* | |
| 99 | 92 | /*.pkg | |
| 100 | 93 | /SHASUMS*.txt* | |
| 101 | 94 | ||
| 102 | - # api docs artifacts | ||
| 103 | - tools/doc/node_modules | ||
| 104 | - | ||
| 105 | - # clang-format artifacts | ||
| 106 | - tools/clang-format/node_modules | ||
| 95 | + # === Rules for `node_modules` === | ||
| 96 | + !**/node_modules/** | ||
| 97 | + /node_modules | ||
| 98 | + /tools/doc/node_modules | ||
| 99 | + /tools/clang-format/node_modules | ||
| 107 | 100 | ||
| 108 | - # test artifacts | ||
| 109 | - icu_config.gypi | ||
| 110 | - *.tap | ||
| 101 | + # === Rules for test artifacts === | ||
| 102 | + /*.tap | ||
| 111 | 103 | /*.xml | |
| 104 | + /node_trace.*.log | ||
| 105 | + # coverage related | ||
| 106 | + /gcovr | ||
| 107 | + /build | ||
| 112 | 108 | ||
| 113 | - # Xcode workspaces and project folders | ||
| 109 | + # === Rules for XCode artifacts === | ||
| 114 | 110 | *.xcodeproj | |
| 115 | 111 | *.xcworkspace | |
| 112 | + *.pbxproj | ||
| 116 | 113 | ||
| 117 | - # libuv book and GitHub template | ||
| 118 | - deps/uv/.github/ | ||
| 119 | - deps/uv/docs/code/ | ||
| 120 | - deps/uv/docs/src/guide/ | ||
| 121 | - | ||
| 122 | - # do not override V8's .gitignore | ||
| 114 | + # === Rules for files in `/deps` === | ||
| 115 | + # Exclude all files in the vendored `npm`. | ||
| 116 | + !/deps/npm/node_modules | ||
| 117 | + # These are not needed and causes issues for distro packagers. | ||
| 118 | + /deps/npm/node_modules/.bin/ | ||
| 119 | + # Respect V8's .gitignore | ||
| 123 | 120 | !deps/v8/** | |
| 124 | - # ignore VS compiler output unhandled by V8's .gitignore | ||
| 125 | - deps/v8/third_party/eu-strip/ | ||
| 121 | + # Ignore the libuv book and GitHub templates | ||
| 122 | + /deps/uv/.github/ | ||
| 123 | + /deps/uv/docs/code/ | ||
| 124 | + /deps/uv/docs/src/guide/ | ||
| 126 | 125 | ||
| 126 | + # === Global Rules === | ||
| 127 | + # Keep last to avoid being excluded | ||
| 128 | + *.pyc | ||
| 129 | + __pycache__ | ||
| 127 | 130 | .DS_Store | |
| Back | FazBrowse Home | New Git URL |
0 commit comments