cmyr-template-cli 1.12.4 → 1.13.1

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 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.12.3" , '-v, --version');
16
+ program.version("1.13.0" , '-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
@@ -99,7 +99,7 @@ async function getFastGitRepo(repository) {
99
99
  }
100
100
  async function asyncExec(cmd, options) {
101
101
  return new Promise((resolve, reject) => {
102
- child_process.exec(cmd, options, (err, stdout, stderr) => {
102
+ const ls = child_process.exec(cmd, options, (err, stdout, stderr) => {
103
103
  if (err) {
104
104
  return reject(err);
105
105
  }
@@ -108,6 +108,12 @@ async function asyncExec(cmd, options) {
108
108
  }
109
109
  resolve(stdout);
110
110
  });
111
+ ls.stdout.on('data', (data) => {
112
+ console.log(data);
113
+ });
114
+ ls.stderr.on('data', (data) => {
115
+ console.log(colors__default["default"].red(data));
116
+ });
111
117
  });
112
118
  }
113
119
  async function initProject(answers) {
@@ -785,10 +791,9 @@ module.exports = function (plop) {
785
791
  message: '请选择项目模板',
786
792
  choices() {
787
793
  return [
788
- 'vue',
789
- 'vue3',
790
- 'vite2',
794
+ 'vite3',
791
795
  'vite2-vue2',
796
+ 'vite2',
792
797
  'electron-vue',
793
798
  'nuxt',
794
799
  'uni',
@@ -803,6 +808,8 @@ module.exports = function (plop) {
803
808
  'rollup',
804
809
  'webpack',
805
810
  'github-action',
811
+ 'vue',
812
+ 'vue3',
806
813
  ].map((e) => `${e}-template`);
807
814
  },
808
815
  default: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.12.4",
3
+ "version": "1.13.1",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",
@@ -32,9 +32,9 @@
32
32
  "build:prod": "npm run build && rimraf temp && cross-env NODE_ENV=production ct create"
33
33
  },
34
34
  "devDependencies": {
35
- "@rollup/plugin-commonjs": "^22.0.0",
35
+ "@rollup/plugin-commonjs": "^22.0.1",
36
36
  "@rollup/plugin-json": "^4.1.0",
37
- "@rollup/plugin-node-resolve": "^13.0.5",
37
+ "@rollup/plugin-node-resolve": "^13.3.0",
38
38
  "@rollup/plugin-replace": "^4.0.0",
39
39
  "@rollup/plugin-typescript": "^8.0.0",
40
40
  "@semantic-release/changelog": "^6.0.0",
@@ -59,7 +59,7 @@
59
59
  "husky": "^8.0.1",
60
60
  "lint-staged": "^13.0.0",
61
61
  "rimraf": "^3.0.2",
62
- "rollup": "^2.33.3",
62
+ "rollup": "^2.75.7",
63
63
  "rollup-plugin-terser": "^7.0.2",
64
64
  "semantic-release": "^19.0.2",
65
65
  "ts-node": "^10.2.1",
@@ -81,7 +81,8 @@
81
81
  "minimist": "^1.2.5",
82
82
  "ora": "^5.4.1",
83
83
  "plop": "^2.7.6",
84
- "promise.any": "^2.0.2"
84
+ "promise.any": "^2.0.2",
85
+ "tslib": "^2.4.0"
85
86
  },
86
87
  "config": {
87
88
  "commitizen": {