Vue CLI v5.0.1 ? Please pick a preset: Manually select features ? Check the features needed for your project: (Press <space> to select, <a> to t oggle all, <i> to invert selection, and <enter> to proceed) ◉ Babel // 使用 babel ◯ TypeScript ◯ Progressive Web App (PWA) Support ◉ Router // 添加 vue-router ◉ Vuex // 添加 vuex ◉ CSS Pre-processors // 使用 css 预处理器 ◉ Linter / Formatter // 代码格式化 ◯ Unit Testing ❯◯ E2E Testing
step 3:
1 2 3 4 5 6 7 8
Vue CLI v5.0.1 ? Please pick a preset: Manually select features ? Check the features needed for your project: Babel, Router, Vuex, CSS Pre-proce ssors, Linter ? Choose a version of Vue.js that you want to start the project with (Use arrow keys) ❯ 3.x // 选择 vue 3.0 版本 2.x
step 4:
1 2 3 4 5 6 7 8 9
Vue CLI v5.0.1 ? Please pick a preset: Manually select features ? Check the features needed for your project: Babel, Router, Vuex, CSS Pre-proce ssors, Linter ? Choose a version of Vue.js that you want to start the project with 3.x ? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n) n // 不使用 history 模式的路由
step 5:
1 2 3 4 5 6
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): (Use arrow keys) ❯ Sass/SCSS (with dart-sass) // 使用基于 dart-sass 的 scss 预处理器 Less Stylus
step 6:
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 标准化格式代码方案 ESLint + Prettier
step 7:
1 2 3 4
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i > to invert selection, and <enter> to proceed) ◉ Lint on save ❯◉ Lint and fix on commit // 保存时 && 提交时,都进行 lint
step 8:
1 2 3 4
? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) ❯ In dedicated config files // 单独的配置文件 In package.json
step 9:
1 2 3
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated confi g files ? Save this as a preset for future projects? (y/N) n // 不存储预设