@mdfriday/foundry 0.1.0 → 0.1.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/README.md +7 -0
- package/dist/internal/application/ssg.d.ts.map +1 -1
- package/dist/internal/application/ssg.js +9 -10
- package/dist/internal/application/ssg.js.map +1 -1
- package/dist/internal/application/test-ssg.js +1 -1
- package/dist/internal/domain/config/entity/config.d.ts +1 -1
- package/dist/internal/domain/config/entity/language.js +1 -1
- package/dist/internal/domain/config/entity/module.js +1 -1
- package/dist/internal/domain/config/entity/root.js +1 -1
- package/dist/internal/domain/config/entity/service.js +1 -1
- package/dist/internal/domain/config/entity/taxonomy.js +1 -1
- package/dist/internal/domain/config/factory/config.d.ts +1 -1
- package/dist/internal/domain/config/factory/sourcedescriptor.d.ts +1 -1
- package/dist/internal/domain/content/entity/content.js +3 -3
- package/dist/internal/domain/content/entity/converter.d.ts +2 -2
- package/dist/internal/domain/content/entity/page.d.ts +8 -8
- package/dist/internal/domain/content/entity/page.js +5 -5
- package/dist/internal/domain/content/entity/pagebuilder.js +2 -2
- package/dist/internal/domain/content/entity/pagecollector.d.ts +1 -1
- package/dist/internal/domain/content/entity/pagecollector.d.ts.map +1 -1
- package/dist/internal/domain/content/entity/pagecollector.js +2 -2
- package/dist/internal/domain/content/entity/pagecollector.js.map +1 -1
- package/dist/internal/domain/content/entity/pagecontent.d.ts +1 -1
- package/dist/internal/domain/content/entity/pagemap.d.ts.map +1 -1
- package/dist/internal/domain/content/entity/pagemap.js +2 -2
- package/dist/internal/domain/content/entity/pagemap.js.map +1 -1
- package/dist/internal/domain/content/entity/pagemeta.d.ts +1 -1
- package/dist/internal/domain/content/entity/pageoutput.d.ts +3 -3
- package/dist/internal/domain/content/entity/pageoutput.d.ts.map +1 -1
- package/dist/internal/domain/content/entity/pageoutput.js +1 -1
- package/dist/internal/domain/content/entity/pageoutput.js.map +1 -1
- package/dist/internal/domain/content/entity/pagesource.js +2 -2
- package/dist/internal/domain/content/entity/pagetrees.d.ts +1 -1
- package/dist/internal/domain/content/entity/pagetrees.js +1 -1
- package/dist/internal/domain/content/entity/paginator.d.ts +1 -1
- package/dist/internal/domain/content/entity/section.d.ts +1 -1
- package/dist/internal/domain/content/entity/section.d.ts.map +1 -1
- package/dist/internal/domain/content/entity/section.js +2 -2
- package/dist/internal/domain/content/entity/section.js.map +1 -1
- package/dist/internal/domain/content/entity/shifter.d.ts +1 -1
- package/dist/internal/domain/content/entity/shifter.js +1 -1
- package/dist/internal/domain/content/entity/shifterpage.d.ts +1 -1
- package/dist/internal/domain/content/entity/shifterpage.js +1 -1
- package/dist/internal/domain/content/entity/shifterpagesource.d.ts +1 -1
- package/dist/internal/domain/content/entity/shifterpagesource.js +1 -1
- package/dist/internal/domain/content/entity/shortcode.d.ts +1 -1
- package/dist/internal/domain/content/entity/shortcode.js +1 -1
- package/dist/internal/domain/content/entity/standalone.d.ts +1 -1
- package/dist/internal/domain/content/entity/taxonomy.d.ts +1 -1
- package/dist/internal/domain/content/entity/term.d.ts +1 -1
- package/dist/internal/domain/content/entity/term.js +2 -2
- package/dist/internal/domain/content/factory/hub.js +1 -1
- package/dist/internal/domain/content/type.d.ts +4 -4
- package/dist/internal/domain/content/vo/fileinfo.d.ts +1 -1
- package/dist/internal/domain/content/vo/fileinfo.d.ts.map +1 -1
- package/dist/internal/domain/content/vo/fileinfo.js.map +1 -1
- package/dist/internal/domain/content/vo/frontmatter.js +3 -3
- package/dist/internal/domain/fs/entity/basefs.js +5 -5
- package/dist/internal/domain/fs/entity/fs.d.ts +1 -1
- package/dist/internal/domain/fs/entity/fs.js +3 -3
- package/dist/internal/domain/fs/entity/overlaydir.js +1 -1
- package/dist/internal/domain/fs/entity/overlayfs.d.ts +1 -1
- package/dist/internal/domain/fs/entity/overlayfs.js +2 -2
- package/dist/internal/domain/fs/factory/fs.js +1 -1
- package/dist/internal/domain/fs/vo/filesystemscollector.js +1 -1
- package/dist/internal/domain/fs/vo/filevitural.d.ts +1 -1
- package/dist/internal/domain/fs/vo/filevitural.js +2 -2
- package/dist/internal/domain/fs/vo/osfs.js +1 -1
- package/dist/internal/domain/fs/vo/overlay-factory.d.ts +1 -1
- package/dist/internal/domain/fs/vo/overlay-factory.js +1 -1
- package/dist/internal/domain/fs/vo/static-copier.js +1 -1
- package/dist/internal/domain/fs/vo/walkway.js +1 -1
- package/dist/internal/domain/markdown/entity/markdown.js +1 -1
- package/dist/internal/domain/markdown/examples/shortcode.d.ts +1 -1
- package/dist/internal/domain/markdown/examples/shortcode.js +1 -1
- package/dist/internal/domain/markdown/type.d.ts +1 -1
- package/dist/internal/domain/markdown/vo/content.d.ts +3 -3
- package/dist/internal/domain/markdown/vo/content.js +1 -1
- package/dist/internal/domain/markdown/vo/markdownit.js +1 -1
- package/dist/internal/domain/markdown/vo/pageparser.d.ts +2 -2
- package/dist/internal/domain/markdown/vo/pageparser.js +2 -2
- package/dist/internal/domain/markdown/vo/parseinfo.d.ts +2 -2
- package/dist/internal/domain/markdown/vo/parseinfo.js +3 -3
- package/dist/internal/domain/markdown/vo/shortcode.d.ts +3 -3
- package/dist/internal/domain/markdown/vo/shortcode.js +1 -1
- package/dist/internal/domain/module/entity/module.js +1 -1
- package/dist/internal/domain/module/factory/module.js +1 -1
- package/dist/internal/domain/module/vo/cache.js +1 -1
- package/dist/internal/domain/module/vo/httpclient.js +1 -1
- package/dist/internal/domain/module/vo/zipextractor.d.ts +1 -1
- package/dist/internal/domain/module/vo/zipextractor.js +1 -1
- package/dist/internal/domain/resources/entity/integrity.js +1 -1
- package/dist/internal/domain/resources/entity/minifier.js +1 -1
- package/dist/internal/domain/resources/entity/publisher.js +1 -1
- package/dist/internal/domain/resources/entity/resource.d.ts +3 -3
- package/dist/internal/domain/resources/entity/resource.js +3 -3
- package/dist/internal/domain/resources/entity/resources.js +3 -3
- package/dist/internal/domain/resources/entity/template.js +1 -1
- package/dist/internal/domain/resources/type.d.ts +2 -2
- package/dist/internal/domain/site/entity/menu-builder.js +1 -1
- package/dist/internal/domain/site/entity/navigation.d.ts.map +1 -1
- package/dist/internal/domain/site/entity/navigation.js +1 -1
- package/dist/internal/domain/site/entity/navigation.js.map +1 -1
- package/dist/internal/domain/site/entity/page.d.ts +12 -12
- package/dist/internal/domain/site/entity/page.js +1 -1
- package/dist/internal/domain/site/entity/pager.d.ts +2 -2
- package/dist/internal/domain/site/entity/ref.js +1 -1
- package/dist/internal/domain/site/entity/site.d.ts +2 -2
- package/dist/internal/domain/site/entity/site.js +2 -2
- package/dist/internal/domain/site/entity/taxonomies-builder.d.ts +1 -1
- package/dist/internal/domain/site/entity/taxonomies-builder.js +1 -1
- package/dist/internal/domain/site/factory/navigation-factory.js +1 -1
- package/dist/internal/domain/site/factory/site.js +1 -1
- package/dist/internal/domain/site/valueobject/menu.js +1 -1
- package/dist/internal/domain/template/entity/parser.js +1 -1
- package/dist/internal/domain/template/entity/template.js +1 -1
- package/dist/internal/domain/template/type.d.ts +1 -1
- package/dist/internal/domain/template/vo/registry.js +1 -1
- package/dist/pkg/types/types.js +1 -1
- package/package.json +4 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ResourceImpl = exports.PublishOnce = exports.ResourceHash = void 0;
|
|
4
|
-
const resources_1 = require("
|
|
4
|
+
const resources_1 = require("../../../domain/resources");
|
|
5
5
|
const crypto_1 = require("crypto");
|
|
6
6
|
const stream_1 = require("stream");
|
|
7
|
-
const paths_1 = require("
|
|
7
|
+
const paths_1 = require("../../../domain/paths");
|
|
8
8
|
const promises_1 = require("stream/promises");
|
|
9
|
-
const log_1 = require("
|
|
9
|
+
const log_1 = require("../../../../pkg/log");
|
|
10
10
|
const log = (0, log_1.getDomainLogger)('resources', { component: 'publisher' });
|
|
11
11
|
class ResourceHash {
|
|
12
12
|
constructor() {
|
|
@@ -35,15 +35,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Resources = void 0;
|
|
37
37
|
const resource_1 = require("./resource");
|
|
38
|
-
const resources_1 = require("
|
|
38
|
+
const resources_1 = require("../../../domain/resources");
|
|
39
39
|
const minifier_1 = require("./minifier");
|
|
40
40
|
const integrity_1 = require("./integrity");
|
|
41
41
|
const template_1 = require("./template");
|
|
42
42
|
const publisher_1 = require("./publisher");
|
|
43
|
-
const type_1 = require("
|
|
43
|
+
const type_1 = require("../../../../pkg/media/type");
|
|
44
44
|
const path = __importStar(require("path"));
|
|
45
45
|
const crypto_1 = require("crypto");
|
|
46
|
-
const log_1 = require("
|
|
46
|
+
const log_1 = require("../../../../pkg/log");
|
|
47
47
|
const log = (0, log_1.getDomainLogger)('resources', { component: 'resources' });
|
|
48
48
|
/**
|
|
49
49
|
* Resources aggregation root - the main entry point for all resource operations
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TemplateClient = void 0;
|
|
4
|
-
const resources_1 = require("
|
|
4
|
+
const resources_1 = require("../../../domain/resources");
|
|
5
5
|
/**
|
|
6
6
|
* ExecuteAsTemplateTransform implements the template execution transformation
|
|
7
7
|
* This follows the golang version's executeAsTemplateTransform structure
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MediaType } from '
|
|
2
|
-
import { Fs } from '
|
|
1
|
+
import { MediaType } from '../../../pkg/media/type';
|
|
2
|
+
import { Fs } from '../../domain/fs/type';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export interface ReadSeekCloser extends Readable {
|
|
5
5
|
seek(offset: number, whence: number): Promise<number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MenuBuilder = void 0;
|
|
4
|
-
const log_1 = require("
|
|
4
|
+
const log_1 = require("../../../../pkg/log");
|
|
5
5
|
const menu_1 = require("../valueobject/menu");
|
|
6
6
|
// Create domain-specific logger for menu building operations
|
|
7
7
|
const log = (0, log_1.getDomainLogger)('site', { component: 'menu-builder' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../internal/domain/site/entity/navigation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAY,eAAe,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAiB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../internal/domain/site/entity/navigation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAY,eAAe,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAiB,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAKvE;;;GAGG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,iBAAiB,CAAkC;IAC3D,OAAO,CAAC,eAAe,CAAmC;IAE1D,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,SAAS,CAAmC;gBAExC,OAAO,EAAE,eAAe;IAWpC,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI5C,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI;IAI5D,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBxE,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB/F,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK;IAQ3B,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;CAGxD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,UAAU,CAElE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Navigation = void 0;
|
|
4
4
|
exports.newNavigation = newNavigation;
|
|
5
|
-
const log_1 = require("
|
|
5
|
+
const log_1 = require("../../../../pkg/log");
|
|
6
6
|
const menu_1 = require("../valueobject/menu");
|
|
7
7
|
// Create domain-specific logger for navigation operations
|
|
8
8
|
const log = (0, log_1.getDomainLogger)('site', { component: 'navigation' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../../../internal/domain/site/entity/navigation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../../../internal/domain/site/entity/navigation.ts"],"names":[],"mappings":";;;AA0GA,sCAEC;AAzGD,kCAA2C;AAC3C,8CAA2D;AAI3D,0DAA0D;AAC1D,MAAM,GAAG,GAAG,IAAA,qBAAe,EAAC,MAAM,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAa,UAAU;IASrB,YAAY,OAAwB;QAP5B,sBAAiB,GAA6B,IAAI,CAAC;QACnD,oBAAe,GAAyB,IAAI,GAAG,EAAE,CAAC,CAAC,kDAAk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C;IACH,CAAC;IAED,QAAQ,CAAC,IAAY;QACnB,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,KAAK,GAAG,IAAA,oBAAa,GAAE,CAAC,CAAC,kCAAkC;QAC7D,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEC,aAAa,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AArFD,gCAqFC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,OAAwB;IACpD,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Page as ContentPage, PageGroups, PageMeta, PageOutput, Pager, PageSource, Position } from '
|
|
1
|
+
import { Page as ContentPage, PageGroups, PageMeta, PageOutput, Pager, PageSource, Position } from '../../../domain/content';
|
|
2
2
|
import { LanguageService, Template } from '../type';
|
|
3
3
|
import { Site } from './site';
|
|
4
4
|
import { Publisher } from './publisher';
|
|
5
5
|
import { SitePager } from "./pager";
|
|
6
|
-
import { Scratch } from "
|
|
6
|
+
import { Scratch } from "../../../../pkg/maps/scratch";
|
|
7
7
|
/**
|
|
8
8
|
* Site Page - TypeScript equivalent of Go's Page entity in domain/site/entity/page.go
|
|
9
9
|
* This wraps the content layer's Page and provides site-specific functionality
|
|
@@ -56,13 +56,13 @@ export declare class Page implements ContentPage, PageMeta {
|
|
|
56
56
|
* TypeScript equivalent of clone method from Go
|
|
57
57
|
*/
|
|
58
58
|
clone(): Page;
|
|
59
|
-
pageIdentity(): import("
|
|
60
|
-
pageFile(): import("
|
|
59
|
+
pageIdentity(): import("../../../domain/content").PageIdentity;
|
|
60
|
+
pageFile(): import("../../../domain/content").File;
|
|
61
61
|
staleVersions(): number[];
|
|
62
62
|
section(): string;
|
|
63
63
|
paths(): import("../../paths").Path;
|
|
64
64
|
path(): string;
|
|
65
|
-
file(): import("
|
|
65
|
+
file(): import("../../../domain/content").File;
|
|
66
66
|
name(): string;
|
|
67
67
|
title(): string;
|
|
68
68
|
kind(): string;
|
|
@@ -93,22 +93,22 @@ export declare class Page implements ContentPage, PageMeta {
|
|
|
93
93
|
pageOutputs(): PageOutput[];
|
|
94
94
|
truncated(): boolean;
|
|
95
95
|
parent(): ContentPage | null;
|
|
96
|
-
pages(): Promise<import("
|
|
96
|
+
pages(): Promise<import("../../../domain/content").Pages>;
|
|
97
97
|
prevInSection(): ContentPage | null;
|
|
98
98
|
nextInSection(): ContentPage | null;
|
|
99
|
-
sections(langIndex: number): import("
|
|
100
|
-
regularPages(): Promise<import("
|
|
101
|
-
regularPagesRecursive(): import("
|
|
102
|
-
terms(langIndex: number, taxonomy: string): Promise<import("
|
|
99
|
+
sections(langIndex: number): import("../../../domain/content").Pages;
|
|
100
|
+
regularPages(): Promise<import("../../../domain/content").Pages>;
|
|
101
|
+
regularPagesRecursive(): import("../../../domain/content").Pages;
|
|
102
|
+
terms(langIndex: number, taxonomy: string): Promise<import("../../../domain/content").Pages | null>;
|
|
103
103
|
isTranslated(): boolean;
|
|
104
|
-
translations(): import("
|
|
104
|
+
translations(): import("../../../domain/content").Pages;
|
|
105
105
|
rawContent(): string;
|
|
106
106
|
description(): string;
|
|
107
107
|
params(): Record<string, any>;
|
|
108
108
|
pageWeight(): number;
|
|
109
109
|
pageDate(): Date;
|
|
110
110
|
publishDate(): Date;
|
|
111
|
-
relatedKeywords(cfg: any): Promise<import("
|
|
111
|
+
relatedKeywords(cfg: any): Promise<import("../../../domain/content").Keyword[]>;
|
|
112
112
|
shouldList(global: boolean): boolean;
|
|
113
113
|
shouldListAny(): boolean;
|
|
114
114
|
noLink(): boolean;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Page = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const log_1 = require("
|
|
8
|
+
const log_1 = require("../../../../pkg/log");
|
|
9
9
|
const pager_1 = require("./pager");
|
|
10
10
|
// Create domain-specific logger for page operations
|
|
11
11
|
const log = (0, log_1.getDomainLogger)('site', { component: 'page' });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Pager } from "
|
|
2
|
-
import { Page } from "
|
|
1
|
+
import { Pager } from "../../../domain/content";
|
|
2
|
+
import { Page } from "../../../domain/site/entity/page";
|
|
3
3
|
/**
|
|
4
4
|
* TypeScript equivalent of Go's SitePager struct
|
|
5
5
|
* This implements the Pager interface and wraps the content layer's Pager
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Ref = void 0;
|
|
4
|
-
const log_1 = require("
|
|
4
|
+
const log_1 = require("../../../../pkg/log");
|
|
5
5
|
// Create domain-specific logger for ref operations
|
|
6
6
|
const log = (0, log_1.getDomainLogger)('site', { component: 'ref' });
|
|
7
7
|
/**
|
|
@@ -6,8 +6,8 @@ import { Language } from './language';
|
|
|
6
6
|
import { Navigation } from './navigation';
|
|
7
7
|
import { Page as ContentPage } from '../../content/type';
|
|
8
8
|
import { Author, Compiler, ConfigService, ContentService, FsService, LanguageService, SitemapService, Template, TranslationService } from '../type';
|
|
9
|
-
import { TaxonomyList } from "
|
|
10
|
-
import { Menus } from "
|
|
9
|
+
import { TaxonomyList } from "../../../domain/site/entity/taxonomies-builder";
|
|
10
|
+
import { Menus } from "../../../domain/site/valueobject/menu";
|
|
11
11
|
/**
|
|
12
12
|
* Site - TypeScript equivalent of Go's Site entity
|
|
13
13
|
* Main site management class
|
|
@@ -35,8 +35,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Site = void 0;
|
|
37
37
|
const page_1 = require("./page");
|
|
38
|
-
const log_1 = require("
|
|
39
|
-
const taxonomies_builder_1 = require("
|
|
38
|
+
const log_1 = require("../../../../pkg/log");
|
|
39
|
+
const taxonomies_builder_1 = require("../../../domain/site/entity/taxonomies-builder");
|
|
40
40
|
// Create domain-specific logger for site operations
|
|
41
41
|
const log = (0, log_1.getDomainLogger)('site', { component: 'site' });
|
|
42
42
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentService } from '../type';
|
|
2
|
-
import { OrdinalWeightPage } from "
|
|
2
|
+
import { OrdinalWeightPage } from "../../../domain/content";
|
|
3
3
|
import { Site } from "./site";
|
|
4
4
|
import { Page } from "./page";
|
|
5
5
|
export declare class WeightedPage {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TaxonomiesBuilder = exports.TaxonomyList = exports.OrderedTaxonomy = exports.OrderedTaxonomyEntry = exports.Taxonomy = exports.WeightedPages = exports.WeightedPage = void 0;
|
|
4
|
-
const log_1 = require("
|
|
4
|
+
const log_1 = require("../../../../pkg/log");
|
|
5
5
|
// Create domain-specific logger for menu building operations
|
|
6
6
|
const log = (0, log_1.getDomainLogger)('site', { component: 'taxonomies-builder' });
|
|
7
7
|
// WeightedPage - equivalent to Go's WeightedPage struct
|
|
@@ -5,7 +5,7 @@ exports.createNavigationFactory = createNavigationFactory;
|
|
|
5
5
|
const navigation_1 = require("../entity/navigation");
|
|
6
6
|
const menu_builder_1 = require("../entity/menu-builder");
|
|
7
7
|
const taxonomies_builder_1 = require("../entity/taxonomies-builder");
|
|
8
|
-
const log_1 = require("
|
|
8
|
+
const log_1 = require("../../../../pkg/log");
|
|
9
9
|
// Create domain-specific logger for navigation factory operations
|
|
10
10
|
const log = (0, log_1.getDomainLogger)('site', { component: 'navigation-factory' });
|
|
11
11
|
class NavigationFactory {
|
|
@@ -9,7 +9,7 @@ const language_1 = require("../entity/language");
|
|
|
9
9
|
const author_1 = require("../valueobject/author");
|
|
10
10
|
const version_1 = require("../valueobject/version");
|
|
11
11
|
const navigation_factory_1 = require("./navigation-factory");
|
|
12
|
-
const log_1 = require("
|
|
12
|
+
const log_1 = require("../../../../pkg/log");
|
|
13
13
|
// Create domain-specific logger for site factory operations
|
|
14
14
|
const log = (0, log_1.getDomainLogger)('site', { component: 'factory' });
|
|
15
15
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MENUS_BEFORE = exports.MENUS_AFTER = exports.Menus = exports.Menu = exports.MenuEntry = void 0;
|
|
4
4
|
exports.newEmptyMenus = newEmptyMenus;
|
|
5
|
-
const log_1 = require("
|
|
5
|
+
const log_1 = require("../../../../pkg/log");
|
|
6
6
|
// Create domain-specific logger for menu operations
|
|
7
7
|
const log = (0, log_1.getDomainLogger)('site', { component: 'menu' });
|
|
8
8
|
/**
|
|
@@ -6,7 +6,7 @@ const text_template_1 = require("@mdfriday/text-template");
|
|
|
6
6
|
const text_template_2 = require("@mdfriday/text-template");
|
|
7
7
|
const type_1 = require("../type");
|
|
8
8
|
const info_1 = require("../vo/info");
|
|
9
|
-
const log_1 = require("
|
|
9
|
+
const log_1 = require("../../../../pkg/log");
|
|
10
10
|
// Create domain-specific logger for parser operations
|
|
11
11
|
const log = (0, log_1.getDomainLogger)('template', { component: 'parser' });
|
|
12
12
|
/**
|
|
@@ -38,7 +38,7 @@ exports.newTemplateEngine = newTemplateEngine;
|
|
|
38
38
|
const type_1 = require("../type");
|
|
39
39
|
const info_1 = require("../vo/info");
|
|
40
40
|
const info_2 = require("../vo/info");
|
|
41
|
-
const log_1 = require("
|
|
41
|
+
const log_1 = require("../../../../pkg/log");
|
|
42
42
|
const path = __importStar(require("path"));
|
|
43
43
|
// Create domain-specific logger for template operations
|
|
44
44
|
const log = (0, log_1.getDomainLogger)('template', { component: 'template-engine' });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Template } from '@mdfriday/text-template';
|
|
2
2
|
import { FileMetaInfo, WalkCallback, WalkwayConfig } from '../fs/type';
|
|
3
|
-
import { Resource } from '
|
|
3
|
+
import { Resource } from '../../domain/resources';
|
|
4
4
|
/**
|
|
5
5
|
* Template domain constants
|
|
6
6
|
*/
|
|
@@ -43,7 +43,7 @@ exports.newTemplateRegistry = newTemplateRegistry;
|
|
|
43
43
|
exports.createCoreFuncMap = createCoreFuncMap;
|
|
44
44
|
exports.createStandardFuncMap = createStandardFuncMap;
|
|
45
45
|
exports.updateEngineDependentFunctions = updateEngineDependentFunctions;
|
|
46
|
-
const log_1 = require("
|
|
46
|
+
const log_1 = require("../../../../pkg/log");
|
|
47
47
|
const crypto = __importStar(require("crypto"));
|
|
48
48
|
// Create domain-specific logger for template operations
|
|
49
49
|
const log = (0, log_1.getDomainLogger)('template', { component: 'registry' });
|
package/dist/pkg/types/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Types = void 0;
|
|
4
|
-
const cast_1 = require("
|
|
4
|
+
const cast_1 = require("../cast");
|
|
5
5
|
class Types {
|
|
6
6
|
static toStringSlicePreserveString(v) {
|
|
7
7
|
if (v === null || v === undefined)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdfriday/foundry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"build:watch": "tsc --watch",
|
|
13
|
+
"build": "tsc && tsc-alias",
|
|
14
|
+
"build:watch": "tsc --watch & tsc-alias --watch",
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"test:watch": "jest --watch",
|
|
17
17
|
"test:coverage": "jest --coverage",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"ts-jest": "^29.1.1",
|
|
54
54
|
"ts-node": "^10.9.1",
|
|
55
55
|
"ts-node-dev": "^2.0.0",
|
|
56
|
+
"tsc-alias": "^1.8.16",
|
|
56
57
|
"tsconfig-paths": "^4.2.0",
|
|
57
58
|
"typescript": "^5.3.2"
|
|
58
59
|
},
|