@shell-shock/preset-script 0.6.67 → 0.6.69
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.
|
@@ -20,7 +20,6 @@ let _stryke_path_find = require("@stryke/path/find");
|
|
|
20
20
|
let _stryke_path_join = require("@stryke/path/join");
|
|
21
21
|
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
22
22
|
let _stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
23
|
-
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
24
23
|
|
|
25
24
|
//#region src/components/command-entry.tsx
|
|
26
25
|
function CommandInvocation(props) {
|
|
@@ -84,15 +83,15 @@ function CommandHandlerDeclaration(props) {
|
|
|
84
83
|
children: banner
|
|
85
84
|
}),
|
|
86
85
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
87
|
-
_alloy_js_core.code`writeLine("");`,
|
|
88
86
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
89
|
-
|
|
90
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_core_components_helpers.IsDebug, {});
|
|
91
|
-
},
|
|
87
|
+
condition: _alloy_js_core.code`!isHelp()`,
|
|
92
88
|
get children() {
|
|
93
|
-
return _alloy_js_core.code`writeLine(
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
return [_alloy_js_core.code`writeLine("");`, (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
90
|
+
get condition() {
|
|
91
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_core_components_helpers.IsDebug, {});
|
|
92
|
+
},
|
|
93
|
+
children: _alloy_js_core.code`writeLine(textColors.body.tertiary("Debug mode is enabled. Additional debug information may be logged to the console.")); `
|
|
94
|
+
})];
|
|
96
95
|
}
|
|
97
96
|
}),
|
|
98
97
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
@@ -156,6 +155,7 @@ function CommandEntry(props) {
|
|
|
156
155
|
"useGlobalOptions",
|
|
157
156
|
"useArgs",
|
|
158
157
|
"hasFlag",
|
|
158
|
+
"isHelp",
|
|
159
159
|
"withCommand"
|
|
160
160
|
],
|
|
161
161
|
[(0, _stryke_path_join.joinPaths)("help", ...command.segments.filter((segment) => !(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment)))]: ["showHelp"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-entry.d.cts","names":[],"sources":["../../src/components/command-entry.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"command-entry.d.cts","names":[],"sources":["../../src/components/command-entry.tsx"],"mappings":";;;;;iBAyDgB,iBAAA,CAAkB,KAAA;EAAS,OAAA,EAAS,WAAA;AAAA,IAAa,QAAA;AAAA,UAyBhD,8BAAA;EACf,OAAA,EAAS,WAAA;EACT,MAAA,GAAS,QAAA;EACT,QAAA,GAAW,QAAA;AAAA;;;;iBAMG,yBAAA,CACd,KAAA,EAAO,8BAAA,GAA8B,QAAA;AAAA,UAyDtB,iBAAA,SAA0B,IAAA,CACzC,cAAA;EAGA,OAAA,EAAS,WAAA;AAAA;;;;iBAMK,YAAA,CAAa,KAAA,EAAO,iBAAA,GAAiB,QAAA"}
|
|
@@ -17,7 +17,6 @@ import { findFilePath, relativePath } from "@stryke/path/find";
|
|
|
17
17
|
import { joinPaths } from "@stryke/path/join";
|
|
18
18
|
import { camelCase } from "@stryke/string-format/camel-case";
|
|
19
19
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
20
|
-
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
21
20
|
|
|
22
21
|
//#region src/components/command-entry.tsx
|
|
23
22
|
function CommandInvocation(props) {
|
|
@@ -81,15 +80,15 @@ function CommandHandlerDeclaration(props) {
|
|
|
81
80
|
children: banner
|
|
82
81
|
}),
|
|
83
82
|
createComponent(Spacing, {}),
|
|
84
|
-
code`writeLine("");`,
|
|
85
83
|
createComponent(IfStatement, {
|
|
86
|
-
|
|
87
|
-
return createComponent(IsDebug, {});
|
|
88
|
-
},
|
|
84
|
+
condition: code`!isHelp()`,
|
|
89
85
|
get children() {
|
|
90
|
-
return code`writeLine(
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
return [code`writeLine("");`, createComponent(IfStatement, {
|
|
87
|
+
get condition() {
|
|
88
|
+
return createComponent(IsDebug, {});
|
|
89
|
+
},
|
|
90
|
+
children: code`writeLine(textColors.body.tertiary("Debug mode is enabled. Additional debug information may be logged to the console.")); `
|
|
91
|
+
})];
|
|
93
92
|
}
|
|
94
93
|
}),
|
|
95
94
|
createComponent(Spacing, {}),
|
|
@@ -153,6 +152,7 @@ function CommandEntry(props) {
|
|
|
153
152
|
"useGlobalOptions",
|
|
154
153
|
"useArgs",
|
|
155
154
|
"hasFlag",
|
|
155
|
+
"isHelp",
|
|
156
156
|
"withCommand"
|
|
157
157
|
],
|
|
158
158
|
[joinPaths("help", ...command.segments.filter((segment) => !isDynamicPathSegment(segment)))]: ["showHelp"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/preset-script",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.69",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Shell Shock preset that generates a fully-featured script application.",
|
|
6
6
|
"keywords": [
|
|
@@ -195,21 +195,21 @@
|
|
|
195
195
|
"dependencies": {
|
|
196
196
|
"@alloy-js/core": "^0.23.1",
|
|
197
197
|
"@alloy-js/typescript": "^0.23.0",
|
|
198
|
-
"@powerlines/deepkit": "^0.9.
|
|
199
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
200
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
201
|
-
"@shell-shock/core": "0.17.
|
|
202
|
-
"@shell-shock/plugin-banner": "0.1.
|
|
203
|
-
"@shell-shock/plugin-console": "0.2.
|
|
204
|
-
"@shell-shock/plugin-help": "0.2.
|
|
205
|
-
"@shell-shock/plugin-theme": "0.4.
|
|
198
|
+
"@powerlines/deepkit": "^0.9.81",
|
|
199
|
+
"@powerlines/plugin-alloy": "^0.26.220",
|
|
200
|
+
"@powerlines/plugin-plugin": "^0.12.539",
|
|
201
|
+
"@shell-shock/core": "0.17.14",
|
|
202
|
+
"@shell-shock/plugin-banner": "0.1.41",
|
|
203
|
+
"@shell-shock/plugin-console": "0.2.18",
|
|
204
|
+
"@shell-shock/plugin-help": "0.2.32",
|
|
205
|
+
"@shell-shock/plugin-theme": "0.4.27",
|
|
206
206
|
"@stryke/helpers": "^0.10.24",
|
|
207
207
|
"@stryke/path": "^0.29.11",
|
|
208
208
|
"@stryke/string-format": "^0.17.26",
|
|
209
209
|
"defu": "^6.1.7",
|
|
210
|
-
"powerlines": "^0.47.
|
|
210
|
+
"powerlines": "^0.47.127"
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": { "@types/node": "^25.9.1" },
|
|
213
213
|
"publishConfig": { "access": "public" },
|
|
214
|
-
"gitHead": "
|
|
214
|
+
"gitHead": "484e42bc94f3641bd1c2fdfd8c13ad22898be16d"
|
|
215
215
|
}
|