Skip to content

Commit

Permalink
gen update
Browse files Browse the repository at this point in the history
  • Loading branch information
chen56 committed Apr 24, 2024
1 parent 0d45fc3 commit 0de554d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions bin/notecli.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ class GenAllCommand extends Command {

_log("gen: $dir");
NotesGenerator gen = NotesGenerator(packageBaseName: "flutter_web", fmt: DartFormatter(pageWidth: 500), fs: fs, projectDir: dir);

await gen.gen();
var notes = await gen._genAll_note_g_dart();
await gen._genSpaceJson(notes);
await gen._genNoteGenConf(notes);
await gen._gen_notes_g_dart(notes.map((e) => e.noteLib).toList());
}
}

Expand All @@ -79,14 +81,6 @@ class NotesGenerator {
noteRootDir = projectDir.childDirectory(_notesRoot);
}

Future<void> gen() async {
// TODO 130 remove
var notes = await _genAll_note_g_dart();
await _genSpaceJson(notes);
await _genNoteGenConf(notes);
await _gen_notes_g_dart(notes.map((e) => e.noteLib).toList());
}

Stream<WatchEvent> watch() async* {
var watcher = DirectoryWatcher(noteRootDir.path);
await for (WatchEvent e in watcher.events) {
Expand Down

0 comments on commit 0de554d

Please sign in to comment.