@shell-shock/core 0.17.10 → 0.17.11
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/api.cjs +31 -143
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +2 -77
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +2 -76
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +30 -140
- package/dist/api.mjs.map +1 -1
- package/dist/components/command-validation-logic.cjs +14 -15
- package/dist/components/command-validation-logic.cjs.map +1 -0
- package/dist/components/command-validation-logic.d.cts +1 -3
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +1 -3
- package/dist/components/command-validation-logic.d.mts.map +1 -1
- package/dist/components/command-validation-logic.mjs +12 -13
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +6 -6
- package/dist/components/docs.cjs.map +1 -0
- package/dist/components/docs.d.cts +4 -5
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +4 -5
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs +4 -4
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +9 -11
- package/dist/components/exec-builtin.cjs.map +1 -0
- package/dist/components/exec-builtin.d.cts +1 -2
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts +1 -2
- package/dist/components/exec-builtin.d.mts.map +1 -1
- package/dist/components/exec-builtin.mjs +7 -10
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +4 -5
- package/dist/components/helpers.cjs.map +1 -0
- package/dist/components/helpers.d.cts +6 -8
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +6 -8
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/helpers.mjs +2 -3
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/options-parser-logic.cjs +29 -30
- package/dist/components/options-parser-logic.cjs.map +1 -0
- package/dist/components/options-parser-logic.d.cts +8 -9
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +8 -9
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs +27 -28
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +3 -2
- package/dist/components/state-builtin.cjs.map +1 -0
- package/dist/components/state-builtin.d.cts +4 -5
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +4 -5
- package/dist/components/state-builtin.d.mts.map +1 -1
- package/dist/components/state-builtin.mjs +1 -1
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +4 -5
- package/dist/components/usage.cjs.map +1 -0
- package/dist/components/usage.d.cts +1 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts +1 -2
- package/dist/components/usage.d.mts.map +1 -1
- package/dist/components/usage.mjs +2 -3
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +5 -4
- package/dist/components/utils-builtin.cjs.map +1 -0
- package/dist/components/utils-builtin.d.cts +7 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +7 -8
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +3 -3
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +53 -19
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +29 -8
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +29 -8
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +51 -18
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +2 -2
- package/dist/contexts/command.cjs.map +1 -0
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts.map +1 -1
- package/dist/contexts/command.mjs.map +1 -1
- package/dist/contexts/options.cjs +4 -4
- package/dist/contexts/options.cjs.map +1 -0
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts.map +1 -1
- package/dist/contexts/options.mjs +2 -3
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/engine.cjs +138 -0
- package/dist/engine.cjs.map +1 -0
- package/dist/engine.d.cts +79 -0
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +79 -0
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +136 -0
- package/dist/engine.mjs.map +1 -0
- package/dist/helpers/automd.cjs +6 -7
- package/dist/helpers/automd.cjs.map +1 -0
- package/dist/helpers/automd.mjs +2 -3
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +2 -2
- package/dist/helpers/docs-helpers.cjs.map +1 -0
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/get-framework.cjs +24 -0
- package/dist/helpers/get-framework.cjs.map +1 -0
- package/dist/helpers/get-framework.mjs +24 -0
- package/dist/helpers/get-framework.mjs.map +1 -0
- package/dist/helpers/paths.cjs +5 -5
- package/dist/helpers/paths.cjs.map +1 -0
- package/dist/helpers/paths.mjs +4 -4
- package/dist/helpers/paths.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +4 -6
- package/dist/helpers/persistence.cjs.map +1 -0
- package/dist/helpers/persistence.mjs +3 -3
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +2 -2
- package/dist/helpers/update-package-json.cjs.map +1 -0
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +3 -3
- package/dist/helpers/utilities.cjs.map +1 -0
- package/dist/helpers/utilities.mjs +1 -1
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs +3 -3
- package/dist/helpers/validations.cjs.map +1 -0
- package/dist/helpers/validations.mjs +1 -3
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +121 -51
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +80 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +80 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +118 -6
- package/dist/index.mjs.map +1 -0
- package/dist/package.cjs +12 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.mjs +6 -0
- package/dist/package.mjs.map +1 -0
- package/dist/plugin-utils/compute-bin.cjs +8 -10
- package/dist/plugin-utils/compute-bin.cjs.map +1 -0
- package/dist/plugin-utils/compute-bin.d.cts +2 -2
- package/dist/plugin-utils/compute-bin.d.cts.map +1 -1
- package/dist/plugin-utils/compute-bin.d.mts +2 -2
- package/dist/plugin-utils/compute-bin.d.mts.map +1 -1
- package/dist/plugin-utils/compute-bin.mjs +6 -8
- package/dist/plugin-utils/compute-bin.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +7 -14
- package/dist/plugin-utils/context-helpers.cjs.map +1 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -4
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +4 -4
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +5 -12
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/deepkit.cjs +15 -16
- package/dist/plugin-utils/deepkit.cjs.map +1 -0
- package/dist/plugin-utils/deepkit.d.cts +5 -5
- package/dist/plugin-utils/deepkit.d.cts.map +1 -1
- package/dist/plugin-utils/deepkit.d.mts +5 -5
- package/dist/plugin-utils/deepkit.d.mts.map +1 -1
- package/dist/plugin-utils/deepkit.mjs +14 -15
- package/dist/plugin-utils/deepkit.mjs.map +1 -1
- package/dist/plugin-utils/description-helpers.cjs +2 -1
- package/dist/plugin-utils/description-helpers.cjs.map +1 -0
- package/dist/plugin-utils/description-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/description-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/description-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs +2 -1
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +1 -1
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.mts +2 -2
- package/dist/plugin-utils/index.mjs +2 -2
- package/dist/plugin-utils/reflect.cjs +5 -5
- package/dist/plugin-utils/reflect.cjs.map +1 -0
- package/dist/plugin-utils/reflect.d.cts.map +1 -1
- package/dist/plugin-utils/reflect.d.mts.map +1 -1
- package/dist/plugin-utils/reflect.mjs +3 -5
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +2 -1
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/type-checks.cjs +146 -17
- package/dist/plugin-utils/type-checks.cjs.map +1 -0
- package/dist/plugin-utils/type-checks.d.cts +5 -5
- package/dist/plugin-utils/type-checks.d.cts.map +1 -1
- package/dist/plugin-utils/type-checks.d.mts +5 -5
- package/dist/plugin-utils/type-checks.d.mts.map +1 -1
- package/dist/plugin-utils/type-checks.mjs +145 -16
- package/dist/plugin-utils/type-checks.mjs.map +1 -1
- package/dist/plugin.cjs +80 -56
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +75 -52
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/helpers.cjs +33 -24
- package/dist/resolver/helpers.cjs.map +1 -0
- package/dist/resolver/helpers.mjs +32 -22
- package/dist/resolver/helpers.mjs.map +1 -1
- package/dist/resolver/resolve.cjs +316 -59
- package/dist/resolver/resolve.cjs.map +1 -0
- package/dist/resolver/resolve.mjs +313 -56
- package/dist/resolver/resolve.mjs.map +1 -1
- package/dist/types/command.cjs +43 -82
- package/dist/types/command.cjs.map +1 -0
- package/dist/types/command.d.cts +61 -119
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts +61 -119
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs +42 -80
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +45 -4
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +15 -10
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +15 -10
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +40 -4
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/context.cjs +9 -1
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.d.cts +3 -2
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +3 -2
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/context.mjs +7 -1
- package/dist/types/context.mjs.map +1 -1
- package/dist/types/env.cjs +2 -1
- package/dist/types/env.cjs.map +1 -0
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/env.mjs.map +1 -1
- package/dist/types/index.cjs +6 -3
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +4 -4
- package/dist/types/options.cjs +2 -1
- package/dist/types/options.cjs.map +1 -0
- package/dist/types/options.d.cts.map +1 -1
- package/dist/types/options.d.mts.map +1 -1
- package/dist/types/options.mjs.map +1 -1
- package/package.json +43 -35
- package/dist/resolver/deepkit.cjs +0 -135
- package/dist/resolver/deepkit.mjs +0 -135
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/module.cjs +0 -145
- package/dist/resolver/module.mjs +0 -145
- package/dist/resolver/module.mjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,148 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
1
|
+
const require_package = require('./package.cjs');
|
|
3
2
|
const require_plugin = require('./plugin.cjs');
|
|
4
|
-
let
|
|
3
|
+
let powerlines_api_build = require("powerlines/api/build");
|
|
4
|
+
let powerlines_api_clean = require("powerlines/api/clean");
|
|
5
|
+
let powerlines_api_create = require("powerlines/api/create");
|
|
6
|
+
let powerlines_api_deploy = require("powerlines/api/deploy");
|
|
7
|
+
let powerlines_api_docs = require("powerlines/api/docs");
|
|
8
|
+
let powerlines_api_lint = require("powerlines/api/lint");
|
|
9
|
+
let powerlines_api_prepare = require("powerlines/api/prepare");
|
|
10
|
+
let powerlines_api_test = require("powerlines/api/test");
|
|
11
|
+
let powerlines_api_types = require("powerlines/api/types");
|
|
12
|
+
let powerlines_helpers = require("powerlines/helpers");
|
|
5
13
|
|
|
6
14
|
//#region src/api.ts
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
root,
|
|
26
|
-
cwd: cwd || process.cwd(),
|
|
27
|
-
mode,
|
|
28
|
-
logLevel,
|
|
29
|
-
organization,
|
|
30
|
-
configFile,
|
|
31
|
-
framework: "shell-shock"
|
|
32
|
-
}, {
|
|
33
|
-
plugins: [require_plugin.default(pluginOptions)],
|
|
34
|
-
framework: "shell-shock"
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Gets the current build context, which includes information about the project, environment, and configuration. This context is used internally by the Shell Shock API to manage the build process and provide relevant data to plugins and other components.
|
|
39
|
-
*
|
|
40
|
-
* @returns The current build context.
|
|
41
|
-
*/
|
|
42
|
-
get context() {
|
|
43
|
-
return this.#powerlines.context;
|
|
44
|
-
}
|
|
45
|
-
constructor(powerlines) {
|
|
46
|
-
this.#powerlines = powerlines;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.
|
|
50
|
-
*
|
|
51
|
-
* @param inlineConfig - The inline configuration options for the clean operation.
|
|
52
|
-
* @returns A promise that resolves when the clean operation is complete.
|
|
53
|
-
*/
|
|
54
|
-
async clean(inlineConfig) {
|
|
55
|
-
return this.#powerlines.clean(inlineConfig);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.
|
|
59
|
-
*
|
|
60
|
-
* @param inlineConfig - The inline configuration options for the prepare operation.
|
|
61
|
-
* @returns A promise that resolves when the prepare operation is complete.
|
|
62
|
-
*/
|
|
63
|
-
async prepare(inlineConfig) {
|
|
64
|
-
return this.#powerlines.prepare(inlineConfig);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.
|
|
68
|
-
*
|
|
69
|
-
* @param inlineConfig - The inline configuration options for the lint operation.
|
|
70
|
-
* @returns A promise that resolves when the lint operation is complete.
|
|
71
|
-
*/
|
|
72
|
-
async lint(inlineConfig) {
|
|
73
|
-
return this.#powerlines.lint(inlineConfig);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.
|
|
77
|
-
*
|
|
78
|
-
* @param inlineConfig - The inline configuration options for the build operation.
|
|
79
|
-
* @returns A promise that resolves when the build operation is complete.
|
|
80
|
-
*/
|
|
81
|
-
async build(inlineConfig) {
|
|
82
|
-
return this.#powerlines.build(inlineConfig);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.
|
|
86
|
-
*
|
|
87
|
-
* @param inlineConfig - The inline configuration options for the documentation operation.
|
|
88
|
-
* @returns A promise that resolves when the documentation generation is complete.
|
|
89
|
-
*/
|
|
90
|
-
async docs(inlineConfig) {
|
|
91
|
-
return this.#powerlines.docs(inlineConfig);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.
|
|
95
|
-
*
|
|
96
|
-
* @returns A promise that resolves when the finalize operation is complete.
|
|
97
|
-
*/
|
|
98
|
-
async finalize() {
|
|
99
|
-
return this.#powerlines.finalize();
|
|
100
|
-
}
|
|
101
|
-
static __type = [
|
|
102
|
-
"#powerlines",
|
|
103
|
-
"EngineOptions",
|
|
104
|
-
"options",
|
|
105
|
-
() => ShellShockAPI,
|
|
106
|
-
"from",
|
|
107
|
-
"Creates a new instance of the {@link ShellShockAPI} class using the provided configuration options. This method initializes the underlying Powerlines API with the appropriate plugins and settings for Shell Shock.",
|
|
108
|
-
"powerlines",
|
|
109
|
-
"constructor",
|
|
110
|
-
"inlineConfig",
|
|
111
|
-
"clean",
|
|
112
|
-
"Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.",
|
|
113
|
-
"prepare",
|
|
114
|
-
"Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.",
|
|
115
|
-
"lint",
|
|
116
|
-
"Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.",
|
|
117
|
-
"build",
|
|
118
|
-
"Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.",
|
|
119
|
-
"docs",
|
|
120
|
-
"Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.",
|
|
121
|
-
"finalize",
|
|
122
|
-
"Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.",
|
|
123
|
-
"ShellShockAPI",
|
|
124
|
-
"The Shell Shock API class.",
|
|
125
|
-
"!3!P\"w\"2#P7$`0%s?&!P!2'\"0(P!2)$`0*?+P!2)$`0,?-P!2)$`0.?/P!2)$`00?1P!2)$`02?3P$`04?55w6?7"
|
|
126
|
-
];
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Creates a new {@link ShellShockAPI} instance.
|
|
130
|
-
*
|
|
131
|
-
* @param options - The user configuration options.
|
|
132
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
133
|
-
*/
|
|
134
|
-
async function createShellShock(options) {
|
|
135
|
-
return ShellShockAPI.from(options);
|
|
136
|
-
}
|
|
137
|
-
createShellShock.__type = [
|
|
138
|
-
"EngineOptions",
|
|
139
|
-
"options",
|
|
140
|
-
() => ShellShockAPI,
|
|
141
|
-
"createShellShock",
|
|
142
|
-
"Creates a new {@link ShellShockAPI} instance.",
|
|
143
|
-
"P\"w!2\"P7#`/$?%"
|
|
144
|
-
];
|
|
15
|
+
var api_default = (0, powerlines_helpers.createApi)({
|
|
16
|
+
types: powerlines_api_types.types,
|
|
17
|
+
prepare: powerlines_api_prepare.prepare,
|
|
18
|
+
create: powerlines_api_create.create,
|
|
19
|
+
clean: powerlines_api_clean.clean,
|
|
20
|
+
lint: powerlines_api_lint.lint,
|
|
21
|
+
test: powerlines_api_test.test,
|
|
22
|
+
build: powerlines_api_build.build,
|
|
23
|
+
docs: powerlines_api_docs.docs,
|
|
24
|
+
deploy: powerlines_api_deploy.deploy
|
|
25
|
+
}, {
|
|
26
|
+
plugins: [require_plugin.default()],
|
|
27
|
+
framework: {
|
|
28
|
+
name: "shell-shock",
|
|
29
|
+
version: require_package.version,
|
|
30
|
+
orgId: "storm-software"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
145
33
|
|
|
146
34
|
//#endregion
|
|
147
|
-
exports
|
|
148
|
-
|
|
35
|
+
module.exports = api_default;
|
|
36
|
+
//# sourceMappingURL=api.cjs.map
|
package/dist/api.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.cjs","names":[],"sources":[],"mappings":""}
|
package/dist/api.d.cts
CHANGED
|
@@ -1,79 +1,4 @@
|
|
|
1
|
-
import { EngineOptions as EngineOptions$1 } from "./types/config.cjs";
|
|
2
|
-
import { BuildInlineConfig, CleanInlineConfig, DocsInlineConfig, LintInlineConfig, PrepareInlineConfig } from "powerlines";
|
|
3
|
-
import { PowerlinesExecutionContext } from "powerlines/context";
|
|
4
|
-
|
|
5
1
|
//#region src/api.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
11
|
-
*/
|
|
12
|
-
declare class ShellShockAPI {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new instance of the {@link ShellShockAPI} class using the provided configuration options. This method initializes the underlying Powerlines API with the appropriate plugins and settings for Shell Shock.
|
|
16
|
-
*
|
|
17
|
-
* @param options - The user configuration options.
|
|
18
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
19
|
-
*/
|
|
20
|
-
static from(options: EngineOptions$1): Promise<ShellShockAPI>;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the current build context, which includes information about the project, environment, and configuration. This context is used internally by the Shell Shock API to manage the build process and provide relevant data to plugins and other components.
|
|
23
|
-
*
|
|
24
|
-
* @returns The current build context.
|
|
25
|
-
*/
|
|
26
|
-
get context(): PowerlinesExecutionContext;
|
|
27
|
-
private constructor();
|
|
28
|
-
/**
|
|
29
|
-
* Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.
|
|
30
|
-
*
|
|
31
|
-
* @param inlineConfig - The inline configuration options for the clean operation.
|
|
32
|
-
* @returns A promise that resolves when the clean operation is complete.
|
|
33
|
-
*/
|
|
34
|
-
clean(inlineConfig: CleanInlineConfig): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.
|
|
37
|
-
*
|
|
38
|
-
* @param inlineConfig - The inline configuration options for the prepare operation.
|
|
39
|
-
* @returns A promise that resolves when the prepare operation is complete.
|
|
40
|
-
*/
|
|
41
|
-
prepare(inlineConfig: PrepareInlineConfig): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.
|
|
44
|
-
*
|
|
45
|
-
* @param inlineConfig - The inline configuration options for the lint operation.
|
|
46
|
-
* @returns A promise that resolves when the lint operation is complete.
|
|
47
|
-
*/
|
|
48
|
-
lint(inlineConfig: LintInlineConfig): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.
|
|
51
|
-
*
|
|
52
|
-
* @param inlineConfig - The inline configuration options for the build operation.
|
|
53
|
-
* @returns A promise that resolves when the build operation is complete.
|
|
54
|
-
*/
|
|
55
|
-
build(inlineConfig: BuildInlineConfig): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.
|
|
58
|
-
*
|
|
59
|
-
* @param inlineConfig - The inline configuration options for the documentation operation.
|
|
60
|
-
* @returns A promise that resolves when the documentation generation is complete.
|
|
61
|
-
*/
|
|
62
|
-
docs(inlineConfig: DocsInlineConfig): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.
|
|
65
|
-
*
|
|
66
|
-
* @returns A promise that resolves when the finalize operation is complete.
|
|
67
|
-
*/
|
|
68
|
-
finalize(): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Creates a new {@link ShellShockAPI} instance.
|
|
72
|
-
*
|
|
73
|
-
* @param options - The user configuration options.
|
|
74
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
75
|
-
*/
|
|
76
|
-
declare function createShellShock(options: EngineOptions$1): Promise<ShellShockAPI>;
|
|
77
|
-
//#endregion
|
|
78
|
-
export { ShellShockAPI, createShellShock };
|
|
2
|
+
declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "docs" | "create" | "clean" | "prepare" | "lint" | "test" | "build" | "deploy">) => Promise<void>;
|
|
3
|
+
export = _default;
|
|
79
4
|
//# sourceMappingURL=api.d.cts.map
|
package/dist/api.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/api.ts"],"mappings":""}
|
package/dist/api.d.mts
CHANGED
|
@@ -1,79 +1,5 @@
|
|
|
1
|
-
import { EngineOptions as EngineOptions$1 } from "./types/config.mjs";
|
|
2
|
-
import { BuildInlineConfig, CleanInlineConfig, DocsInlineConfig, LintInlineConfig, PrepareInlineConfig } from "powerlines";
|
|
3
|
-
import { PowerlinesExecutionContext } from "powerlines/context";
|
|
4
|
-
|
|
5
1
|
//#region src/api.d.ts
|
|
6
|
-
|
|
7
|
-
* The Shell Shock API class.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* This class provides methods to interact with the Shell Shock build system, including cleaning, preparing, linting, building, generating documentation, and finalizing projects.
|
|
11
|
-
*/
|
|
12
|
-
declare class ShellShockAPI {
|
|
13
|
-
#private;
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new instance of the {@link ShellShockAPI} class using the provided configuration options. This method initializes the underlying Powerlines API with the appropriate plugins and settings for Shell Shock.
|
|
16
|
-
*
|
|
17
|
-
* @param options - The user configuration options.
|
|
18
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
19
|
-
*/
|
|
20
|
-
static from(options: EngineOptions$1): Promise<ShellShockAPI>;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the current build context, which includes information about the project, environment, and configuration. This context is used internally by the Shell Shock API to manage the build process and provide relevant data to plugins and other components.
|
|
23
|
-
*
|
|
24
|
-
* @returns The current build context.
|
|
25
|
-
*/
|
|
26
|
-
get context(): PowerlinesExecutionContext;
|
|
27
|
-
private constructor();
|
|
28
|
-
/**
|
|
29
|
-
* Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.
|
|
30
|
-
*
|
|
31
|
-
* @param inlineConfig - The inline configuration options for the clean operation.
|
|
32
|
-
* @returns A promise that resolves when the clean operation is complete.
|
|
33
|
-
*/
|
|
34
|
-
clean(inlineConfig: CleanInlineConfig): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.
|
|
37
|
-
*
|
|
38
|
-
* @param inlineConfig - The inline configuration options for the prepare operation.
|
|
39
|
-
* @returns A promise that resolves when the prepare operation is complete.
|
|
40
|
-
*/
|
|
41
|
-
prepare(inlineConfig: PrepareInlineConfig): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.
|
|
44
|
-
*
|
|
45
|
-
* @param inlineConfig - The inline configuration options for the lint operation.
|
|
46
|
-
* @returns A promise that resolves when the lint operation is complete.
|
|
47
|
-
*/
|
|
48
|
-
lint(inlineConfig: LintInlineConfig): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.
|
|
51
|
-
*
|
|
52
|
-
* @param inlineConfig - The inline configuration options for the build operation.
|
|
53
|
-
* @returns A promise that resolves when the build operation is complete.
|
|
54
|
-
*/
|
|
55
|
-
build(inlineConfig: BuildInlineConfig): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.
|
|
58
|
-
*
|
|
59
|
-
* @param inlineConfig - The inline configuration options for the documentation operation.
|
|
60
|
-
* @returns A promise that resolves when the documentation generation is complete.
|
|
61
|
-
*/
|
|
62
|
-
docs(inlineConfig: DocsInlineConfig): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.
|
|
65
|
-
*
|
|
66
|
-
* @returns A promise that resolves when the finalize operation is complete.
|
|
67
|
-
*/
|
|
68
|
-
finalize(): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Creates a new {@link ShellShockAPI} instance.
|
|
72
|
-
*
|
|
73
|
-
* @param options - The user configuration options.
|
|
74
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
75
|
-
*/
|
|
76
|
-
declare function createShellShock(options: EngineOptions$1): Promise<ShellShockAPI>;
|
|
2
|
+
declare const _default: (params: import("@powerlines/engine").ExecutionApiParams<import("powerlines").ExecutionOptions, "types" | "docs" | "create" | "clean" | "prepare" | "lint" | "test" | "build" | "deploy">) => Promise<void>;
|
|
77
3
|
//#endregion
|
|
78
|
-
export {
|
|
4
|
+
export { _default as default };
|
|
79
5
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/api.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/api.ts"],"mappings":""}
|
package/dist/api.mjs
CHANGED
|
@@ -1,146 +1,36 @@
|
|
|
1
|
+
import { version } from "./package.mjs";
|
|
1
2
|
import plugin from "./plugin.mjs";
|
|
2
|
-
import {
|
|
3
|
+
import { build } from "powerlines/api/build";
|
|
4
|
+
import { clean } from "powerlines/api/clean";
|
|
5
|
+
import { create } from "powerlines/api/create";
|
|
6
|
+
import { deploy } from "powerlines/api/deploy";
|
|
7
|
+
import { docs } from "powerlines/api/docs";
|
|
8
|
+
import { lint } from "powerlines/api/lint";
|
|
9
|
+
import { prepare } from "powerlines/api/prepare";
|
|
10
|
+
import { test } from "powerlines/api/test";
|
|
11
|
+
import { types } from "powerlines/api/types";
|
|
12
|
+
import { createApi } from "powerlines/helpers";
|
|
3
13
|
|
|
4
14
|
//#region src/api.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
root,
|
|
24
|
-
cwd: cwd || process.cwd(),
|
|
25
|
-
mode,
|
|
26
|
-
logLevel,
|
|
27
|
-
organization,
|
|
28
|
-
configFile,
|
|
29
|
-
framework: "shell-shock"
|
|
30
|
-
}, {
|
|
31
|
-
plugins: [plugin(pluginOptions)],
|
|
32
|
-
framework: "shell-shock"
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Gets the current build context, which includes information about the project, environment, and configuration. This context is used internally by the Shell Shock API to manage the build process and provide relevant data to plugins and other components.
|
|
37
|
-
*
|
|
38
|
-
* @returns The current build context.
|
|
39
|
-
*/
|
|
40
|
-
get context() {
|
|
41
|
-
return this.#powerlines.context;
|
|
42
|
-
}
|
|
43
|
-
constructor(powerlines) {
|
|
44
|
-
this.#powerlines = powerlines;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.
|
|
48
|
-
*
|
|
49
|
-
* @param inlineConfig - The inline configuration options for the clean operation.
|
|
50
|
-
* @returns A promise that resolves when the clean operation is complete.
|
|
51
|
-
*/
|
|
52
|
-
async clean(inlineConfig) {
|
|
53
|
-
return this.#powerlines.clean(inlineConfig);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.
|
|
57
|
-
*
|
|
58
|
-
* @param inlineConfig - The inline configuration options for the prepare operation.
|
|
59
|
-
* @returns A promise that resolves when the prepare operation is complete.
|
|
60
|
-
*/
|
|
61
|
-
async prepare(inlineConfig) {
|
|
62
|
-
return this.#powerlines.prepare(inlineConfig);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.
|
|
66
|
-
*
|
|
67
|
-
* @param inlineConfig - The inline configuration options for the lint operation.
|
|
68
|
-
* @returns A promise that resolves when the lint operation is complete.
|
|
69
|
-
*/
|
|
70
|
-
async lint(inlineConfig) {
|
|
71
|
-
return this.#powerlines.lint(inlineConfig);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.
|
|
75
|
-
*
|
|
76
|
-
* @param inlineConfig - The inline configuration options for the build operation.
|
|
77
|
-
* @returns A promise that resolves when the build operation is complete.
|
|
78
|
-
*/
|
|
79
|
-
async build(inlineConfig) {
|
|
80
|
-
return this.#powerlines.build(inlineConfig);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.
|
|
84
|
-
*
|
|
85
|
-
* @param inlineConfig - The inline configuration options for the documentation operation.
|
|
86
|
-
* @returns A promise that resolves when the documentation generation is complete.
|
|
87
|
-
*/
|
|
88
|
-
async docs(inlineConfig) {
|
|
89
|
-
return this.#powerlines.docs(inlineConfig);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.
|
|
93
|
-
*
|
|
94
|
-
* @returns A promise that resolves when the finalize operation is complete.
|
|
95
|
-
*/
|
|
96
|
-
async finalize() {
|
|
97
|
-
return this.#powerlines.finalize();
|
|
98
|
-
}
|
|
99
|
-
static __type = [
|
|
100
|
-
"#powerlines",
|
|
101
|
-
"EngineOptions",
|
|
102
|
-
"options",
|
|
103
|
-
() => ShellShockAPI,
|
|
104
|
-
"from",
|
|
105
|
-
"Creates a new instance of the {@link ShellShockAPI} class using the provided configuration options. This method initializes the underlying Powerlines API with the appropriate plugins and settings for Shell Shock.",
|
|
106
|
-
"powerlines",
|
|
107
|
-
"constructor",
|
|
108
|
-
"inlineConfig",
|
|
109
|
-
"clean",
|
|
110
|
-
"Executes the clean phase of the build process, which typically involves removing generated files and resetting the build environment. The `inlineConfig` parameter allows users to specify additional options or overrides for the clean operation.",
|
|
111
|
-
"prepare",
|
|
112
|
-
"Executes the prepare phase of the build process, which typically involves setting up the build environment and installing dependencies. The `inlineConfig` parameter allows users to specify additional options or overrides for the prepare operation.",
|
|
113
|
-
"lint",
|
|
114
|
-
"Executes the lint phase of the build process, which typically involves analyzing code for quality and style issues. The `inlineConfig` parameter allows users to specify additional options or overrides for the lint operation.",
|
|
115
|
-
"build",
|
|
116
|
-
"Executes the build phase of the build process, which typically involves compiling source code and generating output artifacts. The `inlineConfig` parameter allows users to specify additional options or overrides for the build operation.",
|
|
117
|
-
"docs",
|
|
118
|
-
"Executes the documentation generation phase of the build process, which typically involves creating API documentation and other project documentation. The `inlineConfig` parameter allows users to specify additional options or overrides for the documentation operation.",
|
|
119
|
-
"finalize",
|
|
120
|
-
"Executes the finalize phase of the build process, which typically involves cleanup tasks and final reporting. This method should be called after all other build phases have completed.",
|
|
121
|
-
"ShellShockAPI",
|
|
122
|
-
"The Shell Shock API class.",
|
|
123
|
-
"!3!P\"w\"2#P7$`0%s?&!P!2'\"0(P!2)$`0*?+P!2)$`0,?-P!2)$`0.?/P!2)$`00?1P!2)$`02?3P$`04?55w6?7"
|
|
124
|
-
];
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Creates a new {@link ShellShockAPI} instance.
|
|
128
|
-
*
|
|
129
|
-
* @param options - The user configuration options.
|
|
130
|
-
* @returns A promise that resolves to a {@link ShellShockAPI} instance.
|
|
131
|
-
*/
|
|
132
|
-
async function createShellShock(options) {
|
|
133
|
-
return ShellShockAPI.from(options);
|
|
134
|
-
}
|
|
135
|
-
createShellShock.__type = [
|
|
136
|
-
"EngineOptions",
|
|
137
|
-
"options",
|
|
138
|
-
() => ShellShockAPI,
|
|
139
|
-
"createShellShock",
|
|
140
|
-
"Creates a new {@link ShellShockAPI} instance.",
|
|
141
|
-
"P\"w!2\"P7#`/$?%"
|
|
142
|
-
];
|
|
15
|
+
var api_default = createApi({
|
|
16
|
+
types,
|
|
17
|
+
prepare,
|
|
18
|
+
create,
|
|
19
|
+
clean,
|
|
20
|
+
lint,
|
|
21
|
+
test,
|
|
22
|
+
build,
|
|
23
|
+
docs,
|
|
24
|
+
deploy
|
|
25
|
+
}, {
|
|
26
|
+
plugins: [plugin()],
|
|
27
|
+
framework: {
|
|
28
|
+
name: "shell-shock",
|
|
29
|
+
version,
|
|
30
|
+
orgId: "storm-software"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
143
33
|
|
|
144
34
|
//#endregion
|
|
145
|
-
export {
|
|
35
|
+
export { api_default as default };
|
|
146
36
|
//# sourceMappingURL=api.mjs.map
|
package/dist/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":[],"mappings":""}
|