ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

vue 创建项目时候的备注

2021-05-27 11:05:27  阅读:231  来源: 互联网

标签:Use vue 创建 -------------------- Vue ESLint config 备注


1. vue create <项目名>
? Please pick a preset: (Use arrow keys)
> Default ([Vue 2] babel, eslint) -------- 默认vue2模板
vue3-project ([Vue 3] node-sass, babel, typescript, router, vuex, eslint) --------自己之前保存的vue3模板
Default (Vue 3 Preview) ([Vue 3] babel, eslint) --------------默认vue3模板
Manually select features ------------------手动选择(推荐)


? Check the features needed for your project:
(*) Choose Vue version --------------------是否选择vue版本
(*) Babel --------------------是否需要安装babel
(*) TypeScript --------------------是否使用ts
( ) Progressive Web App (PWA) Support ---------------是否需要支持web app
(*) Router --------------------- 是否安装router
(*) Vuex ---------------------- 是否安装vuex
>(*) CSS Pre-processors ---------------------css 预处理器选择
(*) Linter / Formatter -------------------------校验规则选择
( ) Unit Testing ------------------------- 单元测试
( ) E2E Testing ------------------------------- 端到端测试

? Choose a version of Vue.js that you want to start the project with --------------------选择vue版本
2.x
> 3.x (Preview)

Use class-style component syntax? (y/N) N -----------------是否使用class风格装饰器

Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, trans
piling JSX)? (Y/n) Y ------------------------使用Babel与TypeScript一起用于自动检测的填充

Use history mode for router? (Requires proper server setup for index fallback in product
ion) (Y/n) Y -------------------- 使用历史模式路由

? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default
): --------------------------------------选择css预编译器
Sass/SCSS (with dart-sass)
> Sass/SCSS (with node-sass)
Less
Stylus

? Pick a linter / formatter config: -----------选择规则
ESLint with error prevention only
ESLint + Airbnb config
ESLint + Standard config
> ESLint + Prettier
TSLint (deprecated)

? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to inver
t selection) ------------------------------选择格式化时机
>(*) Lint on save
( ) Lint and fix on commit

? Where do you prefer placing config for Babel, ESLint, etc.? (Use arrow keys) --------------------------选择配置文件
> In dedicated config files ------------------外部创建配置文件 例:vue.config.js/ts
In package.json -----------------------在此文件内部配置

Save this as a preset for future projects? (y/N) N ---------------------是否保存为模板

标签:Use,vue,创建,--------------------,Vue,ESLint,config,备注
来源: https://www.cnblogs.com/zyh2333/p/14816948.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有