File tree 7 files changed +61
-4
lines changed
7 files changed +61
-4
lines changed Original file line number Diff line number Diff line change
1
+ # @see: http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [* ] # 表示所有文件适用
6
+ charset = utf-8 # 设置文件字符集为 utf-8
7
+ end_of_line = lf # 控制换行类型(lf | cr | crlf)
8
+ insert_final_newline = true # 始终在文件末尾插入一个新行
9
+ indent_style = space # 缩进风格(tab | space)
10
+ indent_size = 2 # 缩进大小
11
+ max_line_length = 100 # 最大行长度
12
+
13
+ [* .md ] # 表示仅 md 文件适用以下规则
14
+ insert_final_newline = false # 关闭末尾新行插入
15
+ max_line_length = off # 关闭最大行长度限制
16
+ trim_trailing_whitespace = false # 关闭末尾空格修剪
Original file line number Diff line number Diff line change
1
+ 18.18.2
Original file line number Diff line number Diff line change 1
1
registry = "https://registry.npmmirror.com "
2
+ # 强制检查 engines 字段中指定的版本要求
2
3
engine-strict = true
4
+ # 自动安装 peerDependencies 中的依赖
3
5
auto-install-peers = true
6
+ # 不严格检查 peerDependencies 的版本要求
4
7
strict-peer-dependencies = false
5
- shamefully-hoist = true
8
+ # 将依赖提升到根目录的 node_modules,以解决幽灵依赖问题
9
+ shamefully-hoist = true
Original file line number Diff line number Diff line change
1
+ dist
2
+ .local
3
+ .output.js
4
+ node_modules
5
+ .nvmrc
6
+ .output
7
+
8
+
9
+ ** /* .svg
10
+ ** /* .sh
11
+
12
+ public
13
+ .npmrc
14
+ * -lock.yaml
Original file line number Diff line number Diff line change
1
+ dist
2
+ public
3
+ __tests__
Original file line number Diff line number Diff line change 1
1
# 组件库模板
2
2
3
- 这是一个基于 Turborepo + Vue 3 + TypeScript 的现代化组件库模板,采用 Monorepo 架构来管理多个包,涵盖了 ESLint、Prettier、Stylelint、Commitlint + Husky + Lint-Staged 和 TypeScript 的项目规范配置。此模板提供了一套完整的开发环境,旨在让开发者能够专注于组件的开发,而无需担心底层配置的复杂性。
3
+ 这是一个基于 ` Turborepo + Vue 3 + TypeScript ` 的现代化组件库模板,采用 Monorepo 架构来管理多个包,涵盖了 ESLint、Prettier、Stylelint、Commitlint + Husky + Lint-Staged 和 TypeScript 的项目规范配置。此模板提供了一套完整的开发环境,旨在让开发者能够专注于组件的开发,而无需担心底层配置的复杂性。
4
4
5
5
## 📦 项目结构
6
6
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue3-component-lib" ,
3
+ "description" : " This is a modern component library template based on Turborepo+Vue 3+TypeScript." ,
3
4
"version" : " 1.0.0" ,
4
5
"private" : true ,
6
+ "packageManager" : " pnpm@9.12.3" ,
7
+ "author" : " huangmingfu <212149997@qq.com>" ,
8
+ "license" : " MIT" ,
9
+ "homepage" : " https://github.com/huangmingfu/vue3-turbo-component-lib-template" ,
10
+ "repository" : {
11
+ "type" : " git" ,
12
+ "url" : " https://github.com/huangmingfu/vue3-turbo-component-lib-template"
13
+ },
14
+ "bugs" : " https://github.com/huangmingfu/vue3-turbo-component-lib-template/issues" ,
15
+ "keywords" : [
16
+ " component-template" ,
17
+ " component-lib" ,
18
+ " turborepo" ,
19
+ " monorepo" ,
20
+ " vue3" ,
21
+ " vite5" ,
22
+ " turbo"
23
+ ],
5
24
"scripts" : {
6
25
"dev" : " turbo run dev" ,
7
26
"dev:docs" : " pnpm -F @vue3-lib/docs run dev" ,
31
50
"stylelint-config-standard-scss" : " ^10.0.0" ,
32
51
"stylelint-config-recommended-vue" : " ^1.5.0"
33
52
},
34
- "packageManager" : " pnpm@9.12.3" ,
35
53
"engines" : {
36
- "node" : " >=18.0.0"
54
+ "node" : " >=18" ,
55
+ "pnpm" : " >=9"
37
56
}
38
57
}
You can’t perform that action at this time.
0 commit comments