FLUTTER ECOSYSTEM

netglade/cached_build_runner

변경되지 않은 .dart 파일에 대해 생성된 코드를 캐시함으로써 build_runner를 최적화하는 데 도움을 줍니다

cached_build_runner 프로젝트 이미지
Stars
19
Forks
10
최근 푸시(UTC)
2024. 5. 5.
프로젝트 상태
활성
NetGlade GitHub avatar
GITHUB Organization

NetGlade ↗

Flutter & Web Apps enthusiasts

언어Dart

기술 주제

사용 중인 의존성

의존성 목록 12 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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.