@shell-shock/preset-cli 0.7.11 → 0.7.13
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/components/banner-function-declaration.cjs +15 -15
- package/dist/components/banner-function-declaration.d.cts +2 -2
- package/dist/components/banner-function-declaration.mjs +1 -1
- package/dist/components/banner-function-declaration.mjs.map +1 -1
- package/dist/components/command-entry.cjs +35 -35
- package/dist/components/command-entry.d.cts +3 -3
- package/dist/components/command-entry.d.mts +1 -1
- package/dist/components/command-entry.mjs +34 -34
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/command-router.cjs +3 -3
- package/dist/components/command-router.d.cts +2 -2
- package/dist/components/command-router.d.mts +2 -2
- package/dist/components/command-router.mjs +1 -1
- package/dist/components/command-router.mjs.map +1 -1
- package/dist/components/virtual-command-entry.cjs +5 -11
- package/dist/components/virtual-command-entry.d.cts +3 -3
- package/dist/components/virtual-command-entry.d.mts +1 -1
- package/dist/components/virtual-command-entry.mjs +4 -10
- package/dist/components/virtual-command-entry.mjs.map +1 -1
- package/dist/helpers/get-default-options.cjs +3 -3
- package/dist/helpers/get-default-options.mjs +3 -3
- package/dist/helpers/get-default-options.mjs.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -3
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -2
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +36 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-command-entry.mjs","names":["computed","For","Show","usePowerlines","TypescriptFile","isDynamicPathSegment","VirtualCommandHandlerDeclaration","joinPaths","pascalCase","defu","BannerFunctionDeclaration","CommandEntry","CommandRouter","VirtualCommandEntry","props","command","imports","builtinImports","rest","context","filePath","entryPath","segments","filter","segment","join","_$createComponent","_$mergeProps","path","value","
|
|
1
|
+
{"version":3,"file":"virtual-command-entry.mjs","names":["computed","For","Show","usePowerlines","TypescriptFile","isDynamicPathSegment","VirtualCommandHandlerDeclaration","joinPaths","pascalCase","defu","BannerFunctionDeclaration","CommandEntry","CommandRouter","VirtualCommandEntry","props","command","imports","builtinImports","rest","context","filePath","entryPath","segments","filter","segment","join","_$createComponent","_$mergeProps","path","value","Object","entries","children","child","isVirtual","reduce","ret","name","alias","env","console","utils","prompts","_$createIntrinsic","commands","each","values","when","fallback"],"sources":["../../src/components/virtual-command-entry.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, For, Show } from \"@alloy-js/core\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { TypescriptFileImports } from \"@powerlines/plugin-alloy/types/components\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TypescriptFile } from \"@powerlines/plugin-alloy/typescript/components/typescript-file\";\nimport type { CommandTree } from \"@shell-shock/core\";\nimport { isDynamicPathSegment } from \"@shell-shock/core/plugin-utils\";\nimport { VirtualCommandHandlerDeclaration } from \"@shell-shock/preset-script/components/virtual-command-entry\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport defu from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\nimport { BannerFunctionDeclaration } from \"./banner-function-declaration\";\nimport { CommandEntry } from \"./command-entry\";\nimport { CommandRouter } from \"./command-router\";\n\nexport interface VirtualCommandEntryProps extends Omit<\n EntryFileProps,\n \"path\" | \"typeDefinition\"\n> {\n command: CommandTree;\n}\n\n/**\n * The virtual command entry point for the Shell Shock project.\n */\nexport function VirtualCommandEntry(props: VirtualCommandEntryProps) {\n const { command, imports, builtinImports, ...rest } = props;\n\n const context = usePowerlines<CLIPresetContext>();\n const filePath = computed(() =>\n joinPaths(\n context.entryPath,\n command.segments\n .filter(segment => !isDynamicPathSegment(segment))\n .join(\"/\"),\n \"index.ts\"\n )\n );\n\n return (\n <>\n <TypescriptFile\n {...rest}\n path={filePath.value}\n imports={defu(\n imports ?? {},\n Object.entries(command.children)\n .filter(([, child]) => child.isVirtual)\n .reduce((ret, [name, child]) => {\n ret[`./${child.name}`] = [\n { name: \"handler\", alias: `handle${pascalCase(name)}` }\n ];\n\n return ret;\n }, {} as TypescriptFileImports)\n )}\n builtinImports={defu(builtinImports ?? {}, {\n env: [\"isDevelopment\", \"isDebug\"],\n console: [\n \"warn\",\n \"error\",\n \"info\",\n \"help\",\n \"table\",\n \"colors\",\n \"writeLine\",\n \"splitText\",\n \"stripAnsi\"\n ],\n utils: [\n \"useApp\",\n \"useArgs\",\n \"hasFlag\",\n \"isMinimal\",\n \"isUnicodeSupported\",\n \"isInteractive\",\n \"isHelp\",\n \"findSuggestions\"\n ],\n prompts: [\"text\", \"numeric\", \"toggle\", \"select\", \"isCancel\", \"sleep\"]\n })}>\n <BannerFunctionDeclaration command={command} />\n <hbr />\n <hbr />\n <VirtualCommandHandlerDeclaration command={command}>\n <CommandRouter\n segments={command.segments}\n commands={command.children}\n />\n </VirtualCommandHandlerDeclaration>\n </TypescriptFile>\n <For each={Object.values(command.children)}>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA4CA,SAAgBa,oBAAoBC,OAAiC;CACnE,MAAM,EAAEC,SAASC,SAASC,gBAAgB,GAAGC,SAASJ;CAEtD,MAAMK,UAAUhB,eAAiC;CACjD,MAAMiB,WAAWpB,eACfO,UACEY,QAAQE,WACRN,QAAQO,SACLC,QAAOC,YAAW,CAACnB,qBAAqBmB,QAAQ,CAAC,CACjDC,KAAK,IAAI,EACZ,WAEJ,CAAC;AAED,QAAA,CAAAC,gBAEKtB,gBAAcuB,WACTT,MAAI;EAAA,IACRU,OAAI;AAAA,UAAER,SAASS;;EAAK,IACpBb,UAAO;AAAA,UAAEP,KACPO,WAAW,EAAE,EACbc,OAAOC,QAAQhB,QAAQiB,SAAS,CAC7BT,QAAQ,GAAGU,WAAWA,MAAMC,UAAU,CACtCC,QAAQC,KAAK,CAACC,MAAMJ,WAAW;AAC9BG,QAAI,KAAKH,MAAMI,UAAU,CACvB;KAAEA,MAAM;KAAWC,OAAO,SAAS9B,WAAW6B,KAAK;KAAI,CACxD;AAED,WAAOD;MACN,EAA2B,CAClC,CAAC;;EAAA,IACDnB,iBAAc;AAAA,UAAER,KAAKQ,kBAAkB,EAAE,EAAE;IACzCsB,KAAK,CAAC,iBAAiB,UAAU;IACjCC,SAAS;KACP;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD;IACDC,OAAO;KACL;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD;IACDC,SAAS;KAAC;KAAQ;KAAW;KAAU;KAAU;KAAY;KAAO;IACrE,CAAC;;EAAA,IAAAV,WAAA;AAAA,UAAA;IAAAN,gBACDhB,2BAAyB,EAAUK,SAAO,CAAA;IAAA4B,gBAAA,OAAA,EAAA,CAAA;IAAAA,gBAAA,OAAA,EAAA,CAAA;IAAAjB,gBAG1CpB,kCAAgC;KAAUS;KAAO,IAAAiB,WAAA;AAAA,aAAAN,gBAC/Cd,eAAa;OAAA,IACZU,WAAQ;AAAA,eAAEP,QAAQO;;OAAQ,IAC1BsB,WAAQ;AAAA,eAAE7B,QAAQiB;;OAAQ,CAAA;;KAAA,CAAA;IAAA;;EAAA,CAAA,CAAA,EAAAN,gBAI/BzB,KAAG;EAAA,IAAC4C,OAAI;AAAA,UAAEf,OAAOgB,OAAO/B,QAAQiB,SAAS;;EAAAA,WACvCC,UAAKP,gBACHxB,MAAI;GAAA,IACH6C,OAAI;AAAA,WAAEd,MAAMC;;GAAS,IACrBc,WAAQ;AAAA,WAAAtB,gBAAGf,cAAY,EAACI,SAASkB,OAAK,CAAA;;GAAA,IAAAD,WAAA;AAAA,WAAAN,gBACrCb,qBAAmB,EAACE,SAASkB,OAAK,CAAA;;GAAA,CAAA;EAEtC,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let
|
|
2
|
+
let __shell_shock_core = require("@shell-shock/core");
|
|
3
3
|
let __shell_shock_preset_script_helpers_get_default_options = require("@shell-shock/preset-script/helpers/get-default-options");
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/get-default-options.ts
|
|
@@ -18,7 +18,7 @@ function getDefaultOptions(context, _) {
|
|
|
18
18
|
title: "Interactive",
|
|
19
19
|
description: "Enable interactive mode - will be set to false if running in a CI pipeline.",
|
|
20
20
|
alias: ["i", "interact"],
|
|
21
|
-
kind:
|
|
21
|
+
kind: __shell_shock_core.CommandParameterKinds.boolean,
|
|
22
22
|
optional: true,
|
|
23
23
|
default: context.config.interactive !== false
|
|
24
24
|
},
|
|
@@ -27,7 +27,7 @@ function getDefaultOptions(context, _) {
|
|
|
27
27
|
title: "Non-Interactive",
|
|
28
28
|
description: "Disable interactive mode - will be set to true if running in a CI pipeline.",
|
|
29
29
|
alias: ["no-interactive"],
|
|
30
|
-
kind:
|
|
30
|
+
kind: __shell_shock_core.CommandParameterKinds.boolean,
|
|
31
31
|
optional: true,
|
|
32
32
|
default: false,
|
|
33
33
|
isNegativeOf: "interactive"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommandParameterKinds } from "@shell-shock/core";
|
|
2
2
|
import { getDefaultOptions } from "@shell-shock/preset-script/helpers/get-default-options";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/get-default-options.ts
|
|
@@ -17,7 +17,7 @@ function getDefaultOptions$1(context, _) {
|
|
|
17
17
|
title: "Interactive",
|
|
18
18
|
description: "Enable interactive mode - will be set to false if running in a CI pipeline.",
|
|
19
19
|
alias: ["i", "interact"],
|
|
20
|
-
kind:
|
|
20
|
+
kind: CommandParameterKinds.boolean,
|
|
21
21
|
optional: true,
|
|
22
22
|
default: context.config.interactive !== false
|
|
23
23
|
},
|
|
@@ -26,7 +26,7 @@ function getDefaultOptions$1(context, _) {
|
|
|
26
26
|
title: "Non-Interactive",
|
|
27
27
|
description: "Disable interactive mode - will be set to true if running in a CI pipeline.",
|
|
28
28
|
alias: ["no-interactive"],
|
|
29
|
-
kind:
|
|
29
|
+
kind: CommandParameterKinds.boolean,
|
|
30
30
|
optional: true,
|
|
31
31
|
default: false,
|
|
32
32
|
isNegativeOf: "interactive"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-default-options.mjs","names":["
|
|
1
|
+
{"version":3,"file":"get-default-options.mjs","names":["CommandParameterKinds","getDefaultOptions","getDefaultOptionsBase","context","_","config","interactive","name","title","description","alias","kind","boolean","optional","default","isNegativeOf","filter","Boolean"],"sources":["../../src/helpers/get-default-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CommandBase, CommandOption } from \"@shell-shock/core\";\nimport { CommandParameterKinds } from \"@shell-shock/core\";\nimport { getDefaultOptions as getDefaultOptionsBase } from \"@shell-shock/preset-script/helpers/get-default-options\";\nimport type { CLIPresetContext } from \"../types\";\n\n/**\n * Get the default command options.\n *\n * @param context - The build context.\n * @param _ - The command input.\n * @returns The default command options.\n */\nexport function getDefaultOptions(\n context: CLIPresetContext,\n _: CommandBase\n): CommandOption[] {\n return [\n ...getDefaultOptionsBase(),\n context.config.interactive !== \"never\" &&\n context.config.interactive !== true && {\n name: \"interactive\",\n title: \"Interactive\",\n description:\n \"Enable interactive mode - will be set to false if running in a CI pipeline.\",\n alias: [\"i\", \"interact\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: context.config.interactive !== false\n },\n context.config.interactive !== \"never\" &&\n context.config.interactive !== false && {\n name: \"non-interactive\",\n title: \"Non-Interactive\",\n description:\n \"Disable interactive mode - will be set to true if running in a CI pipeline.\",\n alias: [\"no-interactive\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: false,\n isNegativeOf: \"interactive\"\n }\n ].filter(Boolean) as CommandOption[];\n}\n"],"mappings":";;;;;;;;;;;AA8BA,SAAgBC,oBACdE,SACAC,GACiB;AACjB,QAAO;EACL,GAAGF,mBAAuB;EAC1BC,QAAQE,OAAOC,gBAAgB,WAC7BH,QAAQE,OAAOC,gBAAgB,QAAQ;GACrCC,MAAM;GACNC,OAAO;GACPC,aACE;GACFC,OAAO,CAAC,KAAK,WAAW;GACxBC,MAAMX,sBAAsBY;GAC5BC,UAAU;GACVC,SAASX,QAAQE,OAAOC,gBAAgB;GACzC;EACHH,QAAQE,OAAOC,gBAAgB,WAC7BH,QAAQE,OAAOC,gBAAgB,SAAS;GACtCC,MAAM;GACNC,OAAO;GACPC,aACE;GACFC,OAAO,CAAC,iBAAiB;GACzBC,MAAMX,sBAAsBY;GAC5BC,UAAU;GACVC,SAAS;GACTC,cAAc;GACf;EACJ,CAACC,OAAOC,QAAQ"}
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;;;;AAuHc,cAvHD,MAuHC,EAAA,CAAA,iBAvH0B,gBAuH1B,GAvH6C,gBAuH7C,CAAA,CAAA,OAAA,CAAA,EAtHH,gBAsHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;;;;AAuHc,cAvHD,MAuHC,EAAA,CAAA,iBAvH0B,gBAuH1B,GAvH6C,gBAuH7C,CAAA,CAAA,OAAA,CAAA,EAtHH,gBAsHG,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["code","For","Show","VarDeclaration","render","console","prompts","upgrade","BinEntry","VirtualHelp","BannerFunctionDeclaration","CommandEntry","CommandRouter","VirtualCommandEntry","getDefaultOptions","plugin","options","name","config","debug","defaultOptions","isCaseSensitive","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["code","For","Show","VarDeclaration","render","console","prompts","upgrade","BinEntry","VirtualHelp","BannerFunctionDeclaration","CommandEntry","CommandRouter","VirtualCommandEntry","getDefaultOptions","plugin","options","name","config","debug","defaultOptions","isCaseSensitive","prepare","order","handler","_self$","_$createComponent","builtinImports","utils","env","prefix","_$createIntrinsic","children","when","Object","keys","commands","length","type","initializer","segments","values","each","doubleHardline","child","isVirtual","fallback","command"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, For, Show } from \"@alloy-js/core\";\nimport { VarDeclaration } from \"@alloy-js/typescript\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport console from \"@shell-shock/plugin-console\";\nimport prompts from \"@shell-shock/plugin-prompts\";\nimport upgrade from \"@shell-shock/plugin-upgrade\";\nimport { BinEntry } from \"@shell-shock/preset-script/components/bin-entry\";\nimport { VirtualHelp } from \"@shell-shock/preset-script/components/help\";\nimport type { Plugin } from \"powerlines\";\nimport { BannerFunctionDeclaration } from \"./components/banner-function-declaration\";\nimport { CommandEntry } from \"./components/command-entry\";\nimport { CommandRouter } from \"./components/command-router\";\nimport { VirtualCommandEntry } from \"./components/virtual-command-entry\";\nimport { getDefaultOptions } from \"./helpers/get-default-options\";\nimport type { CLIPresetContext, CLIPresetOptions } from \"./types/plugin\";\n\n/**\n * The Shell Shock CLI Preset plugin.\n *\n * @remarks\n * This preset includes a set of built-in modules and commands to create a CLI application, as well as configuration options to customize the generated code. It also includes the `prompts` plugin to provide interactive prompts in the CLI application, and the `upgrade` plugin to manage upgrading the local application's version.\n */\nexport const plugin = <TContext extends CLIPresetContext = CLIPresetContext>(\n options: CLIPresetOptions = {}\n) => {\n return [\n console(options),\n prompts(options),\n options.upgrade !== false && upgrade(options.upgrade),\n {\n name: \"shell-shock:cli-preset\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `cli` preset.\"\n );\n\n return {\n defaultOptions: getDefaultOptions,\n isCaseSensitive: false,\n ...options\n };\n }\n },\n {\n name: \"shell-shock:cli-preset:generate-entrypoint\",\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\n \"Rendering entrypoint modules for the Shell Shock `cli` preset.\"\n );\n\n return render(\n this,\n <>\n <BinEntry\n builtinImports={{\n console: [\n \"info\",\n \"debug\",\n \"warn\",\n \"help\",\n \"error\",\n \"cursor\",\n \"divider\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\",\n \"colors\",\n \"writeLine\",\n \"splitText\",\n \"stripAnsi\",\n \"createSpinner\"\n ],\n utils: [\n \"useApp\",\n \"useArgs\",\n \"isMinimal\",\n \"isInteractive\",\n \"isHelp\"\n ],\n prompts: [\n \"text\",\n \"numeric\",\n \"toggle\",\n \"select\",\n \"confirm\",\n \"waitForKeyPress\",\n \"isCancel\",\n \"sleep\"\n ],\n upgrade: [\n \"checkForUpdates\",\n \"isCheckForUpdatesRequired\",\n \"upgrade\"\n ],\n env: [\"env\", \"paths\"]\n }}\n prefix={\n <>\n <BannerFunctionDeclaration />\n <hbr />\n <hbr />\n </>\n }>\n <Show when={Object.keys(this.commands).length > 0}>\n <VarDeclaration\n let\n name=\"args\"\n type=\"string[]\"\n initializer={code`useArgs();`}\n />\n <hbr />\n <CommandRouter segments={[]} commands={this.commands ?? {}} />\n <hbr />\n </Show>\n <hbr />\n {code`await banner(0, false);`}\n <hbr />\n <hbr />\n <VirtualHelp\n options={this.options}\n commands={this.commands ?? {}}\n />\n </BinEntry>\n <Show when={Object.values(this.commands).length > 0}>\n <For each={Object.values(this.commands)} doubleHardline>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </Show>\n </>\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAae,UACXC,UAA4B,EAAE,KAC3B;AACH,QAAO;EACLX,QAAQW,QAAQ;EAChBV,QAAQU,QAAQ;EAChBA,QAAQT,YAAY,SAASA,QAAQS,QAAQT,QAAQ;EACrD;GACEU,MAAM;GACNC,SAAS;AACP,SAAKC,MACH,oEACD;AAED,WAAO;KACLC,gBAAgBN;KAChBO,iBAAiB;KACjB,GAAGL;KACJ;;GAEJ;EACD;GACEC,MAAM;GACNK,SAAS;IACPC,OAAO;IACP,MAAMC,UAAU;KAAA,MAAAC,SAAA;AACd,UAAKN,MACH,iEACD;AAED,YAAOf,OACL,MAAI,CAAAsB,gBAEDlB,UAAQ;MACPmB,gBAAgB;OACdtB,SAAS;QACP;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACD;OACDuB,OAAO;QACL;QACA;QACA;QACA;QACA;QACD;OACDtB,SAAS;QACP;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACD;OACDC,SAAS;QACP;QACA;QACA;QACD;OACDsB,KAAK,CAAC,OAAO,QAAO;OACrB;MAAA,IACDC,SAAM;AAAA,cAAA;QAAAJ,gBAEDhB,2BAAyB,EAAA,CAAA;QAAAqB,gBAAA,OAAA,EAAA,CAAA;QAAAA,gBAAA,OAAA,EAAA,CAAA;QAAA;;MAAA,IAAAC,WAAA;AAAA,cAAA;QAAAN,gBAK7BxB,MAAI;SAAA,IAAC+B,OAAI;AAAA,iBAAEC,OAAOC,KAAKV,OAAKW,SAAS,CAACC,SAAS;;SAAC,IAAAL,WAAA;AAAA,iBAAA;WAAAN,gBAC9CvB,gBAAc;YAAA,OAAA;YAEbc,MAAI;YACJqB,MAAI;YACJC,aAAavC,IAAI;YAAY,CAAA;WAAA+B,gBAAA,OAAA,EAAA,CAAA;WAAAL,gBAG9Bd,eAAa;YAAC4B,UAAU,EAAE;YAAA,IAAEJ,WAAQ;AAAA,oBAAEX,OAAKW,YAAY,EAAE;;YAAA,CAAA;WAAAL,gBAAA,OAAA,EAAA,CAAA;WAAA;;SAAA,CAAA;QAAAA,gBAAA,OAAA,EAAA,CAAA;QAI3D/B,IAAI;QAAyB+B,gBAAA,OAAA,EAAA,CAAA;QAAAA,gBAAA,OAAA,EAAA,CAAA;QAAAL,gBAG7BjB,aAAW;SAAA,IACVO,UAAO;AAAA,iBAAES,OAAKT;;SAAO,IACrBoB,WAAQ;AAAA,iBAAEX,OAAKW,YAAY,EAAE;;SAAA,CAAA;QAAA;;MAAA,CAAA,EAAAV,gBAGhCxB,MAAI;MAAA,IAAC+B,OAAI;AAAA,cAAEC,OAAOO,OAAOhB,OAAKW,SAAS,CAACC,SAAS;;MAAC,IAAAL,WAAA;AAAA,cAAAN,gBAChDzB,KAAG;QAAA,IAACyC,OAAI;AAAA,gBAAER,OAAOO,OAAOhB,OAAKW,SAAS;;QAAEO,gBAAc;QAAAX,WACpDY,UAAKlB,gBACHxB,MAAI;SAAA,IACH+B,OAAI;AAAA,iBAAEW,MAAMC;;SAAS,IACrBC,WAAQ;AAAA,iBAAApB,gBAAGf,cAAY,EAACoC,SAASH,OAAK,CAAA;;SAAA,IAAAZ,WAAA;AAAA,iBAAAN,gBACrCb,qBAAmB,EAACkC,SAASH,OAAK,CAAA;;SAAA,CAAA;QAEtC,CAAA;;MAAA,CAAA,CAIT,CAAC;;IAEL;GACD;EACF;;AAGH,kBAAe7B"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CommandBase, CommandOption } from "@shell-shock/core
|
|
2
|
-
import { Context } from "@shell-shock/core/types/context";
|
|
1
|
+
import { CommandBase, CommandOption, Context } from "@shell-shock/core";
|
|
3
2
|
import { PromptsPluginContext } from "@shell-shock/plugin-prompts/types/plugin";
|
|
4
3
|
import { ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
5
4
|
import { UpgradePluginOptions } from "@shell-shock/plugin-upgrade/types/plugin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,WAAA;UAEK,uBAAA,SAAgC;EAFrC;AAEZ;AAeA;;;;;;;;;EA0CY,IAAA,CAAA,EA7CH,WA6CG;;AACV,KA3CU,gBAAA,GAAmB,IA2C7B,CA3CkC,mBA2ClC,EAAA,gBAAA,CAAA,GAAA;EACA;;AAEF;;;;;;;;;EAYY,WAAA,CAAA,EAAA,OAAgB,GAAA,OAAA;EACF;;;;;;;;;;;;;;mBA9BpB,6BACW,gBAAgB,gBAAgB;;;;;;;YASrC;;KAGA,mBAAA,GAAsB,yBAChC,wBACA;KAEU,uBAAA,GAA0B,6BACpC,4BACA,SAAS,KAAK;;;;;;;WAOH,SAAS;;KAGV,yCACc,0BAA0B,2BAChD,uBAAuB,oBAAoB"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CommandBase, CommandOption } from "@shell-shock/core
|
|
2
|
-
import { Context } from "@shell-shock/core/types/context";
|
|
1
|
+
import { CommandBase, CommandOption, Context } from "@shell-shock/core";
|
|
3
2
|
import { PromptsPluginContext } from "@shell-shock/plugin-prompts/types/plugin";
|
|
4
3
|
import { ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
5
4
|
import { UpgradePluginOptions } from "@shell-shock/plugin-upgrade/types/plugin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;KAgCY,WAAA;UAEK,uBAAA,SAAgC;EAFrC;AAEZ;AAeA;;;;;;;;;EA0CY,IAAA,CAAA,EA7CH,WA6CG;;AACV,KA3CU,gBAAA,GAAmB,IA2C7B,CA3CkC,mBA2ClC,EAAA,gBAAA,CAAA,GAAA;EACA;;AAEF;;;;;;;;;EAYY,WAAA,CAAA,EAAA,OAAgB,GAAA,OAAA;EACF;;;;;;;;;;;;;;mBA9BpB,6BACW,gBAAgB,gBAAgB;;;;;;;YASrC;;KAGA,mBAAA,GAAsB,yBAChC,wBACA;KAEU,uBAAA,GAA0B,6BACpC,4BACA,SAAS,KAAK;;;;;;;WAOH,SAAS;;KAGV,yCACc,0BAA0B,2BAChD,uBAAuB,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/preset-cli",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.7.13",
|
|
4
|
+
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"shell-shock",
|
|
8
|
+
"shell-shock-plugin",
|
|
9
|
+
"powerlines",
|
|
10
|
+
"storm-software"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://stormsoftware.com",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://stormsoftware.com/support",
|
|
15
|
+
"email": "support@stormsoftware.com"
|
|
16
|
+
},
|
|
6
17
|
"repository": {
|
|
7
18
|
"type": "github",
|
|
8
19
|
"url": "https://github.com/storm-software/shell-shock.git",
|
|
9
20
|
"directory": "packages/preset-cli"
|
|
10
21
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"url": "https://
|
|
14
|
-
"email": "support@stormsoftware.com"
|
|
22
|
+
"funding": {
|
|
23
|
+
"type": "github",
|
|
24
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
15
25
|
},
|
|
26
|
+
"license": "Apache-2.0",
|
|
16
27
|
"author": {
|
|
17
28
|
"name": "Storm Software",
|
|
18
29
|
"email": "contact@stormsoftware.com",
|
|
@@ -32,14 +43,7 @@
|
|
|
32
43
|
"url": "https://stormsoftware.com"
|
|
33
44
|
}
|
|
34
45
|
],
|
|
35
|
-
"
|
|
36
|
-
"type": "github",
|
|
37
|
-
"url": "https://github.com/sponsors/storm-software"
|
|
38
|
-
},
|
|
39
|
-
"license": "Apache-2.0",
|
|
40
|
-
"private": false,
|
|
41
|
-
"main": "./dist/index.cjs",
|
|
42
|
-
"module": "./dist/index.mjs",
|
|
46
|
+
"type": "module",
|
|
43
47
|
"exports": {
|
|
44
48
|
".": {
|
|
45
49
|
"require": {
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
"default": "./dist/index.mjs"
|
|
56
60
|
}
|
|
57
61
|
},
|
|
62
|
+
"./*": "./*",
|
|
58
63
|
"./components": {
|
|
59
64
|
"require": {
|
|
60
65
|
"types": "./dist/components/index.d.cts",
|
|
@@ -125,7 +130,6 @@
|
|
|
125
130
|
"default": "./dist/components/virtual-command-entry.mjs"
|
|
126
131
|
}
|
|
127
132
|
},
|
|
128
|
-
"./package.json": "./package.json",
|
|
129
133
|
"./types": {
|
|
130
134
|
"require": {
|
|
131
135
|
"types": "./dist/types/index.d.cts",
|
|
@@ -155,36 +159,32 @@
|
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
},
|
|
162
|
+
"main": "./dist/index.cjs",
|
|
163
|
+
"module": "./dist/index.mjs",
|
|
158
164
|
"types": "./dist/index.d.cts",
|
|
159
165
|
"typings": "dist/index.d.mts",
|
|
160
166
|
"files": ["dist/**/*"],
|
|
161
|
-
"keywords": [
|
|
162
|
-
"shell-shock",
|
|
163
|
-
"shell-shock-plugin",
|
|
164
|
-
"powerlines",
|
|
165
|
-
"storm-software"
|
|
166
|
-
],
|
|
167
167
|
"dependencies": {
|
|
168
168
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
169
169
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
170
|
-
"@powerlines/deepkit": "^0.6.
|
|
171
|
-
"@powerlines/plugin-alloy": "^0.
|
|
172
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
173
|
-
"@shell-shock/core": "^0.
|
|
174
|
-
"@shell-shock/plugin-console": "^0.1.
|
|
175
|
-
"@shell-shock/plugin-prompts": "^0.3.
|
|
176
|
-
"@shell-shock/plugin-theme": "^0.3.
|
|
177
|
-
"@shell-shock/plugin-upgrade": "^0.1.
|
|
178
|
-
"@shell-shock/preset-script": "^0.6.
|
|
179
|
-
"@stryke/path": "0.26.
|
|
180
|
-
"@stryke/string-format": "0.14.
|
|
170
|
+
"@powerlines/deepkit": "^0.6.90",
|
|
171
|
+
"@powerlines/plugin-alloy": "^0.24.2",
|
|
172
|
+
"@powerlines/plugin-plugin": "^0.12.262",
|
|
173
|
+
"@shell-shock/core": "^0.11.0",
|
|
174
|
+
"@shell-shock/plugin-console": "^0.1.7",
|
|
175
|
+
"@shell-shock/plugin-prompts": "^0.3.8",
|
|
176
|
+
"@shell-shock/plugin-theme": "^0.3.11",
|
|
177
|
+
"@shell-shock/plugin-upgrade": "^0.1.13",
|
|
178
|
+
"@shell-shock/preset-script": "^0.6.22",
|
|
179
|
+
"@stryke/path": "^0.26.12",
|
|
180
|
+
"@stryke/string-format": "^0.14.8",
|
|
181
181
|
"cfonts": "^3.3.1",
|
|
182
|
-
"defu": "6.1.4",
|
|
183
|
-
"powerlines": "^0.
|
|
182
|
+
"defu": "^6.1.4",
|
|
183
|
+
"powerlines": "^0.39.19"
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
186
|
"@babel/core": "^7.29.0",
|
|
187
|
-
"@types/node": "^25.3.
|
|
187
|
+
"@types/node": "^25.3.3",
|
|
188
188
|
"@types/react": "^19.2.14"
|
|
189
189
|
},
|
|
190
190
|
"publishConfig": {
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
"./package.json": "./package.json"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
|
-
"gitHead": "
|
|
213
|
+
"gitHead": "6fbda1ffc234bdd12b5d0fd0a32e59727b369c5c"
|
|
214
214
|
}
|