gg_clone_dependencies library
Classes
- CloneDependencies
- Clone all dependencies of the project
Functions
-
correctDir(
Directory directory) → Directory - Helper method to correct a directory
-
dependencyExists(
{required Directory dependencyDir, required String dependency, GgLog? ggLog}) → Future< bool> - Check if the dependency already exists in the workspace
-
getDependencies(
Directory projectDir) → Future< List< MapEntry< >String, Dependency> > - Get the dependencies from the pubspec.yaml file
-
getPackageName(
Directory projectDir) → String - Get the package name from the pubspec.yaml file
-
getProjectDir(
{required String packageName, required Directory workspaceDir}) → Directory? - Get the project directory
-
getPubspecYaml(
Directory projectDir) → Pubspec - Get the pubspec.yaml file
-
getRepositoryUrl(
String packageName) → Future< String?> - Fetches the GitHub repository URL of a package from pub.dev.
-
pubspecExists(
Directory projectDir) → bool - Check if the pubspec.yaml file exists