Refactoring: Move logic around

This commit is contained in:
Artur Gurgul 2025-02-25 09:35:07 +01:00
parent 83fd79f674
commit 61df58cc7b
11 changed files with 123 additions and 99 deletions

7
types/config.d.ts vendored Normal file
View file

@ -0,0 +1,7 @@
export default class ProjectConfig {
config: any;
constructor();
load(): void;
getConfig(): any;
read(): any;
}

6
types/project-config.d.ts vendored Normal file
View file

@ -0,0 +1,6 @@
export default class ProjectConfig {
config: any;
constructor();
load(): void;
read(): any;
}

14
types/project.d.ts vendored
View file

@ -1,3 +1,11 @@
export declare function newProject(): void;
export declare function buildProject(): void;
export declare function appProject(): void;
import ProjectConfig from './project-config.js';
export default class Project {
config: ProjectConfig;
private __filename;
private __dirname;
private DEFAULT_PROJECT_PATH;
constructor();
new(): void;
existing(): void;
build(): void;
}

1
types/site.d.ts vendored
View file

@ -1,2 +1 @@
export declare function readConfig(): any;
export declare function build(config: any): void;

1
types/webdav.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export {};