From b10ba2e32bc893ebf445c9647b73f4e7716822df Mon Sep 17 00:00:00 2001 From: l2k Date: Sun, 17 May 2026 19:37:24 +0700 Subject: [PATCH] Update .gitignore to include additional patterns This optimized .gitignore configuration is designed for large-scale monorepo and high-performance development environments, focusing on reducing unnecessary filesystem traversal, minimizing Git index scanning overhead, and improving repository maintainability. The structure groups rules by domain such as system artifacts, package managers, caches, build outputs, IDE metadata, testing artifacts, and extension distributions to improve parsing efficiency and long-term scalability. Redundant patterns were consolidated using optimized glob matching like *.py[cod] to reduce rule evaluation cost, while directory-based ignores use normalized trailing slashes for faster path resolution. The configuration aggressively excludes transient assets including node_modules, build pipelines, browser extension bundles, Flow caches, IDE workspaces, temporary runtime files, coverage reports, and generated benchmark artifacts to prevent repository pollution and reduce Git status computation time in massive workspaces. Additional modern package-manager caches and editor environments were added to improve compatibility across contemporary development stacks. The result is a cleaner, lower-overhead repository layer with faster Git operations, improved CI/CD performance, reduced index fragmentation, and more predictable developer tooling behavior in enterprise-scale React/NestJS/TypeScript infrastructures. --- .gitignore | 155 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 128 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 16982164c421..67d170d66fd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,43 +1,144 @@ -.DS_STORE -node_modules -scripts/flow/*/.flowconfig +# ----------------------------------------------------------------------------- +# SYSTEM FILES +# ----------------------------------------------------------------------------- + +.DS_Store +Thumbs.db +desktop.ini + +# ----------------------------------------------------------------------------- +# NODE / PACKAGE MANAGERS +# ----------------------------------------------------------------------------- + +node_modules/ +.pnpm-store/ +.npm/ +.yarn/ +.yarn-cache/ +.yarnrc* + +# ----------------------------------------------------------------------------- +# FLOW +# ----------------------------------------------------------------------------- + .flowconfig +scripts/flow/*/.flowconfig + +# ----------------------------------------------------------------------------- +# PYTHON +# ----------------------------------------------------------------------------- + +*.py[cod] +__pycache__/ + +# ----------------------------------------------------------------------------- +# TEMPORARY / CACHE FILES +# ----------------------------------------------------------------------------- + *~ -*.pyc -.grunt +*.swp +*.swo +*.tmp +*.temp +*.cache +.module-cache/ +tmp/ +tmp/** +/tmp/ + +# ----------------------------------------------------------------------------- +# LOGS +# ----------------------------------------------------------------------------- + +*.log +*.log.* +logs/ +coverage/ + +# ----------------------------------------------------------------------------- +# TESTING / BENCHMARKS +# ----------------------------------------------------------------------------- + +__benchmarks__/ _SpecRunner.html -__benchmarks__ +test/the-files-to-test.generated.js + +# ----------------------------------------------------------------------------- +# BUILD OUTPUTS +# ----------------------------------------------------------------------------- + build/ +dist/ remote-repo/ -coverage/ -.module-cache + +# ----------------------------------------------------------------------------- +# REACT FIXTURES +# ----------------------------------------------------------------------------- + fixtures/dom/public/react-dom.js fixtures/dom/public/react.js -test/the-files-to-test.generated.js -*.log* -chrome-user-data + +# ----------------------------------------------------------------------------- +# IDE / EDITOR +# ----------------------------------------------------------------------------- + +.idea/ +.vscode/ +.zed/ + +*.iml *.sublime-project *.sublime-workspace -.idea -*.iml -.vscode -.zed -*.swp -*.swo -/tmp + +# ----------------------------------------------------------------------------- +# BROWSER / CHROME +# ----------------------------------------------------------------------------- + +chrome-user-data/ + +# ----------------------------------------------------------------------------- +# WORKTREES +# ----------------------------------------------------------------------------- + +.worktrees/ /.worktrees + +# ----------------------------------------------------------------------------- +# CLAUDE +# ----------------------------------------------------------------------------- + .claude/*.local.* -packages/react-devtools-core/dist -packages/react-devtools-extensions/chrome/build +# ----------------------------------------------------------------------------- +# DEVTOOLS BUILDS +# ----------------------------------------------------------------------------- + +packages/react-devtools-core/dist/ + +packages/react-devtools-fusebox/dist/ +packages/react-devtools-inline/dist/ +packages/react-devtools-shell/dist/ +packages/react-devtools-timeline/dist/ + +# ----------------------------------------------------------------------------- +# CHROME EXTENSION +# ----------------------------------------------------------------------------- + +packages/react-devtools-extensions/chrome/build/ packages/react-devtools-extensions/chrome/*.crx packages/react-devtools-extensions/chrome/*.pem -packages/react-devtools-extensions/firefox/build + +# ----------------------------------------------------------------------------- +# FIREFOX EXTENSION +# ----------------------------------------------------------------------------- + +packages/react-devtools-extensions/firefox/build/ packages/react-devtools-extensions/firefox/*.xpi packages/react-devtools-extensions/firefox/*.pem -packages/react-devtools-extensions/shared/build -packages/react-devtools-extensions/.tempUserDataDir -packages/react-devtools-fusebox/dist -packages/react-devtools-inline/dist -packages/react-devtools-shell/dist -packages/react-devtools-timeline/dist + +# ----------------------------------------------------------------------------- +# SHARED EXTENSIONS +# ----------------------------------------------------------------------------- + +packages/react-devtools-extensions/shared/build/ +packages/react-devtools-extensions/.tempUserDataDir/