package library

Run the CI steps of a package or of a tree (packageRunCi, PackageRunCiOptions), find the packages of a folder tree (recursivePubPath, iteratePubPath, recursivePackagesRun) and read or bump a package version (DartPackageIo). io only.

import 'package:dev_build/package.dart';

Future<void> main() async {
  await packageRunCi('.');
}

Classes

DartPackage
Dart package.
DartPackageIo
Io base implementation.
DartPackageIoCompiledExe
Compile exe info
DartPackageReader
Dart package reader.
FilterDartProjectOptions
Filter dart project options
IteratePubPathOptions
Options for iteratePubPath.
PackageRunCiOptions
The steps and settings of packageRunCi, one field per run_ci flag (noTest is --no-test, analyzeOnly is --analyze).
PubGlobalGitPackage
Global package from git.
PubGlobalGitPackageInstall
Global package from git for installation.
PubGlobalHostedPackage
pub.dartlang.org hosted package
PubGlobalHostedPackageInstall
Hosted package with install constraint
PubGlobalPackage
Global package definition.
PubGlobalPackageService
Service to manage pub global packages
PubGlobalPathPackage
Global package from path.
PubGlobalPathPackageInstall
Global package from git for installation.
SinglePackageCiRunner
CiRunner helper
Version
A parsed semantic version number.
VersionBoundaries
Version boundaries.
VersionBoundary
Version boundary.
VersionConstraint
A VersionConstraint is a predicate that can determine whether a given version is valid or not.
VersionRange
Constrains versions to a fall within a given range.
VersionUnion
A version constraint representing a union of multiple disjoint version ranges.

Extensions

DartPackageIoCompileExeExt on DartPackageIo
Compile exe extension
DartPackageIoExt on DartPackageIo
Io base implementation.
DartPackageReaderExt on DartPackageReader
Dart package reader extension.
DartPackageWriterExt on DartPackage
Dart package.
FilterDartProjectOptionsExt on FilterDartProjectOptions
Filter dart project options extension.

Functions

checkOrPubActivateHostedPackage(String name, {bool? verbose, VersionBoundaries? versionBoundaries}) → Future<void>
Check or
ioPackageRunCi(String path) → Future<void>
Kept for compatibility
iteratePubPath(List<String> dirs, {IteratePubPathOptions? options, required IteratePubPathHandler onPubPath}) → Future<void>
Iterate over the pub packages found in dirs.
packageRunCi(String path, {PackageRunCiOptions? options, bool? recursive, bool? noFormat, bool? noAnalyze, bool? noTest, bool? noBuild, bool? noPubGet, bool? verbose, bool? pubUpgrade, int? poolSize, bool? noPubWorkspaceCache}) → Future<void>
Runs the CI steps (pub get, format check, analyze, tests, web build) of the dart or flutter package in path, as the run_ci executable does.
recursivePackagesRun(List<String> paths, {required FutureOr action(String package), bool? verbose, int? poolSize, List<String>? dependencies, FilterDartProjectOptions? filterDartProjectOptions}) → Future<void>
Each path is tested
recursivePubPath(List<String> dirs, {List<String>? dependencies, bool? readConfig, FilterDartProjectOptions? filterDartProjectOptions}) → Future<List<String>>
The pub packages found in dirs and below them (dirs included), sorted, without duplicates.
runCiInitPubWorkspacesCache() → void
Internal only use for run_ci binary for now

Typedefs

IteratePubPathHandler = FutureOr<bool> Function(String pubPath)
Pub path handler. Return true to continue, false to stop the iteration.