build method
FutureOr
build({
- required Directory directoryBase,
- required Directory? directoryOutputBuildNotif,
- required String? inputFileName,
- required NotifDartBuildType server_universeDartBuildType,
Implementation
FutureOr<dynamic> build({
required Directory directoryBase,
required Directory? directoryOutputBuildNotif,
required String? inputFileName,
required NotifDartBuildType server_universeDartBuildType,
}) async {
File file_pubspec = File(path.join(directoryBase.path, "pubspec.yaml"));
if (!file_pubspec.existsSync()) {
print("pubspec not found");
return;
}
Map yaml_code = (yaml.loadYaml(file_pubspec.readAsStringSync(), recover: true) as Map);
PubspecNotif pubspec_server_universe = PubspecNotif(yaml_code.clone());
Directory directory_script = Directory(path.join(directoryBase.path, "bin"));
Directory directory_build = Directory(path.join(directoryBase.path, "build"));
if (directory_build.existsSync() == false) {
directory_build.createSync(
recursive: true,
);
}
Directory directory_build_server_universe = Directory(path.join(directory_build.path, "server_universe"));
if (directory_build_server_universe.existsSync() == false) {
directory_build_server_universe.createSync(
recursive: true,
);
}
}