From aa47d01c4b02164acd243d6571788220505c1251 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 14 Apr 2024 21:03:50 +0800 Subject: [PATCH] feat(Cli): update template to v7 --- .../generators/vue3/package.json.tpl | 2 +- packages/create-vant-cli-app/src/generator.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/create-vant-cli-app/generators/vue3/package.json.tpl b/packages/create-vant-cli-app/generators/vue3/package.json.tpl index dfba98500..d4583851e 100644 --- a/packages/create-vant-cli-app/generators/vue3/package.json.tpl +++ b/packages/create-vant-cli-app/generators/vue3/package.json.tpl @@ -31,7 +31,7 @@ "vue": "^3.3.4" }, "devDependencies": { - "@vant/cli": "^6.0.0", + "@vant/cli": "^7.0.0", "vue": "^3.3.4", "sass": "^1.49.7" }, diff --git a/packages/create-vant-cli-app/src/generator.ts b/packages/create-vant-cli-app/src/generator.ts index 0545ada36..eddba11d1 100644 --- a/packages/create-vant-cli-app/src/generator.ts +++ b/packages/create-vant-cli-app/src/generator.ts @@ -12,21 +12,21 @@ const PROMPTS = [ message: 'Select Vue version', type: 'select', choices: [ - { - name: 'vue2', - message: 'Vue 2', - }, { name: 'vue3', message: 'Vue 3', }, + { + name: 'vue2', + message: 'Vue 2', + }, ], }, { name: 'preprocessor', message: 'Select css preprocessor', type: 'select', - choices: ['Less', 'Sass'], + choices: ['Sass', 'Less'], }, ];