kist 0.1.57 → 0.1.58
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/js/config/actions.config.d.ts +11 -11
- package/js/config/actions.config.js +52 -52
- package/js/core/plugin/PluginManager.d.ts +3 -3
- package/js/core/plugin/PluginManager.js +6 -6
- package/js/kist.js +1 -1
- package/package.json +1 -1
- package/ts/config/actions.config.ts +52 -52
- package/ts/core/plugin/PluginManager.ts +6 -6
- package/ts/kist.ts +1 -1
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
* - Template rendering (lightweight)
|
|
10
10
|
*
|
|
11
11
|
* Plugin Actions (Move to separate repos):
|
|
12
|
-
* - StyleProcessingAction -> @
|
|
13
|
-
* - TypeScriptCompilerAction -> @
|
|
14
|
-
* - JavaScriptMinifyAction -> @
|
|
15
|
-
* - SvgPackagerAction -> @
|
|
16
|
-
* - SvgSpriteAction -> @
|
|
17
|
-
* - SvgToPngAction -> @
|
|
18
|
-
* - SvgReaderAction -> @
|
|
19
|
-
* - LintAction -> @
|
|
20
|
-
* - DocumentationAction -> @
|
|
21
|
-
* - PackageManagerAction -> @
|
|
22
|
-
* - RunScriptAction -> @
|
|
12
|
+
* - StyleProcessingAction -> @getkist/action-sass
|
|
13
|
+
* - TypeScriptCompilerAction -> @getkist/action-typescript
|
|
14
|
+
* - JavaScriptMinifyAction -> @getkist/action-terser
|
|
15
|
+
* - SvgPackagerAction -> @getkist/action-svg
|
|
16
|
+
* - SvgSpriteAction -> @getkist/action-svg
|
|
17
|
+
* - SvgToPngAction -> @getkist/action-svg
|
|
18
|
+
* - SvgReaderAction -> @getkist/action-svg
|
|
19
|
+
* - LintAction -> @getkist/action-lint
|
|
20
|
+
* - DocumentationAction -> @getkist/action-docs
|
|
21
|
+
* - PackageManagerAction -> @getkist/action-package-manager
|
|
22
|
+
* - RunScriptAction -> @getkist/action-scripts
|
|
23
23
|
*/
|
|
24
24
|
export declare const CORE_ACTIONS: readonly ["DirectoryCleanAction", "DirectoryCopyAction", "DirectoryCreateAction", "FileCopyAction", "FileRenameAction", "TemplateRenderAction", "VersionWriteAction"];
|
|
25
25
|
export declare const PLUGIN_ACTIONS: readonly ["StyleProcessingAction", "TypeScriptCompilerAction", "JavaScriptMinifyAction", "SvgPackagerAction", "SvgReaderAction", "SvgSpriteAction", "SvgToPngAction", "LintAction", "DocumentationAction", "PackageManagerAction", "RunScriptAction"];
|
|
@@ -15,17 +15,17 @@ exports.PLUGIN_PACKAGES = exports.PLUGIN_ACTIONS = exports.CORE_ACTIONS = void 0
|
|
|
15
15
|
* - Template rendering (lightweight)
|
|
16
16
|
*
|
|
17
17
|
* Plugin Actions (Move to separate repos):
|
|
18
|
-
* - StyleProcessingAction -> @
|
|
19
|
-
* - TypeScriptCompilerAction -> @
|
|
20
|
-
* - JavaScriptMinifyAction -> @
|
|
21
|
-
* - SvgPackagerAction -> @
|
|
22
|
-
* - SvgSpriteAction -> @
|
|
23
|
-
* - SvgToPngAction -> @
|
|
24
|
-
* - SvgReaderAction -> @
|
|
25
|
-
* - LintAction -> @
|
|
26
|
-
* - DocumentationAction -> @
|
|
27
|
-
* - PackageManagerAction -> @
|
|
28
|
-
* - RunScriptAction -> @
|
|
18
|
+
* - StyleProcessingAction -> @getkist/action-sass
|
|
19
|
+
* - TypeScriptCompilerAction -> @getkist/action-typescript
|
|
20
|
+
* - JavaScriptMinifyAction -> @getkist/action-terser
|
|
21
|
+
* - SvgPackagerAction -> @getkist/action-svg
|
|
22
|
+
* - SvgSpriteAction -> @getkist/action-svg
|
|
23
|
+
* - SvgToPngAction -> @getkist/action-svg
|
|
24
|
+
* - SvgReaderAction -> @getkist/action-svg
|
|
25
|
+
* - LintAction -> @getkist/action-lint
|
|
26
|
+
* - DocumentationAction -> @getkist/action-docs
|
|
27
|
+
* - PackageManagerAction -> @getkist/action-package-manager
|
|
28
|
+
* - RunScriptAction -> @getkist/action-scripts
|
|
29
29
|
*/
|
|
30
30
|
exports.CORE_ACTIONS = [
|
|
31
31
|
"DirectoryCleanAction",
|
|
@@ -37,24 +37,24 @@ exports.CORE_ACTIONS = [
|
|
|
37
37
|
"VersionWriteAction",
|
|
38
38
|
];
|
|
39
39
|
exports.PLUGIN_ACTIONS = [
|
|
40
|
-
// @
|
|
40
|
+
// @getkist/action-sass
|
|
41
41
|
"StyleProcessingAction",
|
|
42
|
-
// @
|
|
42
|
+
// @getkist/action-typescript
|
|
43
43
|
"TypeScriptCompilerAction",
|
|
44
|
-
// @
|
|
44
|
+
// @getkist/action-terser
|
|
45
45
|
"JavaScriptMinifyAction",
|
|
46
|
-
// @
|
|
46
|
+
// @getkist/action-svg
|
|
47
47
|
"SvgPackagerAction",
|
|
48
48
|
"SvgReaderAction",
|
|
49
49
|
"SvgSpriteAction",
|
|
50
50
|
"SvgToPngAction",
|
|
51
|
-
// @
|
|
51
|
+
// @getkist/action-lint
|
|
52
52
|
"LintAction",
|
|
53
|
-
// @
|
|
53
|
+
// @getkist/action-docs
|
|
54
54
|
"DocumentationAction",
|
|
55
|
-
// @
|
|
55
|
+
// @getkist/action-package-manager
|
|
56
56
|
"PackageManagerAction",
|
|
57
|
-
// @
|
|
57
|
+
// @getkist/action-scripts
|
|
58
58
|
"RunScriptAction",
|
|
59
59
|
];
|
|
60
60
|
/**
|
|
@@ -62,58 +62,58 @@ exports.PLUGIN_ACTIONS = [
|
|
|
62
62
|
*/
|
|
63
63
|
exports.PLUGIN_PACKAGES = {
|
|
64
64
|
StyleProcessingAction: {
|
|
65
|
-
package: "@
|
|
66
|
-
npm: "npm install --save-dev @
|
|
67
|
-
github: "https://github.com/getkist/action-sass",
|
|
65
|
+
package: "@getkist/action-sass",
|
|
66
|
+
npm: "npm install --save-dev @getkist/action-sass",
|
|
67
|
+
github: "https://github.com/getkist/kist-action-sass",
|
|
68
68
|
},
|
|
69
69
|
TypeScriptCompilerAction: {
|
|
70
|
-
package: "@
|
|
71
|
-
npm: "npm install --save-dev @
|
|
72
|
-
github: "https://github.com/getkist/action-typescript",
|
|
70
|
+
package: "@getkist/action-typescript",
|
|
71
|
+
npm: "npm install --save-dev @getkist/action-typescript",
|
|
72
|
+
github: "https://github.com/getkist/kist-action-typescript",
|
|
73
73
|
},
|
|
74
74
|
JavaScriptMinifyAction: {
|
|
75
|
-
package: "@
|
|
76
|
-
npm: "npm install --save-dev @
|
|
77
|
-
github: "https://github.com/getkist/action-terser",
|
|
75
|
+
package: "@getkist/action-terser",
|
|
76
|
+
npm: "npm install --save-dev @getkist/action-terser",
|
|
77
|
+
github: "https://github.com/getkist/kist-action-terser",
|
|
78
78
|
},
|
|
79
79
|
SvgPackagerAction: {
|
|
80
|
-
package: "@
|
|
81
|
-
npm: "npm install --save-dev @
|
|
82
|
-
github: "https://github.com/getkist/action-svg",
|
|
80
|
+
package: "@getkist/action-svg",
|
|
81
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
82
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
83
83
|
},
|
|
84
84
|
SvgReaderAction: {
|
|
85
|
-
package: "@
|
|
86
|
-
npm: "npm install --save-dev @
|
|
87
|
-
github: "https://github.com/getkist/action-svg",
|
|
85
|
+
package: "@getkist/action-svg",
|
|
86
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
87
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
88
88
|
},
|
|
89
89
|
SvgSpriteAction: {
|
|
90
|
-
package: "@
|
|
91
|
-
npm: "npm install --save-dev @
|
|
92
|
-
github: "https://github.com/getkist/action-svg",
|
|
90
|
+
package: "@getkist/action-svg",
|
|
91
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
92
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
93
93
|
},
|
|
94
94
|
SvgToPngAction: {
|
|
95
|
-
package: "@
|
|
96
|
-
npm: "npm install --save-dev @
|
|
97
|
-
github: "https://github.com/getkist/action-svg",
|
|
95
|
+
package: "@getkist/action-svg",
|
|
96
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
97
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
98
98
|
},
|
|
99
99
|
LintAction: {
|
|
100
|
-
package: "@
|
|
101
|
-
npm: "npm install --save-dev @
|
|
102
|
-
github: "https://github.com/getkist/action-lint",
|
|
100
|
+
package: "@getkist/action-lint",
|
|
101
|
+
npm: "npm install --save-dev @getkist/action-lint",
|
|
102
|
+
github: "https://github.com/getkist/kist-action-lint",
|
|
103
103
|
},
|
|
104
104
|
DocumentationAction: {
|
|
105
|
-
package: "@
|
|
106
|
-
npm: "npm install --save-dev @
|
|
107
|
-
github: "https://github.com/getkist/action-docs",
|
|
105
|
+
package: "@getkist/action-docs",
|
|
106
|
+
npm: "npm install --save-dev @getkist/action-docs",
|
|
107
|
+
github: "https://github.com/getkist/kist-action-docs",
|
|
108
108
|
},
|
|
109
109
|
PackageManagerAction: {
|
|
110
|
-
package: "@
|
|
111
|
-
npm: "npm install --save-dev @
|
|
112
|
-
github: "https://github.com/getkist/action-package-manager",
|
|
110
|
+
package: "@getkist/action-package-manager",
|
|
111
|
+
npm: "npm install --save-dev @getkist/action-package-manager",
|
|
112
|
+
github: "https://github.com/getkist/kist-action-package-manager",
|
|
113
113
|
},
|
|
114
114
|
RunScriptAction: {
|
|
115
|
-
package: "@
|
|
116
|
-
npm: "npm install --save-dev @
|
|
117
|
-
github: "https://github.com/getkist/action-scripts",
|
|
115
|
+
package: "@getkist/action-scripts",
|
|
116
|
+
npm: "npm install --save-dev @getkist/action-scripts",
|
|
117
|
+
github: "https://github.com/getkist/kist-action-scripts",
|
|
118
118
|
},
|
|
119
119
|
};
|
|
@@ -4,7 +4,7 @@ import { PluginMetadata } from "../../interface/PluginMetadata";
|
|
|
4
4
|
import { AbstractProcess } from "../abstract/AbstractProcess";
|
|
5
5
|
/**
|
|
6
6
|
* PluginManager handles discovery, loading, and lifecycle of kist plugins.
|
|
7
|
-
* Supports both npm-installed plugins (@
|
|
7
|
+
* Supports both npm-installed plugins (@getkist/plugin-*) and local plugins.
|
|
8
8
|
*/
|
|
9
9
|
export declare class PluginManager extends AbstractProcess {
|
|
10
10
|
private static instance;
|
|
@@ -15,7 +15,7 @@ export declare class PluginManager extends AbstractProcess {
|
|
|
15
15
|
static resetInstance(): void;
|
|
16
16
|
/**
|
|
17
17
|
* Discovers and loads all available plugins from:
|
|
18
|
-
* - node_modules/@
|
|
18
|
+
* - node_modules/@getkist/plugin-*
|
|
19
19
|
* - node_modules/kist-plugin-*
|
|
20
20
|
* - Local plugins directory (if configured)
|
|
21
21
|
*/
|
|
@@ -28,7 +28,7 @@ export declare class PluginManager extends AbstractProcess {
|
|
|
28
28
|
*/
|
|
29
29
|
private discoverNpmPlugins;
|
|
30
30
|
/**
|
|
31
|
-
* Discovers plugins in scoped packages (@
|
|
31
|
+
* Discovers plugins in scoped packages (@getkist/*)
|
|
32
32
|
*/
|
|
33
33
|
private discoverScopedPlugins;
|
|
34
34
|
/**
|
|
@@ -54,7 +54,7 @@ const AbstractProcess_1 = require("../abstract/AbstractProcess");
|
|
|
54
54
|
// ============================================================================
|
|
55
55
|
/**
|
|
56
56
|
* PluginManager handles discovery, loading, and lifecycle of kist plugins.
|
|
57
|
-
* Supports both npm-installed plugins (@
|
|
57
|
+
* Supports both npm-installed plugins (@getkist/plugin-*) and local plugins.
|
|
58
58
|
*/
|
|
59
59
|
class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
60
60
|
// Constructor
|
|
@@ -80,7 +80,7 @@ class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
|
80
80
|
// ========================================================================
|
|
81
81
|
/**
|
|
82
82
|
* Discovers and loads all available plugins from:
|
|
83
|
-
* - node_modules/@
|
|
83
|
+
* - node_modules/@getkist/plugin-*
|
|
84
84
|
* - node_modules/kist-plugin-*
|
|
85
85
|
* - Local plugins directory (if configured)
|
|
86
86
|
*/
|
|
@@ -88,7 +88,7 @@ class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
this.logInfo("Starting plugin discovery...");
|
|
90
90
|
const prefixes = (options === null || options === void 0 ? void 0 : options.pluginPrefixes) || [
|
|
91
|
-
"@
|
|
91
|
+
"@getkist/action-",
|
|
92
92
|
"kist-plugin-",
|
|
93
93
|
];
|
|
94
94
|
// Discover npm plugins
|
|
@@ -111,7 +111,7 @@ class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
|
111
111
|
withFileTypes: true,
|
|
112
112
|
});
|
|
113
113
|
for (const dir of directories) {
|
|
114
|
-
// Check for scoped packages (@
|
|
114
|
+
// Check for scoped packages (@getkist/plugin-*)
|
|
115
115
|
if (dir.isDirectory() && dir.name.startsWith("@")) {
|
|
116
116
|
yield this.discoverScopedPlugins((0, path_1.join)(nodeModulesPath, dir.name), prefixes);
|
|
117
117
|
}
|
|
@@ -131,7 +131,7 @@ class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
|
-
* Discovers plugins in scoped packages (@
|
|
134
|
+
* Discovers plugins in scoped packages (@getkist/*)
|
|
135
135
|
*/
|
|
136
136
|
discoverScopedPlugins(scopePath, prefixes) {
|
|
137
137
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -139,7 +139,7 @@ class PluginManager extends AbstractProcess_1.AbstractProcess {
|
|
|
139
139
|
const packages = (0, fs_1.readdirSync)(scopePath, { withFileTypes: true });
|
|
140
140
|
for (const pkg of packages) {
|
|
141
141
|
for (const prefix of prefixes) {
|
|
142
|
-
const scopePrefix = prefix.split("/")[1]; // Extract "plugin-" from "@
|
|
142
|
+
const scopePrefix = prefix.split("/")[1]; // Extract "plugin-" from "@getkist/plugin-"
|
|
143
143
|
if (pkg.isDirectory() &&
|
|
144
144
|
scopePrefix &&
|
|
145
145
|
pkg.name.startsWith(scopePrefix)) {
|
package/js/kist.js
CHANGED
|
@@ -85,7 +85,7 @@ class Kist extends AbstractProcess_1.AbstractProcess {
|
|
|
85
85
|
// Initialize and discover plugins first
|
|
86
86
|
const pluginManager = PluginManager_1.PluginManager.getInstance();
|
|
87
87
|
yield pluginManager.discoverPlugins({
|
|
88
|
-
pluginPrefixes: ["@
|
|
88
|
+
pluginPrefixes: ["@getkist/action-", "kist-plugin-"],
|
|
89
89
|
});
|
|
90
90
|
// Log loaded plugins
|
|
91
91
|
const plugins = pluginManager.getLoadedPlugins();
|
package/package.json
CHANGED
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* - Template rendering (lightweight)
|
|
14
14
|
*
|
|
15
15
|
* Plugin Actions (Move to separate repos):
|
|
16
|
-
* - StyleProcessingAction -> @
|
|
17
|
-
* - TypeScriptCompilerAction -> @
|
|
18
|
-
* - JavaScriptMinifyAction -> @
|
|
19
|
-
* - SvgPackagerAction -> @
|
|
20
|
-
* - SvgSpriteAction -> @
|
|
21
|
-
* - SvgToPngAction -> @
|
|
22
|
-
* - SvgReaderAction -> @
|
|
23
|
-
* - LintAction -> @
|
|
24
|
-
* - DocumentationAction -> @
|
|
25
|
-
* - PackageManagerAction -> @
|
|
26
|
-
* - RunScriptAction -> @
|
|
16
|
+
* - StyleProcessingAction -> @getkist/action-sass
|
|
17
|
+
* - TypeScriptCompilerAction -> @getkist/action-typescript
|
|
18
|
+
* - JavaScriptMinifyAction -> @getkist/action-terser
|
|
19
|
+
* - SvgPackagerAction -> @getkist/action-svg
|
|
20
|
+
* - SvgSpriteAction -> @getkist/action-svg
|
|
21
|
+
* - SvgToPngAction -> @getkist/action-svg
|
|
22
|
+
* - SvgReaderAction -> @getkist/action-svg
|
|
23
|
+
* - LintAction -> @getkist/action-lint
|
|
24
|
+
* - DocumentationAction -> @getkist/action-docs
|
|
25
|
+
* - PackageManagerAction -> @getkist/action-package-manager
|
|
26
|
+
* - RunScriptAction -> @getkist/action-scripts
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
export const CORE_ACTIONS = [
|
|
@@ -37,31 +37,31 @@ export const CORE_ACTIONS = [
|
|
|
37
37
|
] as const;
|
|
38
38
|
|
|
39
39
|
export const PLUGIN_ACTIONS = [
|
|
40
|
-
// @
|
|
40
|
+
// @getkist/action-sass
|
|
41
41
|
"StyleProcessingAction",
|
|
42
42
|
|
|
43
|
-
// @
|
|
43
|
+
// @getkist/action-typescript
|
|
44
44
|
"TypeScriptCompilerAction",
|
|
45
45
|
|
|
46
|
-
// @
|
|
46
|
+
// @getkist/action-terser
|
|
47
47
|
"JavaScriptMinifyAction",
|
|
48
48
|
|
|
49
|
-
// @
|
|
49
|
+
// @getkist/action-svg
|
|
50
50
|
"SvgPackagerAction",
|
|
51
51
|
"SvgReaderAction",
|
|
52
52
|
"SvgSpriteAction",
|
|
53
53
|
"SvgToPngAction",
|
|
54
54
|
|
|
55
|
-
// @
|
|
55
|
+
// @getkist/action-lint
|
|
56
56
|
"LintAction",
|
|
57
57
|
|
|
58
|
-
// @
|
|
58
|
+
// @getkist/action-docs
|
|
59
59
|
"DocumentationAction",
|
|
60
60
|
|
|
61
|
-
// @
|
|
61
|
+
// @getkist/action-package-manager
|
|
62
62
|
"PackageManagerAction",
|
|
63
63
|
|
|
64
|
-
// @
|
|
64
|
+
// @getkist/action-scripts
|
|
65
65
|
"RunScriptAction",
|
|
66
66
|
] as const;
|
|
67
67
|
|
|
@@ -80,58 +80,58 @@ export const PLUGIN_PACKAGES: Record<
|
|
|
80
80
|
}
|
|
81
81
|
> = {
|
|
82
82
|
StyleProcessingAction: {
|
|
83
|
-
package: "@
|
|
84
|
-
npm: "npm install --save-dev @
|
|
85
|
-
github: "https://github.com/getkist/action-sass",
|
|
83
|
+
package: "@getkist/action-sass",
|
|
84
|
+
npm: "npm install --save-dev @getkist/action-sass",
|
|
85
|
+
github: "https://github.com/getkist/kist-action-sass",
|
|
86
86
|
},
|
|
87
87
|
TypeScriptCompilerAction: {
|
|
88
|
-
package: "@
|
|
89
|
-
npm: "npm install --save-dev @
|
|
90
|
-
github: "https://github.com/getkist/action-typescript",
|
|
88
|
+
package: "@getkist/action-typescript",
|
|
89
|
+
npm: "npm install --save-dev @getkist/action-typescript",
|
|
90
|
+
github: "https://github.com/getkist/kist-action-typescript",
|
|
91
91
|
},
|
|
92
92
|
JavaScriptMinifyAction: {
|
|
93
|
-
package: "@
|
|
94
|
-
npm: "npm install --save-dev @
|
|
95
|
-
github: "https://github.com/getkist/action-terser",
|
|
93
|
+
package: "@getkist/action-terser",
|
|
94
|
+
npm: "npm install --save-dev @getkist/action-terser",
|
|
95
|
+
github: "https://github.com/getkist/kist-action-terser",
|
|
96
96
|
},
|
|
97
97
|
SvgPackagerAction: {
|
|
98
|
-
package: "@
|
|
99
|
-
npm: "npm install --save-dev @
|
|
100
|
-
github: "https://github.com/getkist/action-svg",
|
|
98
|
+
package: "@getkist/action-svg",
|
|
99
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
100
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
101
101
|
},
|
|
102
102
|
SvgReaderAction: {
|
|
103
|
-
package: "@
|
|
104
|
-
npm: "npm install --save-dev @
|
|
105
|
-
github: "https://github.com/getkist/action-svg",
|
|
103
|
+
package: "@getkist/action-svg",
|
|
104
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
105
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
106
106
|
},
|
|
107
107
|
SvgSpriteAction: {
|
|
108
|
-
package: "@
|
|
109
|
-
npm: "npm install --save-dev @
|
|
110
|
-
github: "https://github.com/getkist/action-svg",
|
|
108
|
+
package: "@getkist/action-svg",
|
|
109
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
110
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
111
111
|
},
|
|
112
112
|
SvgToPngAction: {
|
|
113
|
-
package: "@
|
|
114
|
-
npm: "npm install --save-dev @
|
|
115
|
-
github: "https://github.com/getkist/action-svg",
|
|
113
|
+
package: "@getkist/action-svg",
|
|
114
|
+
npm: "npm install --save-dev @getkist/action-svg",
|
|
115
|
+
github: "https://github.com/getkist/kist-action-svg",
|
|
116
116
|
},
|
|
117
117
|
LintAction: {
|
|
118
|
-
package: "@
|
|
119
|
-
npm: "npm install --save-dev @
|
|
120
|
-
github: "https://github.com/getkist/action-lint",
|
|
118
|
+
package: "@getkist/action-lint",
|
|
119
|
+
npm: "npm install --save-dev @getkist/action-lint",
|
|
120
|
+
github: "https://github.com/getkist/kist-action-lint",
|
|
121
121
|
},
|
|
122
122
|
DocumentationAction: {
|
|
123
|
-
package: "@
|
|
124
|
-
npm: "npm install --save-dev @
|
|
125
|
-
github: "https://github.com/getkist/action-docs",
|
|
123
|
+
package: "@getkist/action-docs",
|
|
124
|
+
npm: "npm install --save-dev @getkist/action-docs",
|
|
125
|
+
github: "https://github.com/getkist/kist-action-docs",
|
|
126
126
|
},
|
|
127
127
|
PackageManagerAction: {
|
|
128
|
-
package: "@
|
|
129
|
-
npm: "npm install --save-dev @
|
|
130
|
-
github: "https://github.com/getkist/action-package-manager",
|
|
128
|
+
package: "@getkist/action-package-manager",
|
|
129
|
+
npm: "npm install --save-dev @getkist/action-package-manager",
|
|
130
|
+
github: "https://github.com/getkist/kist-action-package-manager",
|
|
131
131
|
},
|
|
132
132
|
RunScriptAction: {
|
|
133
|
-
package: "@
|
|
134
|
-
npm: "npm install --save-dev @
|
|
135
|
-
github: "https://github.com/getkist/action-scripts",
|
|
133
|
+
package: "@getkist/action-scripts",
|
|
134
|
+
npm: "npm install --save-dev @getkist/action-scripts",
|
|
135
|
+
github: "https://github.com/getkist/kist-action-scripts",
|
|
136
136
|
},
|
|
137
137
|
};
|
|
@@ -15,7 +15,7 @@ import { AbstractProcess } from "../abstract/AbstractProcess";
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* PluginManager handles discovery, loading, and lifecycle of kist plugins.
|
|
18
|
-
* Supports both npm-installed plugins (@
|
|
18
|
+
* Supports both npm-installed plugins (@getkist/plugin-*) and local plugins.
|
|
19
19
|
*/
|
|
20
20
|
export class PluginManager extends AbstractProcess {
|
|
21
21
|
// Parameters
|
|
@@ -52,7 +52,7 @@ export class PluginManager extends AbstractProcess {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Discovers and loads all available plugins from:
|
|
55
|
-
* - node_modules/@
|
|
55
|
+
* - node_modules/@getkist/plugin-*
|
|
56
56
|
* - node_modules/kist-plugin-*
|
|
57
57
|
* - Local plugins directory (if configured)
|
|
58
58
|
*/
|
|
@@ -63,7 +63,7 @@ export class PluginManager extends AbstractProcess {
|
|
|
63
63
|
this.logInfo("Starting plugin discovery...");
|
|
64
64
|
|
|
65
65
|
const prefixes = options?.pluginPrefixes || [
|
|
66
|
-
"@
|
|
66
|
+
"@getkist/action-",
|
|
67
67
|
"kist-plugin-",
|
|
68
68
|
];
|
|
69
69
|
|
|
@@ -92,7 +92,7 @@ export class PluginManager extends AbstractProcess {
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
for (const dir of directories) {
|
|
95
|
-
// Check for scoped packages (@
|
|
95
|
+
// Check for scoped packages (@getkist/plugin-*)
|
|
96
96
|
if (dir.isDirectory() && dir.name.startsWith("@")) {
|
|
97
97
|
await this.discoverScopedPlugins(
|
|
98
98
|
join(nodeModulesPath, dir.name),
|
|
@@ -120,7 +120,7 @@ export class PluginManager extends AbstractProcess {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Discovers plugins in scoped packages (@
|
|
123
|
+
* Discovers plugins in scoped packages (@getkist/*)
|
|
124
124
|
*/
|
|
125
125
|
private async discoverScopedPlugins(
|
|
126
126
|
scopePath: string,
|
|
@@ -131,7 +131,7 @@ export class PluginManager extends AbstractProcess {
|
|
|
131
131
|
|
|
132
132
|
for (const pkg of packages) {
|
|
133
133
|
for (const prefix of prefixes) {
|
|
134
|
-
const scopePrefix = prefix.split("/")[1]; // Extract "plugin-" from "@
|
|
134
|
+
const scopePrefix = prefix.split("/")[1]; // Extract "plugin-" from "@getkist/plugin-"
|
|
135
135
|
if (
|
|
136
136
|
pkg.isDirectory() &&
|
|
137
137
|
scopePrefix &&
|
package/ts/kist.ts
CHANGED
|
@@ -83,7 +83,7 @@ export class Kist extends AbstractProcess {
|
|
|
83
83
|
// Initialize and discover plugins first
|
|
84
84
|
const pluginManager = PluginManager.getInstance();
|
|
85
85
|
await pluginManager.discoverPlugins({
|
|
86
|
-
pluginPrefixes: ["@
|
|
86
|
+
pluginPrefixes: ["@getkist/action-", "kist-plugin-"],
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
// Log loaded plugins
|