feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

17
src/utils/prompts.js Normal file
View File

@@ -0,0 +1,17 @@
const inquirer = require('inquirer');
async function askProjectDetails() {
return inquirer.prompt([
{ type: 'confirm', name: 'useHusky', message: 'Install Husky?' },
{ type: 'confirm', name: 'useAntd', message: 'Install Antd?' },
{ type: 'confirm', name: 'useRedux', message: 'Use Redux?' },
{ type: 'confirm', name: 'useModuleFederation', message: 'Use Module Federation Plugin?' },
{ type: 'list', name: 'language', message: 'Choose language:', choices: ['JavaScript', 'TypeScript'] },
{ type: 'list', name: 'testingFramework', message: 'Choose testing framework:', choices: ['Jest', 'Mocha'] },
{ type: 'list', name: 'styling', message: 'Choose styling option:', choices: ['CSS', 'SCSS', 'SASS', 'LESS'] },
{ type: 'list', name: 'modules', message: 'Use CSS Modules, styled-components, or emotion?', choices: ['Modules', 'styled-components', 'emotion'] },
]);
}
module.exports = { askProjectDetails };