22 lines
512 B
TypeScript
22 lines
512 B
TypeScript
import connect from "gulp-connect";
|
|
import { Config } from "../../../core/config";
|
|
import { 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);
|