Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const FEATURE_FLAGS = [
'eslint-with-prettier',
'oxlint',
'oxfmt',
'vite-beta',
'vue-beta',
] as const

Expand Down Expand Up @@ -89,10 +88,6 @@ const EXPERIMENTAL_FEATURE_OPTIONS = [
value: 'oxfmt',
label: language.needsOxfmt.message,
},
{
value: 'vite-beta',
label: language.needsViteBeta.message,
},
{
value: 'vue-beta',
label: language.needsVueBeta.message,
Expand Down Expand Up @@ -203,8 +198,6 @@ Available feature flags:
Add Prettier for code formatting.
--oxfmt
Add Oxfmt for code formatting.
--vite-beta
Use Vite 8 Beta instead of Vite for building the project.
--vue-beta
Use Vue 3.6 Beta. Requires specifying a package manager in interactive mode.
Expand All @@ -218,8 +211,6 @@ Deprecated feature flags:
Please use ${cyan('--eslint --prettier')} instead.
--oxlint
Oxlint is now always included when ESLint is selected.
--rolldown-vite
Please use ${cyan('--vite-beta')} instead.
`

async function init() {
Expand Down Expand Up @@ -409,8 +400,6 @@ async function init() {
const needsPrettier =
argv.prettier || argv['eslint-with-prettier'] || features.includes('prettier')
const needsOxfmt = experimentFeatures.includes('oxfmt') || argv['oxfmt']
const needsViteBeta =
experimentFeatures.includes('vite-beta') || argv['vite-beta'] || argv['rolldown-vite'] // keep `rolldown-vite` for backward compatibility
const needsVueBeta = experimentFeatures.includes('vue-beta') || argv['vue-beta']

const { e2eFramework } = result
Expand Down Expand Up @@ -438,13 +427,6 @@ async function init() {
const templateDir = path.resolve(templateRoot, templateName)
renderTemplate(templateDir, root, callbacks)
}
const replaceVite = () => {
const content = fs.readFileSync(path.resolve(root, 'package.json'), 'utf-8')
const json = JSON.parse(content)
// Replace `vite` version with beta if the feature is enabled
json.devDependencies.vite = 'beta'
fs.writeFileSync(path.resolve(root, 'package.json'), JSON.stringify(json, null, 2))
}
// Render base template
render('base')

Expand Down Expand Up @@ -558,11 +540,6 @@ async function init() {
render('formatting/prettier')
}

// use Vite 8 Beta if the feature is enabled
if (needsViteBeta) {
replaceVite()
}

// Render code template.
// prettier-ignore
const codeTemplate =
Expand Down
3 changes: 0 additions & 3 deletions locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"message": "Select experimental features to include in your project:",
"hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
},
"needsViteBeta": {
"message": "Vite 8 (beta)"
},
"needsVueBeta": {
"message": "Vue 3.6 (beta)"
},
Expand Down
3 changes: 0 additions & 3 deletions locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"message": "Sélectionnez les fonctionnalités expérimentales à inclure\u00a0:",
"hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
},
"needsViteBeta": {
"message": "Vite 8 (beta)"
},
"needsVueBeta": {
"message": "Vue 3.6 (beta)"
},
Expand Down
3 changes: 0 additions & 3 deletions locales/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"message": "Dahil edilecek deneysel özellikleri seçin:",
"hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
},
"needsViteBeta": {
"message": "Vite 8 (beta)"
},
"needsVueBeta": {
"message": "Vue 3.6 (beta)"
},
Expand Down
3 changes: 0 additions & 3 deletions locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"message": "选择要包含的试验特性:",
"hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
},
"needsViteBeta": {
"message": "Vite 8(测试版)"
},
"needsVueBeta": {
"message": "Vue 3.6(测试版)"
},
Expand Down
3 changes: 0 additions & 3 deletions locales/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"message": "請選擇要包含的試驗特性:",
"hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
},
"needsViteBeta": {
"message": "Vite 8(測試版)"
},
"needsVueBeta": {
"message": "Vue 3.6(測試版)"
},
Expand Down
Loading
Loading