mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-06 20:09:14 -05:00
chore: pre release sync
This commit is contained in:
@@ -16,17 +16,17 @@ module.exports = (api, { config, lintOn = [] }) => {
|
||||
if (config === 'airbnb') {
|
||||
pkg.eslintConfig.extends.push('@vue/airbnb')
|
||||
Object.assign(pkg.devDependencies, {
|
||||
'@vue/eslint-config-airbnb': '^3.0.0-alpha.4'
|
||||
'@vue/eslint-config-airbnb': '^3.0.0-alpha.5'
|
||||
})
|
||||
} else if (config === 'standard') {
|
||||
pkg.eslintConfig.extends.push('@vue/standard')
|
||||
Object.assign(pkg.devDependencies, {
|
||||
'@vue/eslint-config-standard': '^3.0.0-alpha.4'
|
||||
'@vue/eslint-config-standard': '^3.0.0-alpha.5'
|
||||
})
|
||||
} else if (config === 'prettier') {
|
||||
pkg.eslintConfig.extends.push('@vue/prettier')
|
||||
Object.assign(pkg.devDependencies, {
|
||||
'@vue/eslint-config-prettier': '^3.0.0-alpha.4'
|
||||
'@vue/eslint-config-prettier': '^3.0.0-alpha.5'
|
||||
})
|
||||
} else {
|
||||
// default
|
||||
|
||||
@@ -31,7 +31,7 @@ test('loading plugins from package.json', () => {
|
||||
mockPkg({
|
||||
devDependencies: {
|
||||
'bar': '^1.0.0',
|
||||
'@vue/cli-plugin-babel': '^3.0.0-alpha.4',
|
||||
'@vue/cli-plugin-babel': '^3.0.0-alpha.5',
|
||||
'vue-cli-plugin-foo': '^1.0.0'
|
||||
}
|
||||
})
|
||||
|
||||
@@ -10,7 +10,9 @@ module.exports = (api, options) => {
|
||||
options: {
|
||||
'--mode': `specify env mode (default: ${defaults.mode})`
|
||||
// TODO build target
|
||||
// '--target': `app | library | web-component (default: ${defaults.target})`
|
||||
// '--target': `app | lib | web-component (default: ${defaults.target})`,
|
||||
// '--format': `How the lib is exposed (esm, umd, cjs, amd). Default: esm`
|
||||
// '--name': `Library name for umd/iife export`
|
||||
}
|
||||
}, args => {
|
||||
api.setMode(args.mode || defaults.mode)
|
||||
|
||||
@@ -38,7 +38,7 @@ program
|
||||
.command('create <app-name>')
|
||||
.description('create a new project powered by vue-cli-service')
|
||||
.option('-p, --preset <presetName>', 'Skip prompts and use saved preset')
|
||||
.option('-d, --default', 'Skip prompts and use default config')
|
||||
.option('-d, --default', 'Skip prompts and use default preset')
|
||||
.option('-i, --inlinePreset <json>', 'Skip prompts and use inline JSON string as preset')
|
||||
.option('-r, --registry <url>', 'Use specified NPM registry when installing dependencies')
|
||||
.option('-m, --packageManager <command>', 'Use specified NPM client when installing dependencies')
|
||||
|
||||
Reference in New Issue
Block a user