build_runner_core
library
Constants
-
cacheDir
→ const String
-
Relative path to the cache directory from the root package dir.
-
entryPointDir
→ const String
-
Directory containing automatically generated build entrypoints.
Properties
-
assetGraphPath
→ String
-
Relative path to the asset graph from the root package dir.
final
-
dartBinary
→ String
-
The dart binary from the current sdk.
final
-
pubBinary
→ String
-
The name of the pub binary on the current platform.
final
-
sdkBin
→ String
-
The path to the sdk bin directory on the current platform.
final
Functions
-
apply(String builderKey, List<BuilderFactory> builderFactories, PackageFilter filter, {bool isOptional = false, bool hideOutput = true, InputSet defaultGenerateFor = const InputSet(), BuilderOptions defaultOptions = BuilderOptions.empty, BuilderOptions? defaultDevOptions, BuilderOptions? defaultReleaseOptions, Iterable<String> appliesBuilders = const []})
→ BuilderApplication
-
Apply each builder from
builderFactories
to the packages matching
filter
.
-
applyPostProcess(String builderKey, PostProcessBuilderFactory builderFactory, {InputSet defaultGenerateFor = const InputSet(), BuilderOptions defaultOptions = BuilderOptions.empty, BuilderOptions? defaultDevOptions, BuilderOptions? defaultReleaseOptions})
→ BuilderApplication
-
Same as apply except it takes
PostProcessBuilderFactory
s.
-
applyToRoot(Builder builder, {bool isOptional = false, bool hideOutput = false, InputSet generateFor = const InputSet()})
→ BuilderApplication
-
Apply
builder
to the root package.
-
assetGraphPathFor(String path)
→ String
-
Relative path to the asset graph for a build script at
path
-
humanReadable(Duration duration)
→ String
-
Returns a human readable string for a duration.
-
logTimedAsync<T>(Logger logger, String description, Future<T> action(), {Level level = Level.INFO})
→ Future<T>
-
Logs an asynchronous
action
with description
before and after.
-
logTimedSync<T>(Logger logger, String description, T action(), {Level level = Level.INFO})
→ T
-
Logs a synchronous
action
with description
before and after.
-
overrideGeneratedOutputDirectory(String path)
→ void
-
Overrides the generated directory name.
-
toAll(Iterable<PackageFilter> filters)
→ PackageFilter
-
Run a builders if the package matches any of
filters
-
toAllPackages()
→ PackageFilter
-
Run a builder on all packages in the package graph.
-
toDependentsOf(String packageName)
→ PackageFilter
-
Run a builder on all packages with an immediate dependency on
packageName
.
-
toNoneByDefault()
→ PackageFilter
-
Require manual configuration to opt in to a builder.
-
toPackage(String package)
→ PackageFilter
-
Run a builder on a single package.
-
toPackages(Set<String> packages)
→ PackageFilter
-
Run a builder on a collection of packages.
-
toRoot()
→ PackageFilter
-
Typedefs
-
OnDelete
= void Function(AssetId id)
-