gridsum-vue3-pc 1.0.5 → 1.0.7

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.
@@ -189,21 +189,6 @@ function runCommandAsync(command, options = {}) {
189
189
  });
190
190
  }
191
191
 
192
- function tryGitInit(root) {
193
- try {
194
- const hasGit = spawn.sync('git', ['--version'], { stdio: 'ignore' });
195
- if (hasGit.status !== 0) return;
196
- spawn.sync('git', ['init'], { cwd: root, stdio: 'ignore' });
197
- spawn.sync('git', ['add', '.'], { cwd: root, stdio: 'ignore' });
198
- spawn.sync('git', ['-c', 'user.name=gridsum-vue3-pc', '-c', 'user.email=gridsum-vue3-pc@local', 'commit', '-m', 'Initial project scaffolded by gridsum-vue3-pc'], {
199
- cwd: root,
200
- stdio: 'ignore',
201
- });
202
- } catch {
203
- // git init is best-effort
204
- }
205
- }
206
-
207
192
  function checkNodeVersion() {
208
193
  const version = parseInt(process.version.slice(1).split('.')[0]);
209
194
  if (version < MIN_NODE_VERSION) {
@@ -478,10 +463,6 @@ async function main() {
478
463
  process.stdout.write(`${pc.green('✓')} Dependencies installed!\n`);
479
464
  }
480
465
 
481
- if (!argv['no-git'] && !process.env._CREATE_VUE3_PC_TEST) {
482
- tryGitInit(root);
483
- }
484
-
485
466
  const cdProjectName = path.relative(process.cwd(), root);
486
467
  let doneMessage = '';
487
468
 
@@ -496,14 +477,6 @@ async function main() {
496
477
  doneMessage += `\n ${pc.bold(pc.cyan(pkgManager))} ${pkgManager === 'yarn' ? 'dev' : 'run dev'}`;
497
478
 
498
479
  prompts.outro(`${pc.green('Done!')} Now run:${doneMessage}`);
499
-
500
- console.log(`
501
- ${pc.dim('Available commands:')}
502
- ${pkgManager} ${pkgManager === 'yarn' ? 'dev' : 'run dev'} ${pc.dim('- Start dev server')}
503
- ${pkgManager} ${pkgManager === 'yarn' ? 'build' : 'run build'} ${pc.dim('- Build for production')}
504
- ${pkgManager} ${pkgManager === 'yarn' ? 'lint' : 'run lint'} ${pc.dim('- Lint code')}
505
- ${pkgManager} ${pkgManager === 'yarn' ? 'test' : 'run test'} ${pc.dim('- Run tests')}
506
- `);
507
480
  }
508
481
 
509
482
  main().catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridsum-vue3-pc",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Gridsum Vue3 Vite PC Template Generator - 快速生成基于 Vue3 + Vite + TypeScript 的企业级 PC 端项目",
5
5
  "type": "module",
6
6
  "sideEffects": false,