@mdfriday/foundry 26.2.13 → 26.3.2
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 +54507 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/internal/application/identity.d.ts +90 -0
- package/dist/internal/application/incremental-build-coordinator.d.ts +1 -0
- package/dist/internal/application/publish.d.ts +28 -0
- package/dist/internal/application/workspace.d.ts +29 -0
- package/dist/internal/domain/identity/entity/user.d.ts +55 -0
- package/dist/internal/domain/identity/factory/user-factory.d.ts +153 -0
- package/dist/internal/domain/identity/index.d.ts +9 -0
- package/dist/internal/domain/identity/repository/index.d.ts +31 -0
- package/dist/internal/domain/identity/type.d.ts +19 -0
- package/dist/internal/domain/identity/value-object/device.d.ts +21 -0
- package/dist/internal/domain/identity/value-object/email.d.ts +12 -0
- package/dist/internal/domain/identity/value-object/license.d.ts +63 -0
- package/dist/internal/domain/identity/value-object/server-config.d.ts +21 -0
- package/dist/internal/domain/identity/value-object/token.d.ts +21 -0
- package/dist/internal/domain/publish/entity/publisher.d.ts +24 -0
- package/dist/internal/domain/publish/factory/publisher-factory.d.ts +13 -0
- package/dist/internal/domain/publish/index.d.ts +10 -0
- package/dist/internal/domain/publish/repository/http-client.d.ts +14 -0
- package/dist/internal/domain/publish/repository/manifest-repository.d.ts +7 -0
- package/dist/internal/domain/publish/type.d.ts +59 -0
- package/dist/internal/domain/publish/value-object/ftp-publisher.d.ts +22 -0
- package/dist/internal/domain/publish/value-object/mdfriday-publisher.d.ts +28 -0
- package/dist/internal/domain/publish/value-object/netlify-publisher.d.ts +28 -0
- package/dist/internal/domain/publish/value-object/publish-config.d.ts +36 -0
- package/dist/internal/domain/publish/value-object/publish-manifest.d.ts +38 -0
- package/dist/internal/domain/workspace/entity/authentication.d.ts +11 -0
- package/dist/internal/domain/workspace/entity/project.d.ts +77 -0
- package/dist/internal/domain/workspace/entity/workspace.d.ts +49 -0
- package/dist/internal/domain/workspace/factory/workspace-factory.d.ts +57 -0
- package/dist/internal/domain/workspace/index.d.ts +9 -0
- package/dist/internal/domain/workspace/repository/file-system.d.ts +55 -0
- package/dist/internal/domain/workspace/repository/index.d.ts +2 -0
- package/dist/internal/domain/workspace/repository.d.ts +52 -0
- package/dist/internal/domain/workspace/type.d.ts +41 -0
- package/dist/internal/domain/workspace/value-object/folder-structure.d.ts +27 -0
- package/dist/internal/domain/workspace/value-object/project-metadata.d.ts +62 -0
- package/dist/internal/domain/workspace/value-object/workspace-metadata.d.ts +61 -0
- package/dist/internal/infrastructure/http/netlify-http-client.d.ts +8 -0
- package/dist/internal/infrastructure/http/node-http-client.d.ts +7 -0
- package/dist/internal/infrastructure/index.d.ts +6 -0
- package/dist/internal/infrastructure/persistence/node-file-system.d.ts +30 -0
- package/dist/internal/infrastructure/persistence/node-manifest-repository.d.ts +11 -0
- package/dist/internal/infrastructure/persistence/node-snapshot-repository.d.ts +12 -0
- package/dist/internal/infrastructure/persistence/node-workspace-repository.d.ts +20 -0
- package/dist/internal/interfaces/cli/commands/auth.d.ts +121 -0
- package/dist/internal/interfaces/cli/commands/build.d.ts +10 -0
- package/dist/internal/interfaces/cli/commands/config.d.ts +42 -0
- package/dist/internal/interfaces/cli/commands/index.d.ts +6 -0
- package/dist/internal/interfaces/cli/commands/project.d.ts +36 -0
- package/dist/internal/interfaces/cli/commands/publish.d.ts +27 -0
- package/dist/internal/interfaces/cli/commands/serve.d.ts +16 -0
- package/dist/internal/interfaces/cli/commands/snapshot.d.ts +25 -0
- package/dist/internal/interfaces/cli/commands/workspace.d.ts +16 -0
- package/dist/internal/interfaces/cli/container.d.ts +7 -0
- package/dist/internal/interfaces/cli/index.d.ts +4 -0
- package/dist/internal/interfaces/cli/router.d.ts +27 -0
- package/dist/internal/interfaces/cli/types.d.ts +52 -0
- package/dist/internal/interfaces/obsidian/container.d.ts +4 -0
- package/dist/internal/interfaces/obsidian/index.d.ts +2 -0
- package/dist/internal/interfaces/obsidian/workspace.d.ts +38 -0
- package/dist/pkg/progress-bar.d.ts +20 -0
- package/dist/worker/pool-manager.js +3 -2
- package/dist/worker/worker-node.js +3 -2
- package/package.json +10 -2
|
@@ -116,6 +116,7 @@ var init_logger = __esm({
|
|
|
116
116
|
entry.caller = caller;
|
|
117
117
|
}
|
|
118
118
|
const output = this.config.jsonFormat ? JSON.stringify(entry) : this.formatPlainText(entry);
|
|
119
|
+
console.log(output);
|
|
119
120
|
if (level === "error" /* ERROR */ || level === "fatal" /* FATAL */) {
|
|
120
121
|
process.stderr.write(output + "\n");
|
|
121
122
|
} else {
|
|
@@ -202,7 +203,7 @@ var init_manager = __esm({
|
|
|
202
203
|
loggers;
|
|
203
204
|
constructor() {
|
|
204
205
|
this.globalConfig = {
|
|
205
|
-
level: "
|
|
206
|
+
level: "debug" /* DEBUG */,
|
|
206
207
|
enableCaller: true,
|
|
207
208
|
jsonFormat: true
|
|
208
209
|
};
|
|
@@ -12899,7 +12900,7 @@ var init_cache = __esm({
|
|
|
12899
12900
|
return JSON.parse(content);
|
|
12900
12901
|
} catch (error) {
|
|
12901
12902
|
if (error.message?.includes("ENOENT") || error.message?.includes("no such file")) {
|
|
12902
|
-
log4.
|
|
12903
|
+
log4.info(`Cache miss: ${modulePath}`, error);
|
|
12903
12904
|
return null;
|
|
12904
12905
|
}
|
|
12905
12906
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -116,6 +116,7 @@ var init_logger = __esm({
|
|
|
116
116
|
entry.caller = caller;
|
|
117
117
|
}
|
|
118
118
|
const output = this.config.jsonFormat ? JSON.stringify(entry) : this.formatPlainText(entry);
|
|
119
|
+
console.log(output);
|
|
119
120
|
if (level === "error" /* ERROR */ || level === "fatal" /* FATAL */) {
|
|
120
121
|
process.stderr.write(output + "\n");
|
|
121
122
|
} else {
|
|
@@ -202,7 +203,7 @@ var init_manager = __esm({
|
|
|
202
203
|
loggers;
|
|
203
204
|
constructor() {
|
|
204
205
|
this.globalConfig = {
|
|
205
|
-
level: "
|
|
206
|
+
level: "debug" /* DEBUG */,
|
|
206
207
|
enableCaller: true,
|
|
207
208
|
jsonFormat: true
|
|
208
209
|
};
|
|
@@ -12899,7 +12900,7 @@ var init_cache = __esm({
|
|
|
12899
12900
|
return JSON.parse(content);
|
|
12900
12901
|
} catch (error) {
|
|
12901
12902
|
if (error.message?.includes("ENOENT") || error.message?.includes("no such file")) {
|
|
12902
|
-
log4.
|
|
12903
|
+
log4.info(`Cache miss: ${modulePath}`, error);
|
|
12903
12904
|
return null;
|
|
12904
12905
|
}
|
|
12905
12906
|
const message = error instanceof Error ? error.message : String(error);
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdfriday/foundry",
|
|
3
|
-
"version": "26.2
|
|
3
|
+
"version": "26.3.2",
|
|
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",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mdf": "./dist/cli.js"
|
|
9
|
+
},
|
|
7
10
|
"private": false,
|
|
8
11
|
"files": [
|
|
9
12
|
"dist",
|
|
@@ -19,7 +22,11 @@
|
|
|
19
22
|
"lint": "eslint . --ext .ts",
|
|
20
23
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
21
24
|
"clean": "rimraf dist",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"cli:link": "npm link",
|
|
27
|
+
"cli:unlink": "npm unlink -g @mdfriday/foundry",
|
|
28
|
+
"cli:test": "node dist/cli.js",
|
|
29
|
+
"dev": "npm run build && npm run cli:link"
|
|
23
30
|
},
|
|
24
31
|
"keywords": [
|
|
25
32
|
"markdown",
|
|
@@ -62,6 +69,7 @@
|
|
|
62
69
|
"@mdfriday/text-template": "^0.2.6",
|
|
63
70
|
"@types/js-yaml": "^4.0.9",
|
|
64
71
|
"@types/markdown-it": "^13.0.7",
|
|
72
|
+
"basic-ftp": "^5.2.0",
|
|
65
73
|
"chokidar": "^4.0.3",
|
|
66
74
|
"github-slugger": "^2.0.0",
|
|
67
75
|
"hast": "^1.0.0",
|