fromPackageDir static method
Returns a parsed BuildConfig file in path
, if one exist, otherwise a
default config.
path
must be a directory which contains a pubspec.yaml
file and
optionally a build.yaml
.
Implementation
static Future<BuildConfig> fromPackageDir(String path) async {
final pubspec = await _fromPackageDir(path);
return fromBuildConfigDir(pubspec.name, pubspec.dependencies.keys, path);
}