build_targets library

The extension point for build targets the CLI does not build itself.

See DVBuildTarget for the contract and the README section "Build targets from a package" for how a project gets one.

Classes

DVBuildOptions
The options dartvel build was given.
DVBuildTarget
A build target provided by a package rather than by the CLI.
DVBuildTargetContext
What a DVBuildTarget is handed: the project, the options, and the parts of the CLI's own pipeline it may use.
DVBuildTargets
The targets registered in this process.
DVPlatformVariant
A free platform's pipeline, adjusted for a target that rides on it.
DVRuntimePackage
A package in the project's dependencies that provides runtimes.
DVTargetPackage
A package in the project's dependencies that provides build targets.
ToolRequirement
A single tool a platform needs before dartvel build <platform> can work.

Enums

DVBuildTargetResult
How a target build ended.
DVPlatformStep
A step of a free platform's pipeline that a DVPlatformVariant can leave out. Leaving one out takes back out whatever an earlier build of the platform wrote for it, so the variant's build never carries it.
DVRenderBackend
A rendering backend linked into a build.
InstallMethod
How a missing build tool can be obtained.

Constants

dvFreeTargetNames → const Set<String>
Every target name the CLI builds itself.
dvPaidRuntimes → const Map<String, String>
Runtimes that need a paid Dartvel Cloud plan, each with what it is.
dvPaidTargetAliases → const Map<String, String>
The second name of each paid target that has one, and the name Dartvel Cloud knows it by. -tui says what a terminal build does and -cli where it runs; they are one target.
dvPaidTargets → const Map<String, String>
Targets that need a paid Dartvel Cloud plan, each with what it builds.
dvRuntimeManifestFile → const String
The manifest a runtime package carries at its root.
dvRuntimesProPackage → const String
The package that implements dvPaidRuntimes.
dvTargetManifestFile → const String
The manifest a target package carries at its root.
dvTargetsProPackage → const String
The package that implements dvPaidTargets.

Functions

dartvelToolchainRoot(String home) → String
Where Dartvel installs toolchains it manages itself.
dvIsPackageTarget(String name) → bool
Whether name is a paid target or one a package registered.
dvReadRuntimeManifest(String name, String root) → DVRuntimePackage?
The manifest of the package name at root, or null when it has none or it is not one Dartvel can read.
dvReadTargetManifest(String name, String root) → DVTargetPackage?
The manifest of the package name at root, or null when it has none or it is not one Dartvel can read.
dvRunWithTargets(List<String> arguments, List<DVBuildTarget> targets) → Future<void>
Registers targets and runs the Dartvel CLI with arguments.
dvTargetRefusal(String target) → String
What dartvel build <target> says when target is a paid target and no package that provides it is installed.
resolveToolchainHome() → String
The directory Dartvel-managed toolchains are installed under.