feat(react): default to Vite when converting from CRA to Nx (#13473)

This commit is contained in:
Jack Hsu 2022-11-29 09:27:28 -05:00 committed by GitHub
parent 19a6da335e
commit f2c5ebae3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,22 +14,23 @@ export const commandsObject = yargs
})
.option('e2e', {
type: 'boolean',
describe: 'Generate end-to-end tests with Cypress',
describe: 'Generate end-to-end tests with Cypress.',
default: false,
})
.option('nxCloud', {
type: 'boolean',
describe: 'Setup Nx Cloud',
describe: 'Setup Nx Cloud.',
default: true,
})
.option('vite', {
type: 'boolean',
describe: 'Use Vite and Vitest (instead of Webpack and Jest)',
default: false,
describe:
'Use Vite and Vitest (instead of Webpack and Jest). Pass --vite=false to use Webpack.',
default: true,
})
.option('integrated', {
type: 'boolean',
describe: 'Use integrated folder structure, with apps folder',
describe: 'Use integrated folder structure, with apps folder.',
default: false,
})
.help();