@shell-shock/plugin-completions 0.0.17 → 0.0.19

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.0.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.0.18-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/dist/index.cjs CHANGED
@@ -23,10 +23,8 @@ const plugin = (options = {}) => {
23
23
  id: "completions",
24
24
  name: "completions",
25
25
  alias: ["completion"],
26
- path: {
27
- segments: ["completions"],
28
- value: "completions"
29
- },
26
+ path: "completions",
27
+ segments: ["completions"],
30
28
  title: "CLI Completions",
31
29
  description: `Commands for generating shell completion scripts for the ${(0, __shell_shock_core_plugin_utils.getAppTitle)(this)}.`,
32
30
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "command.ts") },
@@ -37,10 +35,8 @@ const plugin = (options = {}) => {
37
35
  id: "completions-bash",
38
36
  name: "bash",
39
37
  alias: [],
40
- path: {
41
- segments: ["completions", "bash"],
42
- value: "completions/bash"
43
- },
38
+ path: "completions/bash",
39
+ segments: ["completions", "bash"],
44
40
  title: "CLI Completions - Bash Shell",
45
41
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "bash", "command.ts") },
46
42
  isVirtual: false
@@ -50,10 +46,8 @@ const plugin = (options = {}) => {
50
46
  id: "completions-zsh",
51
47
  name: "zsh",
52
48
  alias: [],
53
- path: {
54
- segments: ["completions", "zsh"],
55
- value: "completions/zsh"
56
- },
49
+ path: "completions/zsh",
50
+ segments: ["completions", "zsh"],
57
51
  title: "CLI Completions - Zsh Shell",
58
52
  entry: { file: (0, __stryke_path_join.joinPaths)(this.entryPath, "completions", "zsh", "command.ts") },
59
53
  isVirtual: false
package/dist/index.mjs CHANGED
@@ -22,10 +22,8 @@ const plugin = (options = {}) => {
22
22
  id: "completions",
23
23
  name: "completions",
24
24
  alias: ["completion"],
25
- path: {
26
- segments: ["completions"],
27
- value: "completions"
28
- },
25
+ path: "completions",
26
+ segments: ["completions"],
29
27
  title: "CLI Completions",
30
28
  description: `Commands for generating shell completion scripts for the ${getAppTitle(this)}.`,
31
29
  entry: { file: joinPaths(this.entryPath, "completions", "command.ts") },
@@ -36,10 +34,8 @@ const plugin = (options = {}) => {
36
34
  id: "completions-bash",
37
35
  name: "bash",
38
36
  alias: [],
39
- path: {
40
- segments: ["completions", "bash"],
41
- value: "completions/bash"
42
- },
37
+ path: "completions/bash",
38
+ segments: ["completions", "bash"],
43
39
  title: "CLI Completions - Bash Shell",
44
40
  entry: { file: joinPaths(this.entryPath, "completions", "bash", "command.ts") },
45
41
  isVirtual: false
@@ -49,10 +45,8 @@ const plugin = (options = {}) => {
49
45
  id: "completions-zsh",
50
46
  name: "zsh",
51
47
  alias: [],
52
- path: {
53
- segments: ["completions", "zsh"],
54
- value: "completions/zsh"
55
- },
48
+ path: "completions/zsh",
49
+ segments: ["completions", "zsh"],
56
50
  title: "CLI Completions - Zsh Shell",
57
51
  entry: { file: joinPaths(this.entryPath, "completions", "zsh", "command.ts") },
58
52
  isVirtual: false
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["getAppTitle","joinPaths","plugin","options","name","config","debug","completions","configResolved","inputs","some","input","id","info","push","alias","path","segments","value","title","description","entry","file","entryPath","isVirtual"],"sources":["../src/index.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 { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport type { Plugin } from \"powerlines\";\nimport type {\n CompletionsPluginContext,\n CompletionsPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\n/**\n * The Completions - Shell Shock plugin to add completion commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends CompletionsPluginContext = CompletionsPluginContext\n>(\n options: CompletionsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"shell-shock:completions\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `completions` plugin.\"\n );\n\n return {\n completions: options\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI completion commands to the entry points.\");\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"completions\")) {\n this.info(\n \"The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions\",\n name: \"completions\",\n alias: [\"completion\"],\n path: {\n segments: [\"completions\"],\n value: \"completions\"\n },\n title: \"CLI Completions\",\n description: `Commands for generating shell completion scripts for the ${getAppTitle(\n this\n )}.`,\n entry: {\n file: joinPaths(this.entryPath, \"completions\", \"command.ts\")\n },\n isVirtual: true\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-bash\")) {\n this.info(\n \"The `completions-bash` command already exists in the commands list. If you would like the completions-bash command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-bash\",\n name: \"bash\",\n alias: [],\n path: {\n segments: [\"completions\", \"bash\"],\n value: \"completions/bash\"\n },\n title: \"CLI Completions - Bash Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"bash\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-zsh\")) {\n this.info(\n \"The `completions-zsh` command already exists in the commands list. If you would like the completions-zsh command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-zsh\",\n name: \"zsh\",\n alias: [],\n path: {\n segments: [\"completions\", \"zsh\"],\n value: \"completions/zsh\"\n },\n title: \"CLI Completions - Zsh Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"zsh\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;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":3,"file":"index.mjs","names":["getAppTitle","joinPaths","plugin","options","name","config","debug","completions","configResolved","inputs","some","input","id","info","push","alias","path","segments","title","description","entry","file","entryPath","isVirtual"],"sources":["../src/index.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 { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport type { Plugin } from \"powerlines\";\nimport type {\n CompletionsPluginContext,\n CompletionsPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\n/**\n * The Completions - Shell Shock plugin to add completion commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends CompletionsPluginContext = CompletionsPluginContext\n>(\n options: CompletionsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n {\n name: \"shell-shock:completions\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `completions` plugin.\"\n );\n\n return {\n completions: options\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI completion commands to the entry points.\");\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"completions\")) {\n this.info(\n \"The `completions` command already exists in the commands list. If you would like the completions command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions\",\n name: \"completions\",\n alias: [\"completion\"],\n path: \"completions\",\n segments: [\"completions\"],\n title: \"CLI Completions\",\n description: `Commands for generating shell completion scripts for the ${getAppTitle(\n this\n )}.`,\n entry: {\n file: joinPaths(this.entryPath, \"completions\", \"command.ts\")\n },\n isVirtual: true\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-bash\")) {\n this.info(\n \"The `completions-bash` command already exists in the commands list. If you would like the completions-bash command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-bash\",\n name: \"bash\",\n alias: [],\n path: \"completions/bash\",\n segments: [\"completions\", \"bash\"],\n title: \"CLI Completions - Bash Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"bash\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n\n if (this.inputs.some(input => input.id === \"completions-zsh\")) {\n this.info(\n \"The `completions-zsh` command already exists in the commands list. If you would like the completions-zsh command to be managed by the `@shell-shock/plugin-completions` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"completions-zsh\",\n name: \"zsh\",\n alias: [],\n path: \"completions/zsh\",\n segments: [\"completions\", \"zsh\"],\n title: \"CLI Completions - Zsh Shell\",\n entry: {\n file: joinPaths(\n this.entryPath,\n \"completions\",\n \"zsh\",\n \"command.ts\"\n )\n },\n isVirtual: false\n });\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;AAgCA,MAAaE,UAGXC,UAAoC,EAAE,KACf;AACvB,QAAO,CACL;EACEC,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,4EACD;AAED,UAAO,EACLC,aAAaJ,SACd;;EAEHK,iBAAiB;AACf,QAAKF,MAAM,0DAA0D;AAErE,QAAKG,WAAW,EAAE;AAClB,OAAI,KAAKA,OAAOC,MAAKC,UAASA,MAAMC,OAAO,cAAc,CACvD,MAAKC,KACH,gNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,OAAO,CAAC,aAAa;IACrBC,MAAM;IACNC,UAAU,CAAC,cAAc;IACzBC,OAAO;IACPC,aAAa,4DAA4DnB,YACvE,KACD,CAAA;IACDoB,OAAO,EACLC,MAAMpB,UAAU,KAAKqB,WAAW,eAAe,aAAY,EAC5D;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKd,OAAOC,MAAKC,UAASA,MAAMC,OAAO,mBAAmB,CAC5D,MAAKC,KACH,0NACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,OAAO,EAAE;IACTC,MAAM;IACNC,UAAU,CAAC,eAAe,OAAO;IACjCC,OAAO;IACPE,OAAO,EACLC,MAAMpB,UACJ,KAAKqB,WACL,eACA,QACA,aACF,EACD;IACDC,WAAW;IACZ,CAAC;AAGJ,OAAI,KAAKd,OAAOC,MAAKC,UAASA,MAAMC,OAAO,kBAAkB,CAC3D,MAAKC,KACH,wNACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJR,MAAM;IACNW,OAAO,EAAE;IACTC,MAAM;IACNC,UAAU,CAAC,eAAe,MAAM;IAChCC,OAAO;IACPE,OAAO,EACLC,MAAMpB,UACJ,KAAKqB,WACL,eACA,OACA,aACF,EACD;IACDC,WAAW;IACZ,CAAC;;EAGP,CACF;;AAGH,kBAAerB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-completions",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
6
6
  "repository": {
@@ -96,16 +96,16 @@
96
96
  "storm-software"
97
97
  ],
98
98
  "dependencies": {
99
- "@alloy-js/core": "^0.22.0",
100
- "@alloy-js/typescript": "^0.22.0",
101
- "@powerlines/plugin-alloy": "^0.20.15",
102
- "@powerlines/plugin-plugin": "^0.12.222",
103
- "@shell-shock/core": "^0.8.4",
99
+ "@alloy-js/core": "0.23.0-dev.8",
100
+ "@alloy-js/typescript": "0.23.0-dev.4",
101
+ "@powerlines/plugin-alloy": "^0.23.12",
102
+ "@powerlines/plugin-plugin": "^0.12.233",
103
+ "@shell-shock/core": "^0.8.6",
104
104
  "@stryke/path": "0.26.6",
105
- "powerlines": "^0.38.38"
105
+ "powerlines": "^0.38.49"
106
106
  },
107
107
  "devDependencies": {
108
- "@powerlines/plugin-deepkit": "^0.11.150",
108
+ "@powerlines/plugin-deepkit": "^0.11.161",
109
109
  "@types/node": "^22.19.11"
110
110
  },
111
111
  "publishConfig": {
@@ -123,5 +123,5 @@
123
123
  "./package.json": "./package.json"
124
124
  }
125
125
  },
126
- "gitHead": "b748bcb948ef2c11eca8e4259c76afb65ce963f0"
126
+ "gitHead": "659d34605a9f52b88a7c638ad74e58fd3f48c59c"
127
127
  }