features?: (typeof FEATURE_OPTIONS)[number]['value'][]
e2eFramework?: 'cypress' | 'nightwatch' | 'playwright'
experimentFeatures?: (typeof EXPERIMENTAL_FEATURE_OPTIONS)[number]['value'][]
+ needsBareboneTemplates?: boolean
}
function isValidPackageName(projectName) {
features: [],
e2eFramework: undefined,
experimentFeatures: [],
+
+ // TODO: default to true sometime in the future
+ needsBareboneTemplates: false,
}
intro(
)
}
- const { features, experimentFeatures } = result
+ if (argv.bare) {
+ result.needsBareboneTemplates = true
+ } else if (!isFeatureFlagsUsed) {
+ result.needsBareboneTemplates = await unwrapPrompt(
+ confirm({
+ message: language.needsBareboneTemplates.message,
+ // TODO: default to true sometime in the future
+ initialValue: false,
+ }),
+ )
+ }
+
+ const { features, experimentFeatures, needsBareboneTemplates } = result
const needsTypeScript = argv.ts || argv.typescript || features.includes('typescript')
const needsJsx = argv.jsx || features.includes('jsx')
},
)
- if (argv.bare) {
+ if (needsBareboneTemplates) {
trimBoilerplate(root)
render('bare/base')
// TODO: refactor the `render` utility to avoid this kind of manual mapping?
)
}
- if (argv.bare) {
+ if (needsBareboneTemplates) {
removeCSSImport(root, needsTypeScript, needsCypressCT)
if (needsRouter) {
emptyRouterConfig(root, needsTypeScript)
"needsRolldownVite": {
"message": "rolldown-vite (experimental)"
},
+ "needsBareboneTemplates": {
+ "message": "Skip all example code and start with a blank Vue project?"
+ },
"errors": {
"operationCancelled": "Operation cancelled"
},
"needsRolldownVite": {
"message": "rolldown-vite (expérimental)"
},
+ "needsBareboneTemplates": {
+ "message": "Ignorer tout le code d'exemple et commencer avec un projet Vue vierge\u00a0?"
+ },
"errors": {
"operationCancelled": "Operation annulée"
},
"needsRolldownVite": {
"message": "rolldown-vite (deneysel)"
},
+ "needsBareboneTemplates": {
+ "message": "Tüm örnek kodları atlayıp boş bir Vue projesi ile başlansın mı?"
+ },
"errors": {
"operationCancelled": "İşlem iptal edildi"
},
needsExperimentalFeatures: LanguageItem
needsOxlint: LanguageItem
needsRolldownVite: LanguageItem
+ needsBareboneTemplates: LanguageItem
errors: {
operationCancelled: string
}