refactor(project): refactor project modules
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import path from "path";
|
||||
import type { Config } from "../../core/config";
|
||||
|
||||
export class Target {
|
||||
public config: Config;
|
||||
public platform: string;
|
||||
public target: string;
|
||||
|
||||
constructor(config: Config, platform: string) {
|
||||
this.config = config;
|
||||
this.platform = platform;
|
||||
this.target = "target";
|
||||
}
|
||||
|
||||
prepare(): Promise<any> {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
call() {
|
||||
throw "Not Implemented";
|
||||
}
|
||||
|
||||
resolveTargetPath(platform = this.platform): string {
|
||||
return path.resolve(this.target, this.config.name, platform);
|
||||
}
|
||||
|
||||
get targetPath(): string {
|
||||
return this.resolveTargetPath();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user