? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection) >(*) Choose Vue version (*) Babel # 将ES6语法转换为ES5语法 ( ) TypeScript # JS的超集 ( ) Progressive Web App (PWA) Support # App支持 (*) Router # 路由 (*) Vuex # 状态管理 (*) CSS Pre-processors # sass,less转css (*) Linter / Formatter # 检查语法规范 ( ) Unit Testing # 单元测试 ( ) E2E Testing # 端对端测试
路由是否使用历史模式,选择Y
1
? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n)
处理Sass还是Less,根据需求选择即可
1 2 3 4 5
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): (Use arrow keys) > Sass/SCSS (with dart-sass) Sass/SCSS (with node-sass) Less Stylus
选择eslint标准,选择Airbnb
1 2 3 4 5
? Pick a linter / formatter config: (Use arrow keys) ESLint with error prevention only > ESLint + Airbnb config ESLint + Standard config ESLint + Prettier
保存时修复与提交git时修复,可全选
1 2 3
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection) >(*) Lint on save (*) Lint and fix on commit (requires Git)
各插件的配置文件独立还是全部放入package.json
1 2 3
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) > In dedicated config files In package.json
是否为下次手动配置记录此次选择
1
? Save this as a preset for future projects? (y/N)