cmyr-template-cli 1.14.2 → 1.14.3
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 +12 -2
- 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.14.
|
|
16
|
+
program.version("1.14.2" , '-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
|
@@ -62,6 +62,16 @@ const REMOTES = [
|
|
|
62
62
|
'https://github.com',
|
|
63
63
|
'https://hub.fastgit.xyz',
|
|
64
64
|
'https://download.fastgit.org',
|
|
65
|
+
'https://ghproxy.com/https://github.com',
|
|
66
|
+
'https://gh.ddlc.top/https://github.com',
|
|
67
|
+
'https://gh.flyinbug.top/gh/https://github.com',
|
|
68
|
+
'https://gh.con.sh/https://github.com',
|
|
69
|
+
'https://cors.isteed.cc/github.com',
|
|
70
|
+
'https://ghps.cc/https://github.com',
|
|
71
|
+
'https://download.nuaa.cf',
|
|
72
|
+
'https://kgithub.com',
|
|
73
|
+
'https://github.moeyy.xyz/https://github.com',
|
|
74
|
+
'https://hub.njuu.cf',
|
|
65
75
|
];
|
|
66
76
|
async function createGiteeRepo(data) {
|
|
67
77
|
try {
|
|
@@ -872,12 +882,12 @@ async function removeFiles(projectPath, files) {
|
|
|
872
882
|
const newPath = path__default["default"].join(projectPath, file);
|
|
873
883
|
if (await fs__default["default"].pathExists(newPath)) {
|
|
874
884
|
await fs__default["default"].remove(newPath);
|
|
875
|
-
loading.succeed(`文件 ${file} 删除成功!`);
|
|
876
885
|
}
|
|
877
886
|
else {
|
|
878
|
-
|
|
887
|
+
console.log(`文件 ${file} 不存在,已跳过删除`);
|
|
879
888
|
}
|
|
880
889
|
}
|
|
890
|
+
loading.succeed(`文件 ${files.join()} 删除成功!`);
|
|
881
891
|
return true;
|
|
882
892
|
}
|
|
883
893
|
catch (error) {
|