MelosWorkspaceConfig class

Annotations
  • @immutable

Constructors

MelosWorkspaceConfig({required String path, required String name, String? sdkPath, HostedGitRepository? repository, required List<Glob> packages, List<Glob> ignore = const [], Scripts scripts = Scripts.empty, IDEConfigs ide = IDEConfigs.empty, CommandConfigs commands = CommandConfigs.empty})
MelosWorkspaceConfig.empty()
MelosWorkspaceConfig.fromYaml(Map<Object?, Object?> yaml, {required String path})
factory

Properties

commands → CommandConfigs
Command-specific configurations.
final
hashCode int
The hash code for this object.
no setteroverride
ide IDEConfigs
IDE-specific configurations.
final
ignore List<Glob>
A list of Globs for paths that should be excluded from the search for packages.
final
name String
The name of the melos workspace – used by IDE documentation.
final
packages List<Glob>
A list of Globs for paths that should be searched for packages.
final
path String
The absolute path to the workspace folder.
final
repository → HostedGitRepository?
The hosted git repository which contains the workspace.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scripts Scripts
A list of scripts that can be executed with melos run or will be executed before/after some specific melos commands.
final
sdkPath String?
Path to the Dart/Flutter SDK that should be used, unless overridden though the command line option or the environment variable.
final

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
validatePhysicalWorkspace() → void
Validates the physical workspace on the file system.

Operators

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

Static Methods

fromWorkspaceRoot(Directory workspaceRoot) Future<MelosWorkspaceConfig>
Loads the MelosWorkspaceConfig for the workspace at workspaceRoot.
handleWorkspaceNotFound(Directory current) Future<Never>
Handles the case where a workspace could not be found in the current or a parent directory by throwing an error with a helpful message.