Skip to content
framework17 個の有効ルール2026-09-30 検証済み

Angular .gitignore テンプレート

Angular CLI build artifacts (.angular/), dist folder, and test reports. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。

スタック統合ジェネレーター

フルジェネレーターで開く
Search for templates
クイック追加:
選択中1
Angular
選択されたテンプレート (1)
.gitignore
17 ルール
### 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 行•UTF-8
決定論的パイプライン

生ソース: Angular .gitignore

クローラブルな公式アップストリーム原典
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*

主要除外パターンの解説

依存関係・パッケージフォルダ

パッケージマネージャーによって再インストール可能な外部ライブラリや vendor フォルダを除外します。

/node_modules/

ビルド・コンパイル生成物

ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。

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

環境変数・シークレット情報

API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。

/.env

キャッシュ・一時ファイル

コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。

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

ソース元とライセンス検証

ライセンス:: CC0-1.0

このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。