--------------------------------------------------------------------------------------- ?Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? (使用Babel与TypeScript一起用于自动检测的填充)
--------------------------------------------------------------------------------------- ?Use history mode for router? (Requires proper server setup for index fallback in production) (路由模式)
-------------------------------------------------------------------------------------- ?Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): (Use arrow keys) (CSS编译器) > Sass/SCSS (with dart-sass) (保存后编译) Sass/SCSS (with node-sass) (实时编译) Less Stylus ---------------------------------------------------------------------------------------- ?Pick a linter / formatter config: (Use arrow keys) ☜(选择语法检查规范) > ESLint with error prevention only (只进行报错提醒) ESLint + Airbnb config (不严谨模式) ESLint + Standard config (正常模式) ESLint + Prettier (严格模式) TSLint (deprecated) (typescript格式验证工具) ---------------------------------------------------------------------------------------- ? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection) (选择什么时候进行代码规则检测) >(*) Lint on save (保存就检测) ( ) Lint and fix on commit (fix和commit时候检测) ----------------------------------------------------------------------------------------- ? Pick a unit testing solution >(*) Mocha + Chai (mocha灵活,只提供简单的测试结构,如果需要其他功能需要添加其他库/插件完成。必须在全局环境中安装) ( ) Jest (安装配置简单,容易上手。内置Istanbul,可以查看到测试覆盖率,相较于Mocha:配置简洁、测试代码简洁、易于和babel集成、内置丰富的expect) ------------------------------------------------------------------------------------------ ? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) (选择如何存放配置测) > In dedicated config files (独立文件放置) In package.json (放package.json里) ----------------------------------------------------------------------------------------- ? Save this as a preset for future projects? (y/N) (保存上述配置,保存后下一次可直接根据上述配置生成项目,就是上面提到的第三种情况)