feat(ruffle): add alternative ruffle flash target runner

This commit is contained in:
2026-05-15 21:55:38 +03:00
parent 715f6807d8
commit 8c8be1ff89
8 changed files with 114 additions and 12 deletions

View File

@@ -13,7 +13,14 @@ class TailVinyl extends Vinyl {
super(params);
if (params.path) {
this.tail = new Tail(params.path);
this.tail.on('line', data => this.contents.write(data + '\n'));
this.tail.on('line', line => {
if (params.handler) {
line = params.handler(line);
}
if (line) {
this.contents.write(line + '\n');
}
}),
this.tail.on('error', error => this.contents.write('error: ' + error));
}
}