Files
gulp-haxetool/src/project/impl/runner/neko.ts
T
shmyga 2605c1bbc8
test / test (push) Failing after 5m32s
refactor(preset): rework preset
2026-10-29 20:35:53 +03:00

27 lines
688 B
TypeScript

import path from "path";
import { type Config, Platform } from "../../../core/type";
import { Neko } from "../../../impl/neko";
import { Runner } from "../../core/runner";
export class NekoRunner extends Runner {
public neko: Neko;
constructor(config: Config, debug: boolean) {
super(config, Platform.NEKO, debug);
this.neko = new Neko();
}
prepare() {
return this.neko.prepare();
}
call() {
const target = this.targetPath;
const filename = path.resolve(target, this.config.meta.filename + ".n");
const result = this.neko.run(filename, { cwd: target, verbosity: 0 });
return this.log(result);
}
}
Runner.register(Platform.NEKO, NekoRunner);