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

Dart .gitignore テンプレート

Dart SDK packages, pub cache, build outputs, and doc generation. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。

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

フルジェネレーターで開く
Search for templates
クイック追加:
選択中1
Dart
選択されたテンプレート (1)
.gitignore
14 ルール
### Dart ###
# See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/
# dotenv environment variables file
.env*
# Avoid committing generated Javascript files:
*.dart.js
# Produced by the --dump-info flag.
*.info.json
# When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js
*.js_
*.js.deps
*.js.map
.flutter-plugins
.flutter-plugins-dependencies
31 行•UTF-8
決定論的パイプライン

生ソース: Dart .gitignore

クローラブルな公式アップストリーム原典
dart.gitignore•30 lines•UTF-8
# See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/
# dotenv environment variables file
.env*
# Avoid committing generated Javascript files:
*.dart.js
# Produced by the --dump-info flag.
*.info.json
# When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js
*.js_
*.js.deps
*.js.map
.flutter-plugins
.flutter-plugins-dependencies

主要除外パターンの解説

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

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

.packages

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

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

build/

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

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

.env*

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

ライセンス:: CC0-1.0

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