cached_build_runner
変更されていない .dart ファイルの生成コードをキャッシュすることで、build_runner の最適化を支援します
- スター
- 19
- フォーク
- 10
- 最終プッシュ(UTC)
- 2024/05/05
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Cached Build Runner
Cached Build Runner is a Dart package that optimizes the build_runner by caching generated code for unchanged .dart files. This package can be used as a dev_dependency and provides a cached version of the build_runner, which caches generated files instead of generating them every time.
Usage
cached_build_runner <command> [arguments]
Commands
Global options: -h, --help Print this usage information.
Available commands:
- build: Performs a single build on the specified targets and then exits.
- watch: Builds the specified targets, watching the file system for updates and rebuilding as appropriate.
- cache: Commands for manipulating cache.
Available arguments:
- -h, --help: Print out usage instructions.
- -v, --verbose: Enables verbose logs.
- -d, --debug: Enables even more verbose logs.
- -p, --[no]prune: Enable pruning cache directory when pubspec.lock was changed since last build. Defaults true.
- -c, --cache-directory: Provide the directory where this tool can keep the caches.
Cache sub-commands
- prune: Clear cache directory.
- list: List table of files with hash (digest) and their dirty state.
arguments
- -h, --help: Print out usage instructions.
- -v, --verbose: Enables verbose logs.
- -c, --cache-directory: Provide the directory where this tool can keep the caches.
Installation
Add the package to your pubspec.yaml file under dev_dependencies:
dev_dependencies:
build_runner: ^latest_version
cached_build_runner: ^latest_version
Please note that you have to add build_runner as a mandatory dependency in your project for cached_build_runner to work properly.
Replace latest_version with the latest available version of the package.
Original work done by @jyotirmoy-paul.
カテゴリー
使用している依存関係
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗