Files
gulp-haxetool/src/project/impl/runner/html5.ts
T
shmyga 6940c65b88
test / test (push) Successful in 2m13s
feat: add task module
2026-11-11 21:34:11 +03:00

21 lines
479 B
TypeScript

import connect from "gulp-connect";
import { type Config, Platform } from "../../../core/type";
import { Runner } from "../../core/runner";
export class Html5Runner extends Runner {
constructor(config: Config, debug?: boolean) {
super(config, Platform.HTML5, debug);
}
call() {
return connect.server({
root: this.targetPath,
host: "0.0.0.0",
port: 3000,
fallback: "index.html",
});
}
}
Runner.register(Platform.HTML5, Html5Runner);