build function
process of build
Implementation
Future<void> build() async {
// Cometプロジェクトかどうか
final cometYaml = readCometYaml();
if (cometYaml == null) {
print('Not found $cometYamlName');
return;
}
// read src-data
ProgressStar.start('read yaml..');
final srcData = await readSrcData(cometYaml);
// create raw-data
final rawData = toRawData(srcData, cometYaml);
// delete old gen-data
ProgressStar.message('gen dart files..');
cleanFolder('${cometYaml.flutterProject.root}/$genRoot');
// write gen-dat
await writeGenData(rawData);
ProgressStar.stop();
}