@domain-first/project-structure 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/config-file.d.ts +21 -0
- package/dist/file-system.d.ts +22 -0
- package/dist/index.cjs +950 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +916 -0
- package/dist/project-root.d.ts +4 -0
- package/dist/project-root.spec.d.ts +1 -0
- package/dist/unknown-format-naming.d.ts +9 -0
- package/dist/use-cases/index.d.ts +10 -0
- package/dist/use-cases/initialize.d.ts +1 -0
- package/dist/use-cases/scaffold-new-aggregate.d.ts +2 -0
- package/dist/use-cases/scaffold-new-application-port.d.ts +2 -0
- package/dist/use-cases/scaffold-new-bounded-context.d.ts +1 -0
- package/dist/use-cases/scaffold-new-command.d.ts +2 -0
- package/dist/use-cases/scaffold-new-domain-service.d.ts +2 -0
- package/dist/use-cases/scaffold-new-error.d.ts +2 -0
- package/dist/use-cases/scaffold-new-handlers-rest-endpoint.d.ts +2 -0
- package/dist/use-cases/scaffold-new-query.d.ts +2 -0
- package/dist/use-cases/scaffold-new-use-case.d.ts +2 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 alevnyacow
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
declare const configSchema: z.ZodObject<{
|
|
3
|
+
rootFolder: z.ZodString;
|
|
4
|
+
domainFirstPackages: z.ZodArray<z.ZodEnum<{
|
|
5
|
+
"@domain-first/types": "@domain-first/types";
|
|
6
|
+
"@domain-first/errors": "@domain-first/errors";
|
|
7
|
+
"@domain-first/handlers": "@domain-first/handlers";
|
|
8
|
+
"@domain-first/wire": "@domain-first/wire";
|
|
9
|
+
"@domain-first/handlers-rest": "@domain-first/handlers-rest";
|
|
10
|
+
}>>;
|
|
11
|
+
defaultPersistenceLayerImplementation: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare class ConfigFile {
|
|
14
|
+
readonly data: z.infer<typeof configSchema>;
|
|
15
|
+
private constructor();
|
|
16
|
+
static get Instance(): ConfigFile;
|
|
17
|
+
private static get path();
|
|
18
|
+
static get exists(): boolean;
|
|
19
|
+
static write: (config: z.infer<typeof configSchema>) => void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare class FileSystemItem {
|
|
2
|
+
readonly path: string;
|
|
3
|
+
constructor(path: string);
|
|
4
|
+
subitem: (relativePath: string[]) => this;
|
|
5
|
+
get exists(): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class Folder extends FileSystemItem {
|
|
8
|
+
createIfNotExisted: () => void;
|
|
9
|
+
get content(): {
|
|
10
|
+
subfolderNames: string[];
|
|
11
|
+
fileNames: string[];
|
|
12
|
+
};
|
|
13
|
+
get name(): string;
|
|
14
|
+
createFile: (name: string, content: string) => File;
|
|
15
|
+
file: (name: string) => File;
|
|
16
|
+
}
|
|
17
|
+
export declare class File extends FileSystemItem {
|
|
18
|
+
get data(): string;
|
|
19
|
+
set data(content: string);
|
|
20
|
+
addLine: (newLine: string, separator?: string) => void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|