Refactoring: Move logic around
This commit is contained in:
parent
83fd79f674
commit
61df58cc7b
11 changed files with 123 additions and 99 deletions
7
types/config.d.ts
vendored
Normal file
7
types/config.d.ts
vendored
Normal 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
6
types/project-config.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
export default class ProjectConfig {
|
||||
config: any;
|
||||
constructor();
|
||||
load(): void;
|
||||
read(): any;
|
||||
}
|
14
types/project.d.ts
vendored
14
types/project.d.ts
vendored
|
@ -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
1
types/site.d.ts
vendored
|
@ -1,2 +1 @@
|
|||
export declare function readConfig(): any;
|
||||
export declare function build(config: any): void;
|
||||
|
|
1
types/webdav.d.ts
vendored
Normal file
1
types/webdav.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
Loading…
Add table
Add a link
Reference in a new issue