tiny-vue/package.json

261 lines
12 KiB
JSON
Raw Normal View History

{
"name": "opentiny-vue",
"version": "3.14.0",
"private": true,
"packageManager": "pnpm@8.3.1",
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"homepage": "https://opentiny.design/tiny-vue",
"keywords": [
"vue",
"vue3",
"frontend",
"component-library",
"components",
"vue-components",
"opentiny",
"renderless-components",
"headless-components"
],
"author": "OpenTiny Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:opentiny/tiny-vue.git"
},
"bugs": {
"url": "https://github.com/opentiny/tiny-vue/issues"
},
"main": "packages/index.js",
"engines": {
2023-05-18 16:57:25 +08:00
"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 && gulp themeConcat -w & pnpm -C examples/vue3 dev",
"dev:saas": "pnpm create:icon-saas && pnpm build:entry && pnpm -C examples/vue3 dev:saas",
"dev2": "pnpm build:entry && gulp themeConcat -w & 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 && gulp themeConcat -w & 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 && gulp themeConcat -w & pnpm -C examples/sites start",
"site:open": "pnpm build:entry && gulp themeConcat -w & pnpm -C examples/sites start:open",
"// ---------- 启动移动端组件官网文档 ----------": "",
"site:mobile": "pnpm build:entry && gulp themeConcat -w & 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:runtime": "pnpm -C internals/cli build:runtime",
2023-05-18 16:57:25 +08:00
"// ---------- 构建相关脚本 ----------": "",
"build:ui": "pnpm create:icon-saas && pnpm create:mapping && pnpm build:entry && gulp themeConcat && pnpm -C internals/cli build:ui",
"build:chartTheme": "pnpm -C internals/cli build:chartTheme",
2023-05-18 16:57:25 +08:00
"build:renderless": "pnpm -C packages/renderless build:fast",
"build:theme": "gulp themeConcat && pnpm -C packages/theme build:fast",
"build:themeSaas": "pnpm -C packages/theme-saas build:fast",
2023-05-18 16:57:25 +08:00
"build:themeMobile": "pnpm -C packages/theme-mobile build:fast",
"build:themejson": "gulp themeJson",
"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": "gulp themeConcat && 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",
2023-05-18 16:57:25 +08:00
"// ---------- 使用pnpm批量发布npm包 ----------": "",
"pub2": "pnpm --filter=\"./packages/dist2/**\" publish --tag v2-latest --no-git-checks --access=public",
2023-05-25 14:39:53 +08:00
"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:all": "pnpm pub2 && pnpm pub3 && pnpm pub:theme && pnpm pub:themeMobile && pnpm pub:themeSaas && pnpm pub:renderless",
"pub:site": "pnpm -C examples/sites pub",
2023-05-18 16:57:25 +08:00
"// ---------- 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",
2024-02-04 11:54:30 +08:00
"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",
2023-05-18 16:57:25 +08:00
"// ---------- playwright下载chromium、firefox等浏览器内核 ----------": "",
"install:browser": "pnpm -C examples/vue3 install:browser",
"// ---------- e2e测试代码生成器 ----------": "",
"codegen": "pnpm -C examples/vue3 codegen",
2024-02-04 11:54:30 +08:00
"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",
2023-05-18 16:57:25 +08:00
"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",
feat(react): merge react-dev to dev (#531) * 组件库 react 版本的 button 组件实现,0 - 1 实现 react 复用 vue 逻辑 (#341) * refactor: A constructor name should not start with a lowercase letter but a uppercase. * feat: 查看样式 less 问题 * feat: react版本 button api 功能实现,移除 lock 文件 * feat: react版本 button api 功能实现,修复 pr 问题 * feat: react版本 button api 功能实现,lock 文件更改 * feat: react版本 button api 功能实现,lock 文件更改 * feat: react版本 button api 功能实现,多余注释删除 --------- Co-authored-by: guoxudong06 <guoxudong06@meituan.com> * feat: tiny-react event module, imitate vue event system (#405) * feat: tiny-react props resolver,to get events & attrs from props (#408) * feat: utils of packages/react-common (#409) * feat: replacing some rendering logic in jsx with virtual components (#412) * feat: tiny-react svg render function (#406) * feat: data responsive core, registering responsive objects through us… (#416) * feat: data responsive core, registering responsive objects through useReactive * feat: Modify the passing values of path attributes in the code * Add a virtual machine like proxy for fiber component nodes (#442) * feat(react): Add related operations to the fiber tree (#431) * Add related operations to the fiber tree * Make some optimizations for fiber operations * feat: simulate Vue Composite API (#445) * feat: 添加 tiny-react 的 alert 组件 (#477) * feat(react): Packaging and building React series components (#493) * feat: 打包构建 react 系组件 * feat: 打包构建 react 系组件 * feat(react): Fix the React dev development link (#510) * feat: 修复开发链路 * feat: 修复开发链路 * fix: 修改 scope * fix: 修复导入后缀 * fix: 修复导入后缀 * fix: tsx 运行报错,改回 jsx * fix: 打包 react 组件排出 react 运行依赖 * fix: 修复打包无法通过命令参数自定义 npmscope 和版本问题 * feat(react): 在 packages/react 下添加 readme 文件 --------- Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * fix(react): Development and debugging environment adjustment (#527) * fix: 开发链路调整 * fix: react dev 开发命令入口修复 --------- Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * feat(react): 添加 react-site api 文档项目 (#528) Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * fix: 打包代码 scope 为 @opentiny 会无限循环替换修复 (#529) Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> --------- Co-authored-by: guoxudong06 <guoxudong06@meituan.com> Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local>
2023-09-28 19:39:05 +08:00
"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",
feat(react): merge react-dev to dev (#531) * 组件库 react 版本的 button 组件实现,0 - 1 实现 react 复用 vue 逻辑 (#341) * refactor: A constructor name should not start with a lowercase letter but a uppercase. * feat: 查看样式 less 问题 * feat: react版本 button api 功能实现,移除 lock 文件 * feat: react版本 button api 功能实现,修复 pr 问题 * feat: react版本 button api 功能实现,lock 文件更改 * feat: react版本 button api 功能实现,lock 文件更改 * feat: react版本 button api 功能实现,多余注释删除 --------- Co-authored-by: guoxudong06 <guoxudong06@meituan.com> * feat: tiny-react event module, imitate vue event system (#405) * feat: tiny-react props resolver,to get events & attrs from props (#408) * feat: utils of packages/react-common (#409) * feat: replacing some rendering logic in jsx with virtual components (#412) * feat: tiny-react svg render function (#406) * feat: data responsive core, registering responsive objects through us… (#416) * feat: data responsive core, registering responsive objects through useReactive * feat: Modify the passing values of path attributes in the code * Add a virtual machine like proxy for fiber component nodes (#442) * feat(react): Add related operations to the fiber tree (#431) * Add related operations to the fiber tree * Make some optimizations for fiber operations * feat: simulate Vue Composite API (#445) * feat: 添加 tiny-react 的 alert 组件 (#477) * feat(react): Packaging and building React series components (#493) * feat: 打包构建 react 系组件 * feat: 打包构建 react 系组件 * feat(react): Fix the React dev development link (#510) * feat: 修复开发链路 * feat: 修复开发链路 * fix: 修改 scope * fix: 修复导入后缀 * fix: 修复导入后缀 * fix: tsx 运行报错,改回 jsx * fix: 打包 react 组件排出 react 运行依赖 * fix: 修复打包无法通过命令参数自定义 npmscope 和版本问题 * feat(react): 在 packages/react 下添加 readme 文件 --------- Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * fix(react): Development and debugging environment adjustment (#527) * fix: 开发链路调整 * fix: react dev 开发命令入口修复 --------- Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * feat(react): 添加 react-site api 文档项目 (#528) Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> * fix: 打包代码 scope 为 @opentiny 会无限循环替换修复 (#529) Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local> --------- Co-authored-by: guoxudong06 <guoxudong06@meituan.com> Co-authored-by: Mr.栋子 <guoxiaodong@MrdongzideMacBook-Pro.local>
2023-09-28 19:39:05 +08:00
"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 相关脚本命令 ----------": "",
"dev:solid": "pnpm -C examples/solid-docs run dev"
},
"dependencies": {
"@vue/composition-api": "1.7.2",
"color": "^4.2.3",
"cropperjs": "1.5.12",
"crypto-js": "4.2.0",
2023-05-25 14:26:49 +08:00
"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": {
2023-05-25 14:26:49 +08:00
"@antfu/eslint-config": "^0.38.6",
"@types/color": "^3.0.3",
"@types/eslint": "^8.4.10",
"@types/node": "^18.11.18",
"@types/shelljs": "^0.8.12",
2023-11-25 18:22:18 +08:00
"@typescript-eslint/parser": "^6.12.0",
2023-05-25 14:26:49 +08:00
"@volar-plugins/eslint": "^2.0.0",
"@volar-plugins/prettier": "^2.0.0",
"@volar-plugins/prettyhtml": "^2.0.0",
"@vue/tsconfig": "^0.4.0",
"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",
"lerna": "^6.4.0",
"lint-staged": "^15.2.0",
"husky": "^8.0.3",
"commitlint": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"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",
2023-05-25 14:26:49 +08:00
"typescript": "^5.0.0",
"vite": "^4.3.8",
2023-11-29 16:29:22 +08:00
"vue": "^3.3.9",
"vue-tsc": "^1.6.5"
},
"pnpm": {
"patchedDependencies": {
"depcheck@1.4.3": "patches/depcheck@1.4.3.patch",
"tsup@7.2.0": "patches/tsup@7.2.0.patch"
},
"overrides": {
2023-11-29 16:29:22 +08:00
"@vue/compiler-sfc@3": "3.3.9",
"@vue/runtime-core@3": "3.3.9",
"@vue/runtime-dom@3": "3.3.9",
"@vue/shared@3": "3.3.9",
"cropperjs": "1.5.12",
2023-05-25 14:26:49 +08:00
"echarts": "5.4.1",
"follow-redirects": "1.14.8",
"regenerator-runtime": "0.13.9",
2023-05-18 16:57:25 +08:00
"tailwindcss@3": "3.2.4",
"tslib": "2.4.0",
2023-05-25 14:26:49 +08:00
"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",
"vue-template-compiler@2.6": "2.6.14",
"vue-template-compiler@2.7": "2.7.10",
"vue@2.6": "2.6.14",
"vue@2.7": "2.7.10",
2023-11-29 16:29:22 +08:00
"vue@3": "3.3.9",
"vue2": "npm:vue@2.6.14",
"vue2.7": "npm:vue@2.7.10",
2023-11-29 16:29:22 +08:00
"vue3": "npm:vue@3.3.9",
2023-05-25 14:26:49 +08:00
"vite": "^4.3.8"
},
"packageExtensions": {
"vue-template-compiler@2.6.14": {
"peerDependencies": {
"vue": "2.6.14"
}
},
"vue-template-compiler@2.7.10": {
"peerDependencies": {
"vue": "2.7.10"
}
},
"@vue/composition-api": {
"peerDependencies": {
"vue": "2.6.14"
}
},
"vite-plugin-dts": {
"peerDependencies": {
2023-11-29 16:29:22 +08:00
"vue": "^3.3.9"
}
},
"vite-plugin-md": {
"peerDependenciesMeta": {
"@vitejs/plugin-vue": {
"optional": true
}
}
}
}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}