coralite 0.23.0 → 0.25.0

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 CHANGED
@@ -16,12 +16,14 @@ coralite is a static site generator library built around the emerging [HTML modu
16
16
  - [Coralite CLI](https://coralite.dev/docs/reference/cli.html)
17
17
  - [Coralite](https://coralite.dev/docs/reference/coralite.html)
18
18
  - [Plugin system](https://coralite.dev/docs/reference/plugins/index.html)
19
+ - [Create plugin](https://coralite.dev/docs/reference/plugins/create-plugin.html)
20
+ - The `createPlugin` function is the entry point for extending Coralite's functionality.
19
21
  - [Define component](https://coralite.dev/docs/reference/plugins/define-component.html)
20
- - The defineComponent plugin is Coralite's core built-in plugin that enables dynamic template functionality.
22
+ - The `defineComponent` plugin is Coralite's core built-in plugin that enables dynamic template functionality.
21
23
  - [Ref](https://coralite.dev/docs/reference/plugins/refs-plugin.html)
22
- - The refs plugin is a built-in Coralite helper that provides runtime DOM element access.
24
+ - The `refs` plugin is a built-in Coralite helper that provides runtime DOM element access.
23
25
  - [Metadata](https://coralite.dev/docs/reference/plugins/metadata.html)
24
- - The metadata plugin is a built-in Coralite tool that extracts metadata from <meta> tags in your page's <head> and makes them available as template variables.
26
+ - The `metadata` plugin is a built-in Coralite tool that extracts metadata from <meta> tags in your page's <head> and makes them available as template variables.
25
27
  - [Types](https://coralite.dev/docs/reference/types.html)
26
28
 
27
29
  ## Installation
package/bin/coralite.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env -S node --experimental-vm-modules --experimental-import-meta-resolve
2
2
 
3
3
  import { Coralite } from '../dist/lib/index.js'
4
4
  import { Command } from 'commander'
@@ -19,7 +19,9 @@ program
19
19
  .requiredOption('-t, --templates <path>', 'Path to templates directory')
20
20
  .requiredOption('-p, --pages <path>', 'Path to pages directory')
21
21
  .requiredOption('-o, --output <path>', 'Output directory for the generated site')
22
+ .option('-m, --mode <mode>', 'Build mode: "development" or "production"', 'production')
22
23
  .option('-i, --ignore-attribute <key=value...>', 'Ignore elements by attribute name value pair', [])
24
+ .option('-s, --skip-render-attribute <key...>', 'Parse elements but exclude them from final render output', [])
23
25
  .option('-d, --dry-run', 'Run in dry-run mode')
24
26
 
25
27
  program.parse(process.argv)
@@ -48,6 +50,8 @@ const coraliteOptions = {
48
50
  templates: options.templates,
49
51
  pages,
50
52
  ignoreByAttribute,
53
+ skipRenderByAttribute: options.skipRenderAttribute,
54
+ mode: options.mode,
51
55
  plugins: []
52
56
  }
53
57
 
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../lib/collection.js"],"names":[],"mappings":";AAKA;;;;;;;GAOG;AAEH;;;;;;;;;GASG;AACH,8CALG;IAAyB,OAAO,GAAxB,MAAM;IAC+B,KAAK,GAA1C,0BAA0B;IACc,QAAQ,GAAhD,6BAA6B;IACW,QAAQ,GAAhD,6BAA6B;CACvC,QAgDA;;IAlED;;;;;;;OAOG;IAEH;;;;;;;;;OASG;IACH,sBALG;QAAyB,OAAO,GAAxB,MAAM;QAC+B,KAAK,GAA1C,0BAA0B;QACc,QAAQ,GAAhD,6BAA6B;QACW,QAAQ,GAAhD,6BAA6B;KACvC,EAgDA;IA9CC;;OAEG;IACH,gBAAyC;IAMzC;;;OAGG;IACH,MAFU,sBAAsB,EAAE,CAEpB;IAEd;;;;OAIG;IACH;;MAAoB;IAEpB;;;;OAIG;IACH;;MAAoB;IAEpB;;;OAGG;IACH,QAFU,0BAA0B,GAAG,SAAS,CAErB;IAE3B;;;OAGG;IACH,WAFU,6BAA6B,GAAG,SAAS,CAElB;IAEjC;;;OAGG;IACH,WAFU,6BAA6B,GAAG,SAAS,CAElB;IAGnC;;;;;OAKG;IACH,eAHW,QAAQ,GAAC,MAAM,GACb,OAAO,CAAC,sBAAsB,CAAC,CA4D3C;IAED;;;;;OAKG;IACH,kBAHW,QAAQ,GAAG,MAAM,iBAwE3B;IAED;;;;;OAKG;IACH,k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C,MAAM,oEAmEvC;IAED;;;;OAIG;IACH,YAHW,MAAM,GACJ,sBAAsB,GAAG,SAAS,CAQ9C;IAED;;;;OAIG;IACH,uBAHW,MAAM,GACJ,sBAAsB,EAAE,GAAG,SAAS,CAQhD;IAED;;;;;;OAMG;IACH,sBAJW,MAAM,GACJ,OAAO,CAAC,QAAQ,CAAC,CA2B7B;;gDA9UmB,mBAAmB;mDAAnB,mBAAmB;mDAAnB,mBAAmB;4CAAnB,mBAAmB;8BAAnB,mBAAmB"}
@@ -25,20 +25,26 @@
25
25
  * @param {string} options.templates - The path to the directory containing Coralite templates.
26
26
  * @param {CoralitePluginInstance[]} [options.plugins=[]]
27
27
  * @param {string} options.pages - The path to the directory containing pages that will be rendered using the provided templates.
28
+ * @param {string} [options.mode='production'] - Build mode: "development" or "production"
28
29
  * @param {IgnoreByAttribute[]} [options.ignoreByAttribute] - Elements to ignore with attribute name value pair
30
+ * @param {string[]} [options.skipRenderByAttribute] - Element attributes to parse but exclude from final render output
29
31
  * @example
30
32
  * const coralite = new Coralite({
31
33
  * templates: './path/to/templates',
32
34
  * pages: './path/to/pages',
35
+ * mode: 'development',
33
36
  * plugins: [myPlugin],
34
- * ignoreByAttribute: [{ name: 'data-ignore', value: 'true' }]
37
+ * ignoreByAttribute: [{ name: 'data-ignore', value: 'true' }],
38
+ * skipRenderByAttribute: ['data-skip-render']
35
39
  * });
36
40
  */
37
- export function Coralite({ templates, pages, plugins, ignoreByAttribute }: {
41
+ export function Coralite({ templates, pages, plugins, ignoreByAttribute, skipRenderByAttribute, mode }: {
38
42
  templates: string;
39
43
  plugins?: CoralitePluginInstance[];
40
44
  pages: string;
45
+ mode?: string;
41
46
  ignoreByAttribute?: IgnoreByAttribute[];
47
+ skipRenderByAttribute?: string[];
42
48
  }): void;
43
49
  export class Coralite {
44
50
  /**
@@ -68,26 +74,34 @@ export class Coralite {
68
74
  * @param {string} options.templates - The path to the directory containing Coralite templates.
69
75
  * @param {CoralitePluginInstance[]} [options.plugins=[]]
70
76
  * @param {string} options.pages - The path to the directory containing pages that will be rendered using the provided templates.
77
+ * @param {string} [options.mode='production'] - Build mode: "development" or "production"
71
78
  * @param {IgnoreByAttribute[]} [options.ignoreByAttribute] - Elements to ignore with attribute name value pair
79
+ * @param {string[]} [options.skipRenderByAttribute] - Element attributes to parse but exclude from final render output
72
80
  * @example
73
81
  * const coralite = new Coralite({
74
82
  * templates: './path/to/templates',
75
83
  * pages: './path/to/pages',
84
+ * mode: 'development',
76
85
  * plugins: [myPlugin],
77
- * ignoreByAttribute: [{ name: 'data-ignore', value: 'true' }]
86
+ * ignoreByAttribute: [{ name: 'data-ignore', value: 'true' }],
87
+ * skipRenderByAttribute: ['data-skip-render']
78
88
  * });
79
89
  */
80
- constructor({ templates, pages, plugins, ignoreByAttribute }: {
90
+ constructor({ templates, pages, plugins, ignoreByAttribute, skipRenderByAttribute, mode }: {
81
91
  templates: string;
82
92
  plugins?: CoralitePluginInstance[];
83
93
  pages: string;
94
+ mode?: string;
84
95
  ignoreByAttribute?: IgnoreByAttribute[];
96
+ skipRenderByAttribute?: string[];
85
97
  });
86
98
  options: {
87
99
  templates: string;
88
100
  pages: string;
89
101
  plugins: CoralitePluginInstance[];
90
102
  ignoreByAttribute: import("../types/document.js").IgnoreByAttribute[];
103
+ skipRenderByAttribute: string[];
104
+ mode: string;
91
105
  path: {
92
106
  templates: string;
93
107
  pages: string;
@@ -104,7 +118,10 @@ export class Coralite {
104
118
  onTemplateSet: any[];
105
119
  onTemplateUpdate: any[];
106
120
  onTemplateDelete: any[];
121
+ onBeforePageRender: any[];
107
122
  onAfterPageRender: any[];
123
+ onBeforeBuild: any[];
124
+ onAfterBuild: any[];
108
125
  };
109
126
  };
110
127
  _scriptManager: ScriptManager;
@@ -479,6 +496,33 @@ export class Coralite {
479
496
  index?: number;
480
497
  renderContext?: any;
481
498
  }, head?: boolean): Promise<CoraliteElement | void>;
499
+ /**
500
+ * @param {import('../types/core.js').CoraliteFilePath} path
501
+ */
502
+ _moduleLinker(path: import("../types/core.js").CoraliteFilePath, context: any): (specifier: string, referencingModule: import("node:vm").Module, extra: {
503
+ attributes: ImportAttributes;
504
+ }) => Promise<import("vm").SourceTextModule>;
505
+ /**
506
+ * Parses a Coralite module script and evaluates it using SourceTextModule.
507
+ *
508
+ * @param {Object} data
509
+ * @param {CoraliteModule} data.module - The Coralite module to parse
510
+ * @param {CoraliteModuleValues} data.values - Replacement tokens for the component
511
+ * @param {CoraliteElement} data.element - The Coralite module to parse
512
+ * @param {CoraliteDocument} data.document - The document context in which the module is being processed
513
+ * @param {string} data.contextId - Context Id
514
+ * @param {Object} data.renderContext - Render Context
515
+ *
516
+ * @returns {Promise<CoraliteModuleValues>}
517
+ */
518
+ _evaluateDevelopment({ module, values, element, document, contextId, renderContext }: {
519
+ module: CoraliteModule;
520
+ values: CoraliteModuleValues;
521
+ element: CoraliteElement;
522
+ document: CoraliteDocument;
523
+ contextId: string;
524
+ renderContext: any;
525
+ }): Promise<CoraliteModuleValues>;
482
526
  /**
483
527
  * Parses a Coralite module script and compiles it into JavaScript using esbuild.
484
528
  * Replaces node:vm SourceTextModule for better performance and memory management.
@@ -493,7 +537,7 @@ export class Coralite {
493
537
  *
494
538
  * @returns {Promise<CoraliteModuleValues>}
495
539
  */
496
- _evaluate({ module, values, element, document, contextId, renderContext }: {
540
+ _evaluateProduction({ module, values, element, document, contextId, renderContext }: {
497
541
  module: CoraliteModule;
498
542
  values: CoraliteModuleValues;
499
543
  element: CoraliteElement;
@@ -501,6 +545,21 @@ export class Coralite {
501
545
  contextId: string;
502
546
  renderContext: any;
503
547
  }): Promise<CoraliteModuleValues>;
548
+ /**
549
+ * Parses a Coralite module script and compiles it into JavaScript using esbuild.
550
+ * Replaces node:vm SourceTextModule for better performance and memory management.
551
+ *
552
+ * @param {Object} data
553
+ * @param {CoraliteModule} data.module - The Coralite module to parse
554
+ * @param {CoraliteModuleValues} data.values - Replacement tokens for the component
555
+ * @param {CoraliteElement} data.element - The Coralite module to parse
556
+ * @param {CoraliteDocument} data.document - The document context in which the module is being processed
557
+ * @param {string} data.contextId - Context Id
558
+ * @param {Object} data.renderContext - Render Context
559
+ *
560
+ * @returns {Promise<CoraliteModuleValues>}
561
+ */
562
+ _evaluate(options: any): Promise<CoraliteModuleValues>;
504
563
  /**
505
564
  * @template {Object} T
506
565
  *
@@ -508,20 +567,20 @@ export class Coralite {
508
567
  *
509
568
  * @internal
510
569
  *
511
- * @param {'onPageSet'|'onPageUpdate'|'onPageDelete'|'onTemplateSet'|'onTemplateUpdate'|'onTemplateDelete'|'onAfterPageRender'} name - The name of the hook to trigger.
570
+ * @param {'onPageSet'|'onPageUpdate'|'onPageDelete'|'onTemplateSet'|'onTemplateUpdate'|'onTemplateDelete'|'onBeforePageRender'|'onAfterPageRender'|'onBeforeBuild'|'onAfterBuild'} name - The name of the hook to trigger.
512
571
  * @param {T} data - Data to pass to each callback function.
513
572
  * @return {Promise<Array<T>>} A promise that resolves to an array of results from all callbacks.
514
573
  */
515
- _triggerPluginHook<T extends unknown>(name: "onPageSet" | "onPageUpdate" | "onPageDelete" | "onTemplateSet" | "onTemplateUpdate" | "onTemplateDelete" | "onAfterPageRender", data: T): Promise<Array<T>>;
574
+ _triggerPluginHook<T extends unknown>(name: "onPageSet" | "onPageUpdate" | "onPageDelete" | "onTemplateSet" | "onTemplateUpdate" | "onTemplateDelete" | "onBeforePageRender" | "onAfterPageRender" | "onBeforeBuild" | "onAfterBuild", data: T): Promise<Array<T>>;
516
575
  /**
517
576
  * Registers a callback function under the specified hook name.
518
577
  *
519
578
  * @internal
520
579
  *
521
- * @param {'onPageSet'|'onPageUpdate'|'onPageDelete'|'onTemplateSet'|'onTemplateUpdate'|'onTemplateDelete'|'onAfterPageRender'} name - The name of the hook to register the callback with.
580
+ * @param {'onPageSet'|'onPageUpdate'|'onPageDelete'|'onTemplateSet'|'onTemplateUpdate'|'onTemplateDelete'|'onBeforePageRender'|'onAfterPageRender'|'onBeforeBuild'|'onAfterBuild'} name - The name of the hook to register the callback with.
522
581
  * @param {Function} callback - The callback function to be executed when the hook is triggered.
523
582
  */
524
- _addPluginHook(name: "onPageSet" | "onPageUpdate" | "onPageDelete" | "onTemplateSet" | "onTemplateUpdate" | "onTemplateDelete" | "onAfterPageRender", callback: Function): void;
583
+ _addPluginHook(name: "onPageSet" | "onPageUpdate" | "onPageDelete" | "onTemplateSet" | "onTemplateUpdate" | "onTemplateDelete" | "onBeforePageRender" | "onAfterPageRender" | "onBeforeBuild" | "onAfterBuild", callback: Function): void;
525
584
  }
526
585
  export default Coralite;
527
586
  export type BuildPageHandler = (result: CoraliteResult) => Promise<any> | any;
@@ -1 +1 @@
1
- {"version":3,"file":"coralite.d.ts","sourceRoot":"","sources":["../../lib/coralite.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH,2EAZG;IAAwB,SAAS,EAAzB,MAAM;IAC6B,OAAO,GAA1C,sBAAsB,EAAE;IACR,KAAK,EAArB,MAAM;IACwB,iBAAiB,GAA/C,iBAAiB,EAAE;CAC3B,QA6JF;;IA3LD;;;;;;;;;;;;;;;;;OAiBG;IAEH;;OAEG;IAEH;;;;;;;;;;;;;;OAcG;IACH,8DAZG;QAAwB,SAAS,EAAzB,MAAM;QAC6B,OAAO,GAA1C,sBAAsB,EAAE;QACR,KAAK,EAArB,MAAM;QACwB,iBAAiB,GAA/C,iBAAiB,EAAE;KAC3B,EA6JF;IA5HC;;;;;;;;;MAMC;IAED,oDAAoD;IACpD,eADW,GAAG,CAAC,MAAM,EAAE,sBAAsB,EAAE,CAAC,CAClB;IAG9B;;;;;;;;;;;MAWC;IAGD,8BAAyC;IAGzC;;;;;;;;8BA6yBS,oBAAoB,GAAG,eAAe,GAAG,eAAe,EAAE,YAC1D,oBAAoB,KAClB,MAAM;;;;;;;;;;;;MA9xBhB;IAgFH;;;OAGG;IACH,cAFa,OAAO,CAAC,IAAI,CAAC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oBAAoB,CAAC,CAOzC;IAED;;;;;;;;;;OAUG;IACH,mBAVsB,CAAC,wBAMZ,WAAW,GAAC,cAAc,GAAC,cAAc,GAAC,eAAe,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,QACvK,CAAC,GACA,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAc5B;IAED;;;;;;;OAOG;IACH,qBAHW,WAAW,GAAC,cAAc,GAAC,cAAc,GAAC,eAAe,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,oBAAoB,GAAC,mBAAmB,GAAC,eAAe,GAAC,cAAc,4BAajL;;;wCAriCU,cAAc,KACZ,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG;4CAztBY,oBAAoB;uCAFrC,mBAAmB;4CAAnB,mBAAmB;8BA9Bf,qBAAqB;0BAFmB,YAAY;4BAAZ,YAAY;6BADxC,WAAW;4BAAX,WAAW;8BACiB,YAAY;+BAAZ,YAAY;0CAgCxD,mBAAmB;qCAAnB,mBAAmB;0CAMN,gBAAgB;+BAxBxB,iBAAiB;oCAkBtB,mBAAmB;0CAAnB,mBAAmB;qCAAnB,mBAAmB;sCAAnB,mBAAmB;oCAAnB,mBAAmB"}
@@ -5,6 +5,7 @@ export * from "./plugin.js";
5
5
  export * from "./config.js";
6
6
  export * from "./type-helper.js";
7
7
  export * from "./script-manager.js";
8
+ export * from "#plugins";
8
9
  export { Coralite };
9
10
  export default Coralite;
10
11
  import Coralite from './coralite.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;;;;;;;qBAAqB,eAAe"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":";;;;;;;;;;qBAAqB,eAAe"}