@mdfriday/foundry 26.3.4 → 26.3.5
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/dist/cli.js +560 -500
- package/dist/index.js +1 -1
- package/dist/internal/domain/workspace/entity/workspace.d.ts +3 -1
- package/dist/internal/domain/workspace/repository/file-system.d.ts +4 -0
- package/dist/internal/infrastructure/persistence/node-file-system.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,12 +2,14 @@ import { WorkspaceMetadata } from '../value-object/workspace-metadata';
|
|
|
2
2
|
import { ProjectRegistry } from '../type';
|
|
3
3
|
import { Project } from './project';
|
|
4
4
|
import { Authentication } from './authentication';
|
|
5
|
+
import { FileSystemRepository } from '../repository/file-system';
|
|
5
6
|
export declare class Workspace {
|
|
6
7
|
private readonly rootPath;
|
|
7
8
|
private metadata;
|
|
8
9
|
private projects;
|
|
9
10
|
private authentication;
|
|
10
|
-
|
|
11
|
+
private fileSystemRepo;
|
|
12
|
+
constructor(rootPath: string, metadata: WorkspaceMetadata, projects: Map<string, Project>, authentication: Authentication, fileSystemRepo?: FileSystemRepository);
|
|
11
13
|
getPath(): string;
|
|
12
14
|
getMetadata(): WorkspaceMetadata;
|
|
13
15
|
getId(): string;
|
|
@@ -48,6 +48,10 @@ export interface FileSystemRepository {
|
|
|
48
48
|
mtime: Date;
|
|
49
49
|
}>;
|
|
50
50
|
copyFile(source: string, target: string): Promise<void>;
|
|
51
|
+
readFile(path: string, encoding?: BufferEncoding): Promise<string>;
|
|
52
|
+
writeFile(path: string, content: string, encoding?: BufferEncoding): Promise<void>;
|
|
53
|
+
unlink(path: string): Promise<void>;
|
|
54
|
+
access(path: string): Promise<void>;
|
|
51
55
|
resolvePath(path: string): Promise<string>;
|
|
52
56
|
basename(path: string): string;
|
|
53
57
|
dirname(path: string): string;
|
|
@@ -23,6 +23,10 @@ export declare class NodeFileSystemRepository implements FileSystemRepository {
|
|
|
23
23
|
mtime: Date;
|
|
24
24
|
}>;
|
|
25
25
|
copyFile(source: string, target: string): Promise<void>;
|
|
26
|
+
readFile(filePath: string, encoding?: BufferEncoding): Promise<string>;
|
|
27
|
+
writeFile(filePath: string, content: string, encoding?: BufferEncoding): Promise<void>;
|
|
28
|
+
unlink(filePath: string): Promise<void>;
|
|
29
|
+
access(filePath: string): Promise<void>;
|
|
26
30
|
resolvePath(filePath: string): Promise<string>;
|
|
27
31
|
basename(filePath: string): string;
|
|
28
32
|
dirname(filePath: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdfriday/foundry",
|
|
3
|
-
"version": "26.3.
|
|
3
|
+
"version": "26.3.5",
|
|
4
4
|
"description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|