Skip to content
framework17 active rulesVerified 2026-09-30

Angular .gitignore Template

Angular CLI build artifacts (.angular/), dist folder, and test reports. 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 Generator
Search for templates
Quick add:
Selected1
Angular
Selected Templates (1)
.gitignore
### Angular ###
# Angular specific
/dist/
/out-tsc/
/tmp/
/coverage/
/e2e/test-output/
/.angular/
.angular/
# Node modules and dependency files
/node_modules/
/package-lock.json
/yarn.lock
# Environment files
/.env
# Angular CLI and build artefacts
/.angular-cli.json
/.ng/
# TypeScript cache
*.tsbuildinfo
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
17 rules1 template30 lines
Deterministic

Raw Angular .gitignore

Crawlable upstream source template
angular.gitignore29 lines
# Angular specific
/dist/
/out-tsc/
/tmp/
/coverage/
/e2e/test-output/
/.angular/
.angular/
# Node modules and dependency files
/node_modules/
/package-lock.json
/yarn.lock
# Environment files
/.env
# Angular CLI and build artefacts
/.angular-cli.json
/.ng/
# TypeScript cache
*.tsbuildinfo
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

Key Pattern Breakdown

Dependencies & Packages

Excludes installed package directories and third-party vendor files that should be restored via package managers.

/node_modules/

Build & Compilation Artifacts

Ignores compiled binaries, intermediate object files, and build output directories generated during development.

/dist//out-tsc//e2e/test-output/*.tsbuildinfo

Environment & Secrets

Prevents leaking sensitive local credentials, API keys, database URLs, and environment configuration files.

/.env

Cache & Temporary Files

Ignores compiler caches, test runner coverage data, and transient temporary scratch files.

/tmp//coverage/npm-debug.log*yarn-debug.log*yarn-error.log*

Source & Verification

License:: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.