Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Jun 27, 2019
1 parent 5934108 commit b7364d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/@vue/cli/lib/Creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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])
Expand Down
6 changes: 3 additions & 3 deletions packages/@vue/cli/lib/util/installDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b7364d6

Please sign in to comment.