mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-05 22:08:48 -06:00
remove the need to specify debug env when creating test projects
This commit is contained in:
@@ -16,7 +16,6 @@ cd packages/@vue/cli
|
||||
yarn link
|
||||
|
||||
# create test projects in /packages/test
|
||||
export VUE_CLI_DEBUG=true # necessary for manual tests to work
|
||||
cd -
|
||||
cd packages/test
|
||||
vue create test-app
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const chalk = require('chalk')
|
||||
const semver = require('semver')
|
||||
const { error } = require('@vue/cli-shared-utils')
|
||||
@@ -13,6 +15,12 @@ if (!semver.satisfies(process.version, requiredVersion)) {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
// enter debug mode when creating test repo
|
||||
if (process.cwd().indexOf('/packages/test') > 0 &&
|
||||
fs.existsSync(path.resolve(process.cwd(), '../@vue'))) {
|
||||
process.env.VUE_CLI_DEBUG = true
|
||||
}
|
||||
|
||||
const program = require('commander')
|
||||
const loadCommand = require('../lib/util/loadCommand')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user