"@typescript-eslint/parser": "^5.11.0", "@vitejs/plugin-legacy": "^1.7.1", "cross-env": "^7.0.3", "eslint": "^7.32.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^16.1.0", "eslint-plugin-vue": "^8.4.0", "prettier": "^1.18.2...
4"@commitlint/format": "^17.0.0",5"@commitlint/types": "^17.0.0",6"@types/json-server": "^0.14.4",7"@types/node": "^18.6.4",8"@typescript-eslint/eslint-plugin": "^5.32.0",9"@typescript-eslint/parser": "^5.32.0",10"@vitejs/plugin-vue": "^3.0.1"...
"vue-template-compiler": "^2.6.10" "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", "dayjs": "^1.11.7", "eslint": "^7.32.0", "eslint-con...
首先我们可以通过vue config命令来查看.vuerc中的配置 vue config 1. 输入vue config --help 可以查看vue config 下的命令 vue config --help 1. 输入vue config --get packageManager 可以查看当前我们使用的包管理器 vue config --get packageManager 1. 输入vue config --set packageManager npm 来进行修改...
peerDependencies的使用场景一般是核心库的周边插件,例如vue之于vuex,或者vite之于@vitejs/plugin-vue2,插件一般是不能独立于核心库而单独工作的。 以下演示一个正确使用peerDependencies的插件范例。 该插件适用于vite,作用是解析vue2.7及以上版本的模板文件,因此对vite和vue的版本进行了限制。
简单来说就是,将多个项目或包文件放到一个git仓库来管理。 目前比较广泛应用的是yarn+lerna的方式实现monorepo的管理。 一个简单的monorepo的目录结构类似这样: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 js 复制代码 ├── packages|├── pkg1||├──package.json|├── pkg2||├──package....
"@vue/eslint-config-typescript":"11.0.3", "@vue/test-utils":"2.3.2", "eslint":"8.42.0", "eslint-plugin-prettier":"4.2.1", "eslint-plugin-vue":"9.14.1", "husky":"8.0.3", "jsdom":"22.1.0", "lint-staged":"13.2.2", ...
一:新建vue3项目 运行如下命令: pnpm create vite 模板选择vue、vue-ts 二:配置依赖包 修改项目根目录的package.json的scripts和devDependencies如下 "scripts":{"dev":"vite","build":"vue-tsc --noEmit && vite build","preview":"vite preview","lint:eslint":"eslint --fix --ext .js,.ts,.vue,...
安装项目公共开发依赖,声明在根目录的 package.json - devDependencies 中。-w 选项代表在 monorepo 模式下的根目录进行操作。 每个子包都能访问根目录的依赖,适合把 TypeScript、Vite、eslint 等公共开发依赖装在这里。 pnpm install -wD xxx 卸载公共依赖,在根目录的 package.json - devDependencies 中删去对应声明...
build: 初始化Vue3项目 7个月前 .eslintrc.cjs build: 初始化Vue3项目 7个月前 .gitignore build: 初始化Vue3项目 7个月前 .prettierignore build: 初始化Vue3项目 7个月前 .prettierrc.json build: 初始化Vue3项目 7个月前 LICENSE add LICENSE. ...