NestJS .gitignore Template
NestJS framework dist outputs, coverage reports, and build cache. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full GeneratorNestJS framework dist outputs, coverage reports, and build cache
### NestJS #### Nestjs specific/dist/node_modules/build/tmp # Logslogs*.lognpm-debug.log*pnpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log* # dotenv environment variable files.env.env.development.env.test.env.production # temp directory.temp.tmp Raw NestJS .gitignore
Crawlable upstream source template# Nestjs specific/dist/node_modules/build/tmp # Logslogs*.lognpm-debug.log*pnpm-debug.log*yarn-debug.log*yarn-error.log*lerna-debug.log* # dotenv environment variable files.env.env.development.env.test.env.production # temp directory.temp.tmp Key Pattern Breakdown
Dependencies & Packages
Excludes installed package directories and third-party vendor files that should be restored via package managers.
Build & Compilation Artifacts
Ignores compiled binaries, intermediate object files, and build output directories generated during development.
Environment & Secrets
Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
Source & Verification
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.