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

31 lines
652 B
TypeScript

import path from "path";
import { type Config, Platform } from "../../core/type";
export class Target {
public config: Config;
public platform: Platform;
public target: string;
constructor(config: Config, platform: Platform) {
this.config = config;
this.platform = platform;
this.target = "target";
}
prepare(): Promise<any> {
return Promise.resolve();
}
call() {
throw "Not Implemented";
}
resolveTargetPath(platform: Platform | string = this.platform): string {
return path.resolve(this.target, this.config.name, platform);
}
get targetPath(): string {
return this.resolveTargetPath();
}
}