@storm-software/git-tools 2.123.11 → 2.123.12
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 +1 -1
- package/bin/git.cjs +16 -45
- package/bin/git.js +17 -46
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/git.cjs
CHANGED
|
@@ -4445,60 +4445,31 @@ function createProgram(config5) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
const program = new commander.Command("storm-git");
|
|
4447
4447
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
4448
|
-
|
|
4449
|
-
"--config <file>",
|
|
4450
|
-
"The Commitizen config file path"
|
|
4451
|
-
).makeOptionMandatory(false);
|
|
4452
|
-
const commitDryRun = new commander.Option(
|
|
4448
|
+
program.command("commit").description("Commit changes to git for the workspace.").option("--config <file>", "The Commitizen config file path").option(
|
|
4453
4449
|
"--dry-run",
|
|
4454
4450
|
"Should the commit be run in dry-run mode (no updates are made)"
|
|
4455
|
-
);
|
|
4456
|
-
program.command("
|
|
4457
|
-
const readmeTemplatePath = new commander.Option(
|
|
4451
|
+
).action(commitAction);
|
|
4452
|
+
program.command("readme").description("Run the README.md generator using the templates provided.").option(
|
|
4458
4453
|
"--templates <path>",
|
|
4459
|
-
"The templates directory to use when generating the README.md files."
|
|
4460
|
-
|
|
4461
|
-
|
|
4454
|
+
"The templates directory to use when generating the README.md files.",
|
|
4455
|
+
"./tools/readme-templates"
|
|
4456
|
+
).option(
|
|
4462
4457
|
"--project <project>",
|
|
4463
4458
|
"The specific project to generate a README.md file for"
|
|
4464
|
-
)
|
|
4465
|
-
const readmeOutput = new commander.Option(
|
|
4466
|
-
"--output <path>",
|
|
4467
|
-
"Where to output the generated README.md file"
|
|
4468
|
-
);
|
|
4469
|
-
const readmeClean = new commander.Option(
|
|
4459
|
+
).option("--output <path>", "Where to output the generated README.md file").option(
|
|
4470
4460
|
"--clean",
|
|
4471
|
-
"Should the output README.md file be cleaned before generation"
|
|
4472
|
-
|
|
4473
|
-
|
|
4461
|
+
"Should the output README.md file be cleaned before generation",
|
|
4462
|
+
true
|
|
4463
|
+
).option(
|
|
4474
4464
|
"--prettier",
|
|
4475
|
-
"Should the output README.md file have prettier applied to it"
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
"--project <project>",
|
|
4480
|
-
"The specific project to run release for"
|
|
4481
|
-
);
|
|
4482
|
-
const releaseBase = new commander.Option("--base <base>", "Git base tag value");
|
|
4483
|
-
const releaseHead = new commander.Option("--head <head>", "Git head tag value");
|
|
4484
|
-
const releaseDryRun = new commander.Option(
|
|
4465
|
+
"Should the output README.md file have prettier applied to it",
|
|
4466
|
+
true
|
|
4467
|
+
).action(readmeAction);
|
|
4468
|
+
program.command("release").description("Run release for a project in the workspace.").option("--project <project>", "The specific project to run release for").option("--base <base>", "Git base tag value").option("--head <head>", "Git head tag value").option(
|
|
4485
4469
|
"--dry-run",
|
|
4486
4470
|
"Should the release be run in dry-run mode (no updates are made)"
|
|
4487
|
-
);
|
|
4488
|
-
program.command("
|
|
4489
|
-
const commitMessage = new commander.Option(
|
|
4490
|
-
"--message <commit-message>",
|
|
4491
|
-
"The commit message to lint"
|
|
4492
|
-
).makeOptionMandatory(false);
|
|
4493
|
-
const commitFile = new commander.Option(
|
|
4494
|
-
"--file <commit-file>",
|
|
4495
|
-
"The commit message to lint"
|
|
4496
|
-
).makeOptionMandatory(false);
|
|
4497
|
-
const commitlintConfig = new commander.Option(
|
|
4498
|
-
"--config <file>",
|
|
4499
|
-
"The CommitLint config file path"
|
|
4500
|
-
).makeOptionMandatory(false);
|
|
4501
|
-
program.command("commitlint").description("Run commitlint for the workspace's commit message.").addOption(commitlintConfig).addOption(commitMessage).addOption(commitFile).action(commitLintAction);
|
|
4471
|
+
).action(releaseAction);
|
|
4472
|
+
program.command("commitlint").description("Run commitlint for the workspace's commit message.").option("--config <file>", "The CommitLint config file path").option("--message <commit-message>", "The commit message to lint").option("--file <commit-file>", "The commit message to lint").action(commitLintAction);
|
|
4502
4473
|
return program;
|
|
4503
4474
|
}
|
|
4504
4475
|
async function commitAction({
|
package/bin/git.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { run } from './chunk-S5PS23TL.js';
|
|
3
3
|
import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-K3LWFM6S.js';
|
|
4
4
|
import TOML from '@ltd/j-toml';
|
|
5
|
-
import { Command
|
|
5
|
+
import { Command } from 'commander';
|
|
6
6
|
import { select, confirm, input } from '@inquirer/prompts';
|
|
7
7
|
import shellescape from 'any-shell-escape';
|
|
8
8
|
import chalkTemplate from 'chalk-template';
|
|
@@ -4427,60 +4427,31 @@ function createProgram(config5) {
|
|
|
4427
4427
|
}
|
|
4428
4428
|
const program = new Command("storm-git");
|
|
4429
4429
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
4430
|
-
|
|
4431
|
-
"--config <file>",
|
|
4432
|
-
"The Commitizen config file path"
|
|
4433
|
-
).makeOptionMandatory(false);
|
|
4434
|
-
const commitDryRun = new Option(
|
|
4430
|
+
program.command("commit").description("Commit changes to git for the workspace.").option("--config <file>", "The Commitizen config file path").option(
|
|
4435
4431
|
"--dry-run",
|
|
4436
4432
|
"Should the commit be run in dry-run mode (no updates are made)"
|
|
4437
|
-
);
|
|
4438
|
-
program.command("
|
|
4439
|
-
const readmeTemplatePath = new Option(
|
|
4433
|
+
).action(commitAction);
|
|
4434
|
+
program.command("readme").description("Run the README.md generator using the templates provided.").option(
|
|
4440
4435
|
"--templates <path>",
|
|
4441
|
-
"The templates directory to use when generating the README.md files."
|
|
4442
|
-
|
|
4443
|
-
|
|
4436
|
+
"The templates directory to use when generating the README.md files.",
|
|
4437
|
+
"./tools/readme-templates"
|
|
4438
|
+
).option(
|
|
4444
4439
|
"--project <project>",
|
|
4445
4440
|
"The specific project to generate a README.md file for"
|
|
4446
|
-
)
|
|
4447
|
-
const readmeOutput = new Option(
|
|
4448
|
-
"--output <path>",
|
|
4449
|
-
"Where to output the generated README.md file"
|
|
4450
|
-
);
|
|
4451
|
-
const readmeClean = new Option(
|
|
4441
|
+
).option("--output <path>", "Where to output the generated README.md file").option(
|
|
4452
4442
|
"--clean",
|
|
4453
|
-
"Should the output README.md file be cleaned before generation"
|
|
4454
|
-
|
|
4455
|
-
|
|
4443
|
+
"Should the output README.md file be cleaned before generation",
|
|
4444
|
+
true
|
|
4445
|
+
).option(
|
|
4456
4446
|
"--prettier",
|
|
4457
|
-
"Should the output README.md file have prettier applied to it"
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
"--project <project>",
|
|
4462
|
-
"The specific project to run release for"
|
|
4463
|
-
);
|
|
4464
|
-
const releaseBase = new Option("--base <base>", "Git base tag value");
|
|
4465
|
-
const releaseHead = new Option("--head <head>", "Git head tag value");
|
|
4466
|
-
const releaseDryRun = new Option(
|
|
4447
|
+
"Should the output README.md file have prettier applied to it",
|
|
4448
|
+
true
|
|
4449
|
+
).action(readmeAction);
|
|
4450
|
+
program.command("release").description("Run release for a project in the workspace.").option("--project <project>", "The specific project to run release for").option("--base <base>", "Git base tag value").option("--head <head>", "Git head tag value").option(
|
|
4467
4451
|
"--dry-run",
|
|
4468
4452
|
"Should the release be run in dry-run mode (no updates are made)"
|
|
4469
|
-
);
|
|
4470
|
-
program.command("
|
|
4471
|
-
const commitMessage = new Option(
|
|
4472
|
-
"--message <commit-message>",
|
|
4473
|
-
"The commit message to lint"
|
|
4474
|
-
).makeOptionMandatory(false);
|
|
4475
|
-
const commitFile = new Option(
|
|
4476
|
-
"--file <commit-file>",
|
|
4477
|
-
"The commit message to lint"
|
|
4478
|
-
).makeOptionMandatory(false);
|
|
4479
|
-
const commitlintConfig = new Option(
|
|
4480
|
-
"--config <file>",
|
|
4481
|
-
"The CommitLint config file path"
|
|
4482
|
-
).makeOptionMandatory(false);
|
|
4483
|
-
program.command("commitlint").description("Run commitlint for the workspace's commit message.").addOption(commitlintConfig).addOption(commitMessage).addOption(commitFile).action(commitLintAction);
|
|
4453
|
+
).action(releaseAction);
|
|
4454
|
+
program.command("commitlint").description("Run commitlint for the workspace's commit message.").option("--config <file>", "The CommitLint config file path").option("--message <commit-message>", "The commit message to lint").option("--file <commit-file>", "The commit message to lint").action(commitLintAction);
|
|
4484
4455
|
return program;
|
|
4485
4456
|
}
|
|
4486
4457
|
async function commitAction({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/git-tools",
|
|
3
|
-
"version": "2.123.
|
|
3
|
+
"version": "2.123.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tools for managing Git repositories within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"@inquirer/prompts": "7.2.1",
|
|
186
186
|
"@nx/devkit": "^21.4.1",
|
|
187
187
|
"@nx/js": "^21.4.1",
|
|
188
|
-
"@storm-software/config": "^1.134.
|
|
189
|
-
"@storm-software/config-tools": "^1.188.
|
|
188
|
+
"@storm-software/config": "^1.134.12",
|
|
189
|
+
"@storm-software/config-tools": "^1.188.12",
|
|
190
190
|
"@textlint/ast-node-types": "14.4.2",
|
|
191
191
|
"@textlint/markdown-to-ast": "14.4.2",
|
|
192
192
|
"anchor-markdown-header": "0.7.0",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"axios": "1.8.2",
|
|
195
195
|
"chalk": "^4.1.2",
|
|
196
196
|
"chalk-template": "1.1.0",
|
|
197
|
-
"conventional-changelog-storm-software": "^0.3.
|
|
197
|
+
"conventional-changelog-storm-software": "^0.3.12",
|
|
198
198
|
"htmlparser2": "10.0.0",
|
|
199
199
|
"jsonc-parser": "3.2.1",
|
|
200
200
|
"nx": "^21.4.1",
|
|
@@ -216,5 +216,5 @@
|
|
|
216
216
|
"tsup": "8.4.0"
|
|
217
217
|
},
|
|
218
218
|
"publishConfig": { "access": "public" },
|
|
219
|
-
"gitHead": "
|
|
219
|
+
"gitHead": "f8f8eb9bb43ef672370e0dfcba1cf80f7e009934"
|
|
220
220
|
}
|