diff --git a/packages/@vue/cli/lib/Creator.js b/packages/@vue/cli/lib/Creator.js index 5cbb5aafb1..f50c76d65c 100644 --- a/packages/@vue/cli/lib/Creator.js +++ b/packages/@vue/cli/lib/Creator.js @@ -63,7 +63,7 @@ module.exports = class Creator extends EventEmitter { } async create (cliOptions = {}, preset = null) { - const isTestOrDebug = process.env.VUE_CLI_TEST || process.env.VUE_CLI_DEBUG + // const isTestOrDebug = process.env.VUE_CLI_TEST || process.env.VUE_CLI_DEBUG const { run, name, context, createCompleteCbs } = this if (!preset) { @@ -209,10 +209,10 @@ module.exports = class Creator extends EventEmitter { let gitCommitFailed = false if (shouldInitGit) { await run('git add -A') - if (isTestOrDebug) { - await run('git', ['config', 'user.name', 'test']) - await run('git', ['config', 'user.email', 'test@test.com']) - } + // if (isTestOrDebug) { + await run('git', ['config', 'user.name', 'test']) + await run('git', ['config', 'user.email', 'test@test.com']) + // } const msg = typeof cliOptions.git === 'string' ? cliOptions.git : 'init' try { await run('git', ['commit', '-m', msg]) diff --git a/packages/@vue/cli/lib/util/installDeps.js b/packages/@vue/cli/lib/util/installDeps.js index ab929452e7..221d02adef 100644 --- a/packages/@vue/cli/lib/util/installDeps.js +++ b/packages/@vue/cli/lib/util/installDeps.js @@ -100,9 +100,9 @@ function executeCommand (command, args, targetDir) { } const stdio = ['inherit', apiMode ? 'pipe' : 'inherit', !apiMode && command === 'yarn' ? 'pipe' : 'inherit'] - if (process.env.VUE_CLI_TEST) { - stdio[0] = stdio[1] = 'ignore' - } + // if (process.env.VUE_CLI_TEST) { + // stdio[0] = stdio[1] = 'ignore' + // } const child = execa(command, args, { cwd: targetDir,