@kestra-io/ui-libs 0.0.54 → 0.0.56
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/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import YamlUtils from "./utils/YamlUtils.js";
|
|
|
2
2
|
import Utils from "./utils/Utils.js";
|
|
3
3
|
import VueFlowUtils from "./utils/VueFlowUtils.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import VITE from "./vite/index";
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export {YamlUtils, Utils, VueFlowUtils, VITE};
|
|
8
|
+
|
|
9
|
+
export * from "./components/index.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {Plugin} from "vite";
|
|
2
1
|
import {execSync} from "child_process";
|
|
3
2
|
|
|
4
|
-
const getInfo =
|
|
3
|
+
const getInfo = formats => formats.map(format => execSync(`git log -1 --format=${format}`).toString().trim());
|
|
5
4
|
|
|
6
|
-
const comment = (message
|
|
5
|
+
const comment = (message, author, date) => `
|
|
7
6
|
<!--
|
|
8
7
|
|
|
9
8
|
Last Commit:
|
|
@@ -15,14 +14,14 @@ const comment = (message: string, author: string, date: string): string => `
|
|
|
15
14
|
|
|
16
15
|
-->`;
|
|
17
16
|
|
|
18
|
-
export const commit = ()
|
|
17
|
+
export const commit = () => {
|
|
19
18
|
const [message, author, date] = getInfo(["%s", "%an", "%cd"]);
|
|
20
19
|
|
|
21
20
|
return {
|
|
22
21
|
name: "commit",
|
|
23
22
|
transformIndexHtml: {
|
|
24
23
|
order: "pre",
|
|
25
|
-
handler(html
|
|
24
|
+
handler(html) {
|
|
26
25
|
return comment(message, author, date) + html;
|
|
27
26
|
},
|
|
28
27
|
},
|