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

Preconfigured with Angular
Search for templates
Quick add:
Selected1
Angular
Selected Templates (1)
.gitignore
17 rules
### 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*
30 lines•UTF-8
Deterministic

Raw Angular .gitignore

Crawlable upstream source template
angular.gitignore•29 lines•UTF-8
# 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 & Package Registries

External libraries and package manager directories installed locally rather than stored in version control.

/node_modules/

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

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

Environment Secrets & Local Overrides

Local environment configurations, secrets, and credentials intended to protect developer-specific settings from exposure.

/.env

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

/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.