@shell-shock/plugin-upgrade 0.1.31 → 0.1.33
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/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,8 @@ const plugin = (options = {}) => {
|
|
|
41
41
|
path: this.config.upgrade.command.name,
|
|
42
42
|
segments: [this.config.upgrade.command.name],
|
|
43
43
|
title: "Upgrade",
|
|
44
|
-
icon: "
|
|
44
|
+
icon: "★",
|
|
45
|
+
tags: ["Utility"],
|
|
45
46
|
description: `A command for checking and upgrading the version of the ${(0, _shell_shock_core_plugin_utils.getAppTitle)(this, true)} command-line interface application.`,
|
|
46
47
|
entry: {
|
|
47
48
|
file: (0, _stryke_path_join.joinPaths)(this.entryPath, "upgrade", "index.ts"),
|
package/dist/index.mjs
CHANGED
|
@@ -38,7 +38,8 @@ const plugin = (options = {}) => {
|
|
|
38
38
|
path: this.config.upgrade.command.name,
|
|
39
39
|
segments: [this.config.upgrade.command.name],
|
|
40
40
|
title: "Upgrade",
|
|
41
|
-
icon: "
|
|
41
|
+
icon: "★",
|
|
42
|
+
tags: ["Utility"],
|
|
42
43
|
description: `A command for checking and upgrading the version of the ${getAppTitle(this, true)} command-line interface application.`,
|
|
43
44
|
entry: {
|
|
44
45
|
file: joinPaths(this.entryPath, "upgrade", "index.ts"),
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"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 { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { UpgradeBuiltin, UpgradeCommand } from \"./components\";\nimport type {\n UpgradePluginContext,\n UpgradePluginOptions\n} from \"./types/plugin\";\n\n/**\n * The Upgrade - Shell Shock plugin to add version check functionality and upgrade commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends UpgradePluginContext = UpgradePluginContext\n>(\n options: UpgradePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"shell-shock:upgrade\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `upgrade` plugin.\"\n );\n\n return {\n upgrade: defu(\n {\n command: {\n name: isSetString(options.command) ? options.command : \"upgrade\"\n }\n },\n options,\n {\n type: \"confirm\",\n staleTime: 36 * 60 * 60 * 1000 // 36 hours\n }\n ),\n env: {\n types:\n \"@shell-shock/plugin-upgrade/types/env#ShellShockUpgradePluginEnv\",\n validate: false\n }\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI upgrade commands to the application context.\");\n\n this.inputs ??= [];\n if (\n this.inputs.some(input => input.id === this.config.upgrade.command.name)\n ) {\n this.info(\n \"The `upgrade` command already exists in the commands list. If you would like the upgrade command to be managed by the `@shell-shock/plugin-upgrade` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: this.config.upgrade.command.name,\n alias: [\"up\", \"update\"],\n path: this.config.upgrade.command.name,\n segments: [this.config.upgrade.command.name],\n title: \"Upgrade\",\n icon: \"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"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 { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { UpgradeBuiltin, UpgradeCommand } from \"./components\";\nimport type {\n UpgradePluginContext,\n UpgradePluginOptions\n} from \"./types/plugin\";\n\n/**\n * The Upgrade - Shell Shock plugin to add version check functionality and upgrade commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends UpgradePluginContext = UpgradePluginContext\n>(\n options: UpgradePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"shell-shock:upgrade\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `upgrade` plugin.\"\n );\n\n return {\n upgrade: defu(\n {\n command: {\n name: isSetString(options.command) ? options.command : \"upgrade\"\n }\n },\n options,\n {\n type: \"confirm\",\n staleTime: 36 * 60 * 60 * 1000 // 36 hours\n }\n ),\n env: {\n types:\n \"@shell-shock/plugin-upgrade/types/env#ShellShockUpgradePluginEnv\",\n validate: false\n }\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI upgrade commands to the application context.\");\n\n this.inputs ??= [];\n if (\n this.inputs.some(input => input.id === this.config.upgrade.command.name)\n ) {\n this.info(\n \"The `upgrade` command already exists in the commands list. If you would like the upgrade command to be managed by the `@shell-shock/plugin-upgrade` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: this.config.upgrade.command.name,\n alias: [\"up\", \"update\"],\n path: this.config.upgrade.command.name,\n segments: [this.config.upgrade.command.name],\n title: \"Upgrade\",\n icon: \"★\",\n tags: [\"Utility\"],\n description: `A command for checking and upgrading the version of the ${getAppTitle(\n this,\n true\n )} command-line interface application.`,\n entry: {\n file: joinPaths(this.entryPath, \"upgrade\", \"index.ts\"),\n input: {\n file: joinPaths(this.entryPath, \"upgrade\", \"command.ts\")\n }\n },\n isVirtual: false,\n ...this.config.upgrade.command\n });\n }\n },\n async prepare() {\n this.debug(\n \"Rendering upgrade built-in and command modules for the Shell Shock `upgrade` plugin.\"\n );\n\n return render(\n this,\n <>\n <UpgradeBuiltin />\n <UpgradeCommand />\n </>\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AA+BA,MAAO,UAA4E,UAA0B,EAAW,KAAA;AACtH,QAAA;EACF,MAAO;EACL,SAAS;AACV,QAAA,MAAA,wEAAA;AACC,UAAS;IACR,SAAO,KAAY,EACb,SAAA,EACE,MAAM,YAAa,QAAC,QAAA,GAAA,QAAA,UAAA,WACpB,EACL,EAAK,SAAK;KACP,MAAA;KACF,WAAA,OAAA,KAAA;;IAED,KAAO;KACL,OAAS;KACP,UAAA;KACD;IACF;;EAEH,iBAAO;AACL,QAAI,MAAO,8DAAA;AACX,QAAI,WAAA,EAAA;AACJ,OAAI,KAAE,OAAO,MAAQ,UAAA,MAAA,OAAA,KAAA,OAAA,QAAA,QAAA,KAAA,CACnB,MAAI,KAAA,oMAAqC;OAEzC,MAAC,OAAA,KAAA;IACD,IAAK,KAAA,OAAA,QAAA,QAAA;IACH,OAAK,CAAA,MAAA,SAAA;IACL,MAAI,KAAM,OAAM,QAAO,QAAQ;IAC/B,UAAU,CAAA,KAAA,OAAA,QAAA,QAAA,KAAA;IACZ,OAAA;IACD,MAAA;IACF,MAAA,CAAA,UAAA;IACD,aAAiB,2DAAA,YAAA,MAAA,KAAA,CAAA;IACX,OAAO;;KAEN,OAAQ,EACV,MAAA,UAAA,KAAA,WAAA,WAAA,aAAA,EACI;KACL;IACA,WAAS;IACP,GAAC,KAAK,OAAS,QAAQ;IACxB,CAAA;;EAGL,MAAM,UAAS;AACb,QAAI,MAAO,uFAAgB;AAC3B,UAAI,OAAU,MAAC,CAAM,gBAAiB,gBAAI,EAAA,CAAA,EAAA,gBAAA,gBAAA,EAAA,CAAA,CAAA,CAAA;;EAE7C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-upgrade",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to manage upgrading the local application's version.",
|
|
6
6
|
"keywords": [
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@powerlines/deepkit": "^0.6.162",
|
|
172
172
|
"@powerlines/plugin-alloy": "^0.25.70",
|
|
173
173
|
"@powerlines/plugin-plugin": "^0.12.334",
|
|
174
|
-
"@shell-shock/core": "^0.
|
|
174
|
+
"@shell-shock/core": "^0.14.1",
|
|
175
175
|
"@stryke/path": "^0.27.3",
|
|
176
176
|
"@stryke/type-checks": "^0.6.0",
|
|
177
177
|
"@stryke/types": "^0.11.2",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"./package.json": "./package.json"
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
"gitHead": "
|
|
200
|
+
"gitHead": "47d5f1bcf7e0a915557aa31aff427b82c07017bd"
|
|
201
201
|
}
|