BootstrapCommandConfigs class

Configurations for melos bootstrap.

Annotations
  • @immutable

Constructors

BootstrapCommandConfigs({bool runPubGetInParallel = true, bool runPubGetOffline = false, bool enforceLockfile = false, Environment? environment, Map<String, DependencyReference>? dependencies, Map<String, DependencyReference>? devDependencies, List<Glob> dependencyOverridePaths = const [], LifecycleHooks hooks = LifecycleHooks.empty})
const
BootstrapCommandConfigs.fromYaml(Map<Object?, Object?> yaml, {required String workspacePath})
factory

Properties

dependencies Map<String, DependencyReference>?
Dependencies to be synced between all packages.
final
dependencyOverridePaths List<Glob>
A list of Globs for paths that contain packages to be used as dependency overrides for all packages managed in the Melos workspace.
final
devDependencies Map<String, DependencyReference>?
Dev dependencies to be synced between all packages.
final
enforceLockfile bool
Whether pubspec.lock is enforced when running pub get or not. Useful when you want to ensure the same versions of dependencies are used across different environments/machines.
final
environment → Environment?
Environment configuration to be synced between all packages.
final
hashCode int
The hash code for this object.
no setteroverride
hooks → LifecycleHooks
Lifecycle hooks for this command.
final
runPubGetInParallel bool
Whether to run pub get in parallel during bootstrapping.
final
runPubGetOffline bool
Whether to attempt to run pub get in offline mode during bootstrapping. Useful in closed network environments with pre-populated pubcaches.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

empty → const BootstrapCommandConfigs