cmyr-template-cli 1.7.5 → 1.7.6
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.js +1 -1
- package/dist/plopfile.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
|
13
13
|
|
|
14
14
|
const program = new commander.Command('ct')
|
|
15
15
|
.description('草梅项目创建器');
|
|
16
|
-
program.version("1.7.
|
|
16
|
+
program.version("1.7.5" , '-v, --version');
|
|
17
17
|
const args = process.argv.slice(2);
|
|
18
18
|
if (args.length === 0) {
|
|
19
19
|
args.push('create');
|
package/dist/plopfile.js
CHANGED
|
@@ -553,6 +553,7 @@ async function initHusky(projectPath) {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
async function initCommitizen(projectPath) {
|
|
556
|
+
const loading = ora__default["default"]('正在初始化 commitizen ……').start();
|
|
556
557
|
try {
|
|
557
558
|
const pkg = await getProjectJson(projectPath);
|
|
558
559
|
const devDependencies = {
|
|
@@ -576,9 +577,11 @@ async function initCommitizen(projectPath) {
|
|
|
576
577
|
},
|
|
577
578
|
};
|
|
578
579
|
await saveProjectJson(projectPath, pkgData);
|
|
580
|
+
loading.succeed('commitizen 初始化成功!');
|
|
579
581
|
}
|
|
580
582
|
catch (error) {
|
|
581
583
|
console.error(error);
|
|
584
|
+
loading.fail('commitizen 初始化失败!');
|
|
582
585
|
}
|
|
583
586
|
}
|
|
584
587
|
async function sortProjectJson(projectPath) {
|