@storm-software/git-tools 1.10.0 → 1.10.2
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/CHANGELOG.md +14 -0
- package/README.md +6 -3
- package/cli/index.js +26 -25
- package/cli/index.js.map +2 -2
- package/package.json +1 -1
- package/readme/templates/README.footer.md +2 -0
- package/readme/templates/README.header.md +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.10.1](https://github.com/storm-software/storm-ops/compare/git-tools-v1.10.0...git-tools-v1.10.1) (2023-11-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue with invalid schema json for tsup executor ([045560e](https://github.com/storm-software/storm-ops/commit/045560e2add5f4dc33be71148d63e4ecee496ced))
|
|
7
|
+
|
|
8
|
+
# [1.10.0](https://github.com/storm-software/storm-ops/compare/git-tools-v1.9.5...git-tools-v1.10.0) (2023-11-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **git-tools:** Added executors and generators sections to the readme-gen CLI ([99aacba](https://github.com/storm-software/storm-ops/commit/99aacba62747cef1347bc87a0fff35fb2ffb0bde))
|
|
14
|
+
|
|
1
15
|
## [1.9.5](https://github.com/storm-software/storm-ops/compare/git-tools-v1.9.4...git-tools-v1.9.5) (2023-11-29)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
<!-- markdownlint-disable -->
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/
|
|
6
|
+
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/storm-banner.gif" width="100%" altText="Storm Software" /></div>
|
|
7
|
+
<br />
|
|
7
8
|
|
|
8
9
|
<div align="center">
|
|
9
10
|
<a href="https://stormsoftware.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/contact" target="_blank">Contact</a> | <a href="https://github.com/storm-software/stormstack" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/storm-software/stormstack/discussions">Ask a Question</a>
|
|
@@ -15,10 +16,10 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
15
16
|
|
|
16
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
17
18
|
|
|
18
|
-
[](https://prettier.io/)
|
|
19
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
20
21
|
|
|
21
|
-
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️
|
|
22
|
+
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
<!-- markdownlint-restore -->
|
|
@@ -131,6 +132,8 @@ This project follows the [all-contributors](https://github.com/all-contributors/
|
|
|
131
132
|
<div align="center">
|
|
132
133
|
<img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
|
|
133
134
|
</div>
|
|
135
|
+
<br />
|
|
136
|
+
|
|
134
137
|
<div align="center">
|
|
135
138
|
<a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://www.patsullivan.org/contact" target="_blank">Contact</a> | <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> | <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> | <a href="https://github.com/sullivanpj" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
136
139
|
</div>
|
package/cli/index.js
CHANGED
|
@@ -193995,15 +193995,15 @@ var getExecutorMarkdown = (packageName, executorsJsonFile, executorsJson) => {
|
|
|
193995
193995
|
`;
|
|
193996
193996
|
}
|
|
193997
193997
|
if (schemaJson.description) {
|
|
193998
|
-
description = `${schemaJson.description}
|
|
193998
|
+
description = `${schemaJson.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
193999
193999
|
|
|
194000
194000
|
`;
|
|
194001
194001
|
}
|
|
194002
194002
|
required = schemaJson.required && Array.isArray(schemaJson.required) ? schemaJson.required : [];
|
|
194003
194003
|
if (schemaJson.properties && Object.keys(schemaJson.properties).length > 0) {
|
|
194004
194004
|
result2 += "### Options\n\nThe following executor options are available:\n\n";
|
|
194005
|
-
result2 += "| Option | Type | Description | Default |";
|
|
194006
|
-
result2 += "| --------- | ------ | ------------- | --------- |";
|
|
194005
|
+
result2 += "| Option | Type | Description | Default | \n";
|
|
194006
|
+
result2 += "| --------- | ------ | ------------- | --------- | \n";
|
|
194007
194007
|
result2 += Object.entries(schemaJson.properties).map(([name2, schema]) => {
|
|
194008
194008
|
let result3 = "";
|
|
194009
194009
|
if (name2) {
|
|
@@ -194022,7 +194022,7 @@ var getExecutorMarkdown = (packageName, executorsJsonFile, executorsJson) => {
|
|
|
194022
194022
|
result3 += `| \`string\` `;
|
|
194023
194023
|
}
|
|
194024
194024
|
if (schema.description) {
|
|
194025
|
-
result3 += `| ${schema.description} `;
|
|
194025
|
+
result3 += `| ${schema.description.replaceAll("`", "\\`").replaceAll("*", "\\*")} `;
|
|
194026
194026
|
} else {
|
|
194027
194027
|
result3 += `| `;
|
|
194028
194028
|
}
|
|
@@ -194031,13 +194031,14 @@ var getExecutorMarkdown = (packageName, executorsJsonFile, executorsJson) => {
|
|
|
194031
194031
|
} else {
|
|
194032
194032
|
result3 += `| `;
|
|
194033
194033
|
}
|
|
194034
|
-
result3 +=
|
|
194034
|
+
result3 += ` |
|
|
194035
|
+
`;
|
|
194035
194036
|
}
|
|
194036
194037
|
return result3;
|
|
194037
194038
|
}).join();
|
|
194038
194039
|
result2 += "\n\n";
|
|
194039
194040
|
if (required.length > 0) {
|
|
194040
|
-
result2 += `**Please note:**
|
|
194041
|
+
result2 += `**Please note:** _Option names followed by \\* above are required, and must be provided to run the executor._
|
|
194041
194042
|
|
|
194042
194043
|
`;
|
|
194043
194044
|
}
|
|
@@ -194050,7 +194051,7 @@ var getExecutorMarkdown = (packageName, executorsJsonFile, executorsJson) => {
|
|
|
194050
194051
|
`;
|
|
194051
194052
|
}
|
|
194052
194053
|
if (!description && executor.description) {
|
|
194053
|
-
description = `${executor.description}
|
|
194054
|
+
description = `${executor.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
194054
194055
|
|
|
194055
194056
|
`;
|
|
194056
194057
|
}
|
|
@@ -194058,11 +194059,11 @@ var getExecutorMarkdown = (packageName, executorsJsonFile, executorsJson) => {
|
|
|
194058
194059
|
|
|
194059
194060
|
This executor can be used by executing the following in a command line utility:
|
|
194060
194061
|
|
|
194061
|
-
\`\`\`
|
|
194062
|
+
\`\`\`cmd
|
|
194062
194063
|
nx run my-project:${name}
|
|
194063
194064
|
\`\`\`
|
|
194064
194065
|
|
|
194065
|
-
**Please note:**
|
|
194066
|
+
**Please note:** _The ${name} executor should be included in the desired projects's \`project.json\` file.${required.length > 0 ? `All required options must be included in the \`options\` property of the json.` : ""}_
|
|
194066
194067
|
|
|
194067
194068
|
` + result2;
|
|
194068
194069
|
}).join("\n\n");
|
|
@@ -194095,15 +194096,15 @@ var getGeneratorMarkdown = (packageName, generatorsJsonFile, generatorsJson) =>
|
|
|
194095
194096
|
`;
|
|
194096
194097
|
}
|
|
194097
194098
|
if (schemaJson.description) {
|
|
194098
|
-
description = `${schemaJson.description}
|
|
194099
|
+
description = `${schemaJson.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
194099
194100
|
|
|
194100
194101
|
`;
|
|
194101
194102
|
}
|
|
194102
194103
|
if (schemaJson.properties && Object.keys(schemaJson.properties).length > 0) {
|
|
194103
194104
|
const required2 = schemaJson.required && Array.isArray(schemaJson.required) ? schemaJson.required : [];
|
|
194104
194105
|
result2 += "### Options\n\nThe following executor options are available:\n\n";
|
|
194105
|
-
result2 += "| Option | Type | Description | Default |";
|
|
194106
|
-
result2 += "| --------- | ------ | ------------- | --------- |";
|
|
194106
|
+
result2 += "| Option | Type | Description | Default | \n";
|
|
194107
|
+
result2 += "| --------- | ------ | ------------- | --------- | \n";
|
|
194107
194108
|
result2 += Object.entries(schemaJson.properties).map(([name2, schema]) => {
|
|
194108
194109
|
let resultSchema = "";
|
|
194109
194110
|
if (name2) {
|
|
@@ -194122,7 +194123,7 @@ var getGeneratorMarkdown = (packageName, generatorsJsonFile, generatorsJson) =>
|
|
|
194122
194123
|
resultSchema += `| \`string\` `;
|
|
194123
194124
|
}
|
|
194124
194125
|
if (schema.description) {
|
|
194125
|
-
resultSchema += `| ${schema.description} `;
|
|
194126
|
+
resultSchema += `| ${schema.description.replaceAll("`", "\\`").replaceAll("*", "\\*")} `;
|
|
194126
194127
|
} else {
|
|
194127
194128
|
resultSchema += `| `;
|
|
194128
194129
|
}
|
|
@@ -194131,13 +194132,14 @@ var getGeneratorMarkdown = (packageName, generatorsJsonFile, generatorsJson) =>
|
|
|
194131
194132
|
} else {
|
|
194132
194133
|
resultSchema += `| `;
|
|
194133
194134
|
}
|
|
194134
|
-
resultSchema +=
|
|
194135
|
+
resultSchema += ` |
|
|
194136
|
+
`;
|
|
194135
194137
|
}
|
|
194136
194138
|
return resultSchema;
|
|
194137
194139
|
}).join();
|
|
194138
194140
|
result2 += "\n\n";
|
|
194139
194141
|
if (required2.length > 0) {
|
|
194140
|
-
result2 += `**Please note:**
|
|
194142
|
+
result2 += `**Please note:** _Option names followed by \\* above are required, and must be provided to run the executor._
|
|
194141
194143
|
|
|
194142
194144
|
`;
|
|
194143
194145
|
}
|
|
@@ -194152,19 +194154,18 @@ This generator can be used by executing the following examples in a command line
|
|
|
194152
194154
|
example += schemaJson.example.map((exampleCmd) => {
|
|
194153
194155
|
let resultCmd = "";
|
|
194154
194156
|
if (exampleCmd.description && typeof exampleCmd.description === "string") {
|
|
194155
|
-
resultCmd +=
|
|
194157
|
+
resultCmd += `${exampleCmd.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
194156
194158
|
|
|
194157
194159
|
`;
|
|
194158
194160
|
}
|
|
194159
194161
|
if (exampleCmd.command && typeof exampleCmd.command === "string") {
|
|
194160
|
-
resultCmd += `\`\`\`
|
|
194162
|
+
resultCmd += `\`\`\`cmd
|
|
194161
194163
|
${exampleCmd.command}
|
|
194162
194164
|
\`\`\`
|
|
194163
194165
|
|
|
194164
194166
|
`;
|
|
194165
194167
|
} else if (typeof exampleCmd === "string") {
|
|
194166
|
-
resultCmd += `\`\`\`
|
|
194167
|
-
${exampleCmd}
|
|
194168
|
+
resultCmd += `\`\`\`cmd n${exampleCmd}
|
|
194168
194169
|
\`\`\`
|
|
194169
194170
|
|
|
194170
194171
|
`;
|
|
@@ -194175,7 +194176,7 @@ ${exampleCmd}
|
|
|
194175
194176
|
if (schemaJson.example.description && typeof schemaJson.example.description === "string") {
|
|
194176
194177
|
example = `### Example
|
|
194177
194178
|
|
|
194178
|
-
${schemaJson.example.description}
|
|
194179
|
+
${schemaJson.example.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
194179
194180
|
|
|
194180
194181
|
`;
|
|
194181
194182
|
} else {
|
|
@@ -194185,7 +194186,7 @@ This generator can be used by executing the following in a command line utility:
|
|
|
194185
194186
|
|
|
194186
194187
|
`;
|
|
194187
194188
|
}
|
|
194188
|
-
example += `\`\`\`
|
|
194189
|
+
example += `\`\`\`cmd
|
|
194189
194190
|
${schemaJson.example.command}
|
|
194190
194191
|
\`\`\`
|
|
194191
194192
|
|
|
@@ -194196,7 +194197,7 @@ ${schemaJson.example.command}
|
|
|
194196
194197
|
This generator can be used by executing the following in a command line utility:
|
|
194197
194198
|
|
|
194198
194199
|
`;
|
|
194199
|
-
example += `\`\`\`
|
|
194200
|
+
example += `\`\`\`cmd
|
|
194200
194201
|
${schemaJson.example}
|
|
194201
194202
|
\`\`\`
|
|
194202
194203
|
|
|
@@ -194207,14 +194208,14 @@ ${schemaJson.example}
|
|
|
194207
194208
|
This generator can be used by executing the following in a command line utility:
|
|
194208
194209
|
|
|
194209
194210
|
`;
|
|
194210
|
-
example += `\`\`\`
|
|
194211
|
+
example += `\`\`\`cmd
|
|
194211
194212
|
nx g ${packageName}:${name}
|
|
194212
194213
|
\`\`\`
|
|
194213
194214
|
|
|
194214
194215
|
`;
|
|
194215
194216
|
}
|
|
194216
194217
|
if (required.length > 0) {
|
|
194217
|
-
example += "** Please note:**
|
|
194218
|
+
example += "** Please note:** _All required options must be included as parameters when calling the generator._ \n\n";
|
|
194218
194219
|
}
|
|
194219
194220
|
}
|
|
194220
194221
|
}
|
|
@@ -194225,7 +194226,7 @@ nx g ${packageName}:${name}
|
|
|
194225
194226
|
`;
|
|
194226
194227
|
}
|
|
194227
194228
|
if (!description && generator.description) {
|
|
194228
|
-
description = `${generator.description}
|
|
194229
|
+
description = `${generator.description.replaceAll("`", "\\`").replaceAll("*", "\\*")}
|
|
194229
194230
|
|
|
194230
194231
|
`;
|
|
194231
194232
|
}
|