-
Notifications
You must be signed in to change notification settings - Fork 266
/
package.json
267 lines (267 loc) · 12.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
{
"name": "opentiny-vue",
"version": "3.14.0",
"private": true,
"packageManager": "[email protected]",
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"author": "OpenTiny Team",
"license": "MIT",
"homepage": "https://opentiny.design/tiny-vue",
"repository": {
"type": "git",
"url": "[email protected]:opentiny/tiny-vue.git"
},
"bugs": {
"url": "https://github.com/opentiny/tiny-vue/issues"
},
"keywords": [
"vue",
"vue3",
"frontend",
"component-library",
"components",
"vue-components",
"opentiny",
"renderless-components",
"headless-components"
],
"main": "packages/index.js",
"engines": {
"node": ">=16",
"pnpm": ">=6.35"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm build:internals",
"prepare": "husky install",
"bootstrap": "pnpm --filter=\"!./packages/dist/**\" install",
"dev": "pnpm build:entry && pnpm -C examples/vue3 dev",
"dev:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/vue3 dev:saas",
"dev2": "pnpm build:entry && pnpm -C examples/vue2 dev",
"dev2:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/vue2 dev:saas",
"dev2.7": "pnpm build:entry && pnpm -C examples/vue2.7 dev",
"dev2.7:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/vue2.7 dev:saas",
"// ---------- 启动官网文档 ----------": "",
"site": "pnpm build:entry && pnpm -C examples/sites start",
"site:open": "pnpm build:entry && pnpm -C examples/sites start:open",
"// ---------- 启动移动端组件官网文档 ----------": "",
"site:mobile": "pnpm build:entry && pnpm -C examples/sites start:mobile",
"// ---------- 启动saas官网文档 ----------": "",
"site:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/sites start:saas",
"build:entry": "pnpm -C internals/cli build:entry",
"create:ui": "pnpm -C internals/cli create:ui",
"// ---------- 创建saas图标ts文件----------": "",
"create:icon-saas": "pnpm -C internals/cli create:icon-saas",
"// ---------- 创建组件和模板打包入口 ----------": "",
"create:mapping": "pnpm -C internals/cli create:mapping",
"sync-icons": "pnpm -C internals/cli sync-icons",
"build:entry-app": "pnpm -C internals/cli build:entry-app",
"// ---------- 打包运行时组件库 ----------": "",
"build:runtime": "pnpm -C internals/cli build:runtime",
"// ---------- 构建相关脚本 ----------": "",
"build:ui": "pnpm create:icon-saas && pnpm create:mapping && pnpm build:entry && pnpm -C internals/cli build:ui",
"build:chartTheme": "pnpm -C internals/cli build:chartTheme",
"build:renderless": "pnpm -C packages/renderless build:fast",
"build:theme": "pnpm -C packages/theme build:fast",
"build:themeSaas": "pnpm -C packages/theme-saas build:fast",
"build:themeMobile": "pnpm -C packages/theme-mobile build:fast",
"build:internals": "pnpm \"--filter=./internals/*\" build",
"build:vite-import": "pnpm --filter @opentiny/vue-vite-import build",
"build:virtual-template": "pnpm --filter @opentiny-internal/unplugin-virtual-template build",
"build:site": "pnpm i -g pnpm && pnpm build:vite-import && pnpm build:virtual-template && pnpm -C examples/sites build",
"release:aurora": "pnpm -C internals/cli release:aurora",
"// ---------- 使用pnpm批量发布npm包 ----------": "",
"pub2": "pnpm --filter=\"./packages/dist2/**\" publish --tag v2-latest --no-git-checks --access=public",
"pub3": "pnpm --filter=\"./packages/dist3/**\" publish --no-git-checks --access=public",
"pub2.7": "pnpm --filter=\"./packages/dist2.7/**\" publish --tag v2.7-latest --no-git-checks --access=public",
"pub:aurora": "pnpm --filter=\"./packages/dist2/@aurora/**\" publish --no-git-checks --access=public",
"pub:theme": "pnpm --filter=\"./packages/theme/dist\" publish --no-git-checks --access=public",
"pub:themeMobile": "pnpm --filter=\"./packages/theme-mobile/dist/\" publish --no-git-checks --access=public",
"pub:themeSaas": "pnpm --filter=\"./packages/theme-saas/dist\" publish --no-git-checks --access=public",
"pub:renderless": "pnpm --filter=\"./packages/renderless/dist\" publish --no-git-checks --access=public",
"pub:runtime": "pnpm --filter=\"./packages/vue-runtime/\" publish --no-git-checks --access=public",
"pub:all": "pnpm pub2 && pnpm pub3 && pnpm pub:theme && pnpm pub:themeMobile && pnpm pub:themeSaas && pnpm pub:renderless",
"pub:site": "pnpm -C examples/sites pub",
"// ---------- 自动化发测试包 ----------": "",
"auto-build-pub": "pnpm -C internals/automate auto-build-pub",
"// ---------- unit单元测试 ----------": "",
"test:unit2": "pnpm -C examples/vue2 test:unit",
"test:unit2.7": "pnpm -C examples/vue2.7 test:unit",
"test:unit3": "pnpm -C examples/vue3 test:unit",
"// ---------- e2e自动化测试 ----------": "",
"test:e2e2": "pnpm -C examples/vue2 test:e2e --project=chromium",
"test:e2e2.7": "pnpm -C examples/vue2.7 test:e2e --project=chromium",
"test:e2e3": "pnpm -C examples/vue3 test:e2e --project=chromium",
"test:e2e2:mobile": "pnpm -C examples/vue2 test:e2e --project=android",
"test:e2e2.7:mobile": "pnpm -C examples/vue2.7 test:e2e --project=android",
"test:e2e3:mobile": "pnpm -C examples/vue3 test:e2e --project=android",
"// ---------- playwright下载chromium、firefox等浏览器内核 ----------": "",
"install:browser": "pnpm -C examples/vue3 install:browser",
"// ---------- e2e测试代码生成器 ----------": "",
"codegen": "pnpm -C examples/vue3 codegen",
"codegen:mobile": "pnpm -C examples/vue3 codegen --device=\"Pixel 5\" ",
"format": "prettier --write --cache packages/**/{*.vue,*.js,*.ts,*.jsx,*.tsx,*.less} examples/**/{*.vue,*.js,*.ts,*.jsx,*.tsx} internals/**/{*.js,*.ts}",
"lint": "eslint \"packages/**/{*.vue,*.js,*.ts}\" --quiet --fix",
"lint:doc": "eslint \"examples/**/{*.vue,*.js,*.ts}\" --quiet --fix",
"clean:build": "rimraf packages/dist2 packages/dist3 packages/dist2.7 packages/renderless/dist packages/theme/dist packages/theme-saas/dist packages/theme-mobile/dist",
"clean:dependencies": "rm -rf node_modules /**/node_modules",
"// ---------- 构建【mf】版本 ----------": "",
"preci:deployMfPatch": "pnpm clean:build && lerna version prepatch --conventional-prerelease --include-merged-tags --preid mf --no-push --yes",
"ci:deployMfPatch": "lerna publish from-package --yes --dist-tag mf",
"postci:deployMfPatch": "git push --follow-tags origin",
"// ---------- 构建【beta】版本 ----------": "",
"preci:deployBetaPatch": "pnpm clean:build && lerna version prepatch --conventional-prerelease --include-merged-tags --preid beta --no-push --yes",
"ci:deployBetaPatch": "lerna publish from-package --yes --dist-tag beta",
"postci:deployBetaPatch": "git push --follow-tags origin",
"// ---------- 构建【补丁】版本 ----------": "",
"preci:releasePatchVersion": "pnpm clean:build && lerna version patch --conventional-graduate --include-merged-tags --no-push --yes",
"ci:releasePatchVersion": "lerna publish from-package --yes",
"postci:releasePatchVersion": "git push --follow-tags origin",
"// ---------- 构建【特性】版本 ----------": "",
"preci:releaseMinorVersion": "pnpm clean:build && lerna version minor --conventional-graduate --include-merged-tags --no-push --yes",
"ci:releaseMinorVersion": "lerna publish from-package --yes",
"postci:releaseMinorVersion": "git push --follow-tags origin",
"// ---------- 手工构建发布指定组件 (Mf) ----------": "",
"preci:deployMf": "pnpm clean:build",
"ci:deployMf": "pnpm build:ui",
"postci:deployMf": "lerna publish from-package --yes --dist-tag mf",
"// ---------- 手工构建发布指定组件 (Beta) ----------": "",
"preci:deployBeta": "pnpm clean:build",
"ci:deployBeta": "pnpm build:ui",
"postci:deployBeta": "lerna publish from-package --yes --dist-tag beta",
"analyse:depends": "pnpm --filter @opentiny/analyse_depends start",
"// ---------- react 相关脚本命令 ----------": "",
"dev:react": "pnpm create:mapping-react && pnpm build:entry-react && pnpm -C examples/react-docs run dev",
"build:entry-react": "pnpm -C internals/cli build:entry-react",
"create:mapping-react": "pnpm -C internals/cli create:mapping-react",
"build:react": "pnpm -C internals/cli build:react",
"build:ui-react": "pnpm create:mapping-react && pnpm build:entry-react && pnpm build:react",
"pub:react": "pnpm --filter=\"./packages/dist-react/**\" publish --no-git-checks --access=public",
"dev:react-site": "pnpm --filter @opentiny/react-site start",
"build:react-site": "pnpm --filter @opentiny/react-site build",
"prettier": "prettier --config .prettierrc --write .",
"// ---------- openinula 相关脚本命令 ----------": "",
"dev:openinula": "pnpm -C examples/openinula-docs run dev",
"// ---------- 预览发布后的solid组件 ----------": "",
"preview:solid": "pnpm -C examples/solid-demo run dev",
"build:solid": "pnpm -C internals/cli build:solid",
"pub:solid": "pnpm --filter=\"./packages/dist-solid/**\" publish --no-git-checks --access=public --registry=https://registry.npmjs.org"
},
"dependencies": {
"@vue/composition-api": "1.7.2",
"color": "^4.2.3",
"cropperjs": "1.5.12",
"crypto-js": "4.2.0",
"echarts": "5.4.1",
"echarts-liquidfill": "3.1.0",
"echarts-wordcloud": "2.0.0",
"fastdom": "1.0.11",
"shepherd.js": "11.0.1",
"streamsaver": "2.0.6"
},
"devDependencies": {
"@antfu/eslint-config": "^0.38.6",
"@commitlint/config-conventional": "^18.4.3",
"@types/color": "^3.0.3",
"@types/eslint": "^8.4.10",
"@types/node": "^18.11.18",
"@types/shelljs": "^0.8.12",
"@typescript-eslint/parser": "^6.12.0",
"@volar-plugins/eslint": "^2.0.0",
"@volar-plugins/prettier": "^2.0.0",
"@volar-plugins/prettyhtml": "^2.0.0",
"@vue/tsconfig": "^0.4.0",
"commitlint": "^18.4.3",
"depcheck": "1.4.3",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-clean-css": "^4.2.0",
"gulp-less": "^5.0.0",
"gulp-svg-inline": "^1.0.1",
"gulp-transform": "^3.0.5",
"husky": "^8.0.3",
"lerna": "^6.4.0",
"lint-staged": "^15.2.0",
"minimist": "^1.2.8",
"node-xlsx": "^0.21.0",
"prettier": "^3.0.0",
"rimraf": "^3.0.2",
"shelljs": "^0.8.5",
"shx": "^0.3.4",
"typescript": "^5.0.0",
"vite": "^4.3.8",
"vue": "^3.4.23",
"vue-tsc": "^1.6.5"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
},
"overrides": {
"@vue/compiler-sfc@3": "3.4.23",
"@vue/runtime-core@3": "3.4.23",
"@vue/runtime-dom@3": "3.4.23",
"@vue/shared@3": "3.4.23",
"@playwright/test": "1.42.1",
"cropperjs": "1.5.12",
"echarts": "5.4.1",
"follow-redirects": "1.14.8",
"regenerator-runtime": "0.13.9",
"tailwindcss@3": "3.2.4",
"tslib": "2.4.0",
"typescript": "^5.0.0",
"vue-i18n@8": "8.27.2",
"vue-i18n@9": "9.2.2",
"vue-router@3": "3.6.5",
"vue-router@4": "4.1.5",
"[email protected]": "2.6.14",
"[email protected]": "2.7.10",
"[email protected]": "2.6.14",
"[email protected]": "2.7.10",
"vue@3": "3.4.23",
"vue2": "npm:[email protected]",
"vue2.7": "npm:[email protected]",
"vue3": "npm:[email protected]",
"vite": "^4.3.8"
},
"packageExtensions": {
"[email protected]": {
"peerDependencies": {
"vue": "2.6.14"
}
},
"[email protected]": {
"peerDependencies": {
"vue": "2.7.10"
}
},
"@vue/composition-api": {
"peerDependencies": {
"vue": "2.6.14"
}
},
"vite-plugin-dts": {
"peerDependencies": {
"vue": "^3.4.23"
}
},
"vite-plugin-md": {
"peerDependenciesMeta": {
"@vitejs/plugin-vue": {
"optional": true
}
}
}
}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}