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. 7.* 8# Exclude specific dotfiles that we want to track. 9!deps/**/.* 10!test/fixtures/**/.* 11!.clang-format 12!.editorconfig 13!.eslintignore 14!.eslintrc.js 15!.flake8 16!.gitattributes 17!.github 18!.gitignore 19!.gitkeep 20!.mailmap 21!.nycrc 22!.eslintrc.yaml 23!.cpplint 24 25# === Rules for root dir === 26/core 27/vgcore.* 28/v8*.log 29/perf.data 30/perf.data.old 31/tags 32/doc/api.xml 33/node 34/node_g 35/gon-config.json 36/*.exe 37/*.swp 38/out 39 40# === Rules for artifacts of `./configure` === 41/icu_config.gypi 42/config.gypi 43/config.status 44/config_fips.gypi 45 46# === Rules for MSVS artifacts === 47Debug/ 48Release/ 49*.sln 50*.suo 51*.vcxproj* 52UpgradeLog*.XML 53_UpgradeReport_Files/ 54*.sdf 55*.opensdf 56*.VC.* 57*.wixobj 58/tools/msvs/genfiles/ 59/npm.wxs 60# Exclude MSVS files used for .msi file generation 61!tools/msvs/msi/custom_actions.vcxproj 62!tools/msvs/msi/nodemsi.sln 63 64# === Rules for GYP artifacts === 65*-nodegyp* 66/gyp-*-tool 67/test/addons/??_*/ 68/*.mk 69 70# === Rules for other build artifacts === 71/email.md 72/deps/v8-* 73/deps/icu 74/deps/icu*.zip 75/deps/icu*.tgz 76/deps/icu-tmp 77./node_modules 78/android-toolchain/ 79# generated by gyp on Windows 80/deps/openssl/openssl.props 81/deps/openssl/openssl.targets 82/deps/openssl/openssl.xml 83# generated by gyp on android 84/*.target.mk 85/*.host.mk 86/deps/openssl/openssl.target.mk 87/deps/zlib/zlib.target.mk 88 89# === Rules for release artifacts === 90/*.tar.* 91/*.pkg 92/SHASUMS*.txt* 93 94# === Rules for `node_modules` === 95!**/node_modules/** 96/node_modules 97/tools/doc/node_modules 98/tools/clang-format/node_modules 99 100# === Rules for test artifacts === 101/*.tap 102/node_trace.*.log 103# coverage related 104/gcovr 105/build 106/coverage 107 108# === Rules for XCode artifacts === 109*.xcodeproj 110*.xcworkspace 111*.pbxproj 112 113# === Rules for files in `/deps` === 114# Exclude all files in the vendored `npm`. 115!/deps/npm/node_modules 116# These are not needed and causes issues for distro packagers. 117/deps/npm/node_modules/.bin/ 118# Respect V8's .gitignore 119!deps/v8/** 120# Ignore the libuv book and GitHub templates 121/deps/uv/.github/ 122/deps/uv/docs/code/ 123/deps/uv/docs/src/guide/ 124# Ignore dependencies fetched by deps/v8/tools/node/fetch_deps.py 125/deps/.cipd 126 127# === Global Rules === 128# Keep last to avoid being excluded 129*.pyc 130__pycache__ 131.DS_Store 132*~ 133