Skip to content

Commit

Permalink
fix: 修复vantui-cli线上版本缺少文件的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
三少 committed Dec 7, 2022
1 parent c640c87 commit b62cad6
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 55 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
"packages/*"
],
"dependencies": {
"@antmjs/eslint": "^2.1.2",
"@antmjs/stylelint": "^2.1.2",
"@antmjs/warning": "^2.1.2",
"@antmjs/eslint": "^2.2.0",
"@antmjs/stylelint": "^2.2.0",
"@antmjs/warning": "^2.2.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"all-contributors-cli": "^6.20.0",
Expand Down
19 changes: 5 additions & 14 deletions packages/vantui-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "@antmjs/vantui-cli",
"version": "2.3.2",
"version": "2.3.3-beta6",
"type": "module",
"main": "dest/index.js",
"typings": "dest/index.d.ts",
"main": "dest/cli.js",
"bin": {
"antm-vantui-cli": "./bin.js"
},
Expand All @@ -16,20 +15,12 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"files": [
"lib",
"cjs",
"site",
"template",
"bin.js",
"preset.cjs"
],
"keywords": [
"antmjs"
],
"scripts": {
"watch": "rm -rf dest && npx tsc -p tsconfig.cjs.json --watch --sourceMap",
"build": "rm -rf dest && npx tsc -p tsconfig.cjs.json",
"watch": "rm -rf build && npx tsc -p tsconfig.cjs.json --watch --sourceMap",
"build": "rm -rf build && npx tsc -p tsconfig.cjs.json",
"test:watch": "",
"test": ""
},
Expand All @@ -44,7 +35,7 @@
"@types/prettier": "^2.6.1"
},
"dependencies": {
"@antmjs/babel-preset": "2.1.2",
"@antmjs/babel-preset": "2.2.0",
"@babel/core": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.17.10",
"@babel/plugin-transform-typescript": "^7.16.8",
Expand Down
3 changes: 3 additions & 0 deletions packages/vantui-demo/config/webpack/h5Chain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const H5FixPlugin = require('@antmjs/plugin-h5-fix')
module.exports = function (chain) {
chain.plugin('H5FixPlugin').use(new H5FixPlugin())
// taro内部的配置:scriptRule.exclude = [filename => /css-loader/.test(filename) || (/node_modules/.test(filename) && !(/taro/.test(filename)))];
// taro内置的webpack配置在编译script的时候使用的是项目根目录的babel.config.js的配置,如果你项目的useBuiltIns设置为'usage',则runtime和shared都会polyfill,就会导致出错
// 所以下面重写了exclude的配置,并给runtime和shared单独进行了匹配
Expand Down
9 changes: 5 additions & 4 deletions packages/vantui-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"author": "",
"dependencies": {
"@antmjs/mini-fix": "^2.1.2",
"@antmjs/mini-fix": "^2.2.0",
"@antmjs/vantui": "2.3.2",
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.5.7",
Expand Down Expand Up @@ -110,9 +110,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@antmjs/iconfont": "^2.1.2",
"@antmjs/plugin-global-fix": "^2.1.2",
"@antmjs/plugin-mini-fix": "^2.1.2",
"@antmjs/iconfont": "^2.2.0",
"@antmjs/plugin-global-fix": "^2.2.0",
"@antmjs/plugin-h5-fix": "^2.2.0",
"@antmjs/plugin-mini-fix": "^2.2.0",
"@babel/core": "^7.8.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/vantui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"use-deep-compare-effect": "^1.8.1"
},
"devDependencies": {
"@antmjs/iconfont": "^2.1.2",
"@antmjs/iconfont": "^2.2.0",
"@antmjs/vantui-cli": "2.3.2",
"@tarojs/components": "^3.5.7",
"@tarojs/taro": "^3.5.7",
Expand Down
137 changes: 104 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,27 @@
core-js "^3.15.2"
react-refresh "^0.10.0"

"@antmjs/eslint@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/eslint/-/eslint-2.1.2.tgz#0aeacb75e822525757b08c2e4e92845437f45ec3"
integrity sha512-HFe0QxIKOaPUf7OsddFZ7w9i9CToueWpSM+nL19RyX9xJc4DgdKxm4k8RpxT6L3gY9TEILEgEnWGo3OMC8TDEQ==
"@antmjs/babel-preset@2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/babel-preset/-/babel-preset-2.2.0.tgz#dcb3f467f87700b60b0f4e38d2f6666af10bb783"
integrity sha512-PiDh6IuonViPljSkIStTP5dpTQKDARdyKSbvTzokjwyyEJ9o6UDw093tmCNIL8E1IxYg5hEDG1Dmo1tt076QiA==
dependencies:
"@babel/plugin-proposal-class-properties" "^7.14.5"
"@babel/plugin-proposal-decorators" "^7.14.5"
"@babel/plugin-transform-runtime" "^7.14.5"
"@babel/preset-env" "^7.14.7"
"@babel/preset-react" "^7.14.5"
"@babel/preset-typescript" "^7.14.5"
"@babel/runtime-corejs3" "^7.14.7"
babel-plugin-import "^1.13.3"
babel-plugin-lodash "^3.3.4"
core-js "^3.15.2"
react-refresh "^0.10.0"

"@antmjs/eslint@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/eslint/-/eslint-2.2.0.tgz#d66d1cbd9af4dd3f40973fff966cc55f7e94cbd4"
integrity sha512-XtuXDFjdgzVGXqtBXmY/A/rNd4ruBN4y21Zqd7rGJAgfwItEUgf73xWWfQtlxrK54oOH4hAOXxBIy0n0KqUOpQ==
dependencies:
"@graphql-eslint/eslint-plugin" "^3.10.7"
"@typescript-eslint/eslint-plugin" "^5.33.0"
Expand All @@ -166,46 +183,100 @@
eslint-plugin-react "^7.30.1"
eslint-plugin-react-hooks "^4.6.0"

"@antmjs/iconfont@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/iconfont/-/iconfont-2.1.2.tgz#368dce3087edff5631d91baee950c0c1c94d2105"
integrity sha512-lhJ2e1NPNmoTs+PYCDzsKFNj3thac+q5L5w8Mno1RobOOW5O30VehJZRGuTnbaQgqqjyDoC4DwZvpQ8WIpaFvQ==
"@antmjs/iconfont@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/iconfont/-/iconfont-2.2.0.tgz#10a0720a3c0950686f318e3fb3250702bd6a746b"
integrity sha512-1Oo5uaxcoG0gB7X6aWYQCGRF1W9dMP0FCnBQk9PWcf33+XTFMlydEK6CwvtLihTvhjWDRebszZ0oyUDDeHD2/w==

"@antmjs/mini-fix@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/mini-fix/-/mini-fix-2.1.2.tgz#9975692633af8c94d751ef500d412c12063915c7"
integrity sha512-NAnrz9W06QOIegxNOcQuAqiwDo38J35pe5+6gVkRtarDROCYHaySkq3jH+SMEIgDbkc83n0XwYmgkWquaanQMw==
"@antmjs/mini-fix@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/mini-fix/-/mini-fix-2.2.0.tgz#61b122bef9fe6365e6ac566ad1ae2839781f7140"
integrity sha512-uCvZxq1gZHLp+nd5TIJtPpaTsyPPHPsF9qwshv2KZs3jnofPsvf9lGB0t2APjWkC0JlG2BCeWjrn8nxlXyDNPQ==
dependencies:
"@antmjs/utils" "2.1.2"
"@antmjs/utils" "2.2.0"

"@antmjs/plugin-global-fix@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/plugin-global-fix/-/plugin-global-fix-2.1.2.tgz#8b2195cb73fc19eb634c2cc2b77325f199678af5"
integrity sha512-vkIrp9OuN8QOdLoGm2Z+s0ASb/GeV6PjkYcAe6G18SdICJzdzx1+Ltc1Wt/VgpUvohfjqxw+2U16C9U11bDqDw==
"@antmjs/plugin-global-fix@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/plugin-global-fix/-/plugin-global-fix-2.2.0.tgz#1d0f30b3be654dbb9fd7441c94fd9c5aa2ebe402"
integrity sha512-GOiIzX4sv9AY025KGSNkTMpM+FJvcpzZBdD4Pzd1Gx3BvNK9U9FK8fd7SVJRzV+Jt6VnFH500JkJM8IWxrQOSA==

"@antmjs/plugin-mini-fix@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/plugin-mini-fix/-/plugin-mini-fix-2.1.2.tgz#507fb216701654abfadcb7ae1969d61a41c24bef"
integrity sha512-TjoR9w48Pfu0KpDQoABNEp49ex/11YAHVwKB1Ag0gjfqcHUxzq+YdJ7wC+1imyZ52Ays9F6IwONCMWAVVpF2zw==
"@antmjs/plugin-h5-fix@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/plugin-h5-fix/-/plugin-h5-fix-2.2.0.tgz#4f5a92399a3ee853383ba982eb3135fcba7af8a5"
integrity sha512-FXEHjOKmeKic6+9/oClnA64JYGR+PjSXglZql4zhHFj1VZapn4EchygwHJB3S5Nbz0MeqsdjJ0Ynz10hwKTBSQ==

"@antmjs/stylelint@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/stylelint/-/stylelint-2.1.2.tgz#5b15f7781098074207edac821cecd3b8c610347f"
integrity sha512-5xNd2jG8rTLJsUzNQTtkajEdUBtXa6h2d6FTaV9QhWeEuSf2pwMVJ6bY+pwKQACAmHu4cTJR/8jj8ySEndJKQg==
"@antmjs/plugin-mini-fix@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/plugin-mini-fix/-/plugin-mini-fix-2.2.0.tgz#db8a3eeef17825c9fbdd1c8fdc0555e7f0144272"
integrity sha512-OQKiy/m1csU+Ht/bsxn6sLeGFQqRf2BneZxgToLwnJEvi3fKyPTs0kSoYOgXeMpSYjt7MT6F2dXwNV6/gmsxxw==

"@antmjs/stylelint@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/stylelint/-/stylelint-2.2.0.tgz#508a90cea74b0731ca84ee552038b4832c7bbdf1"
integrity sha512-RoqW1UoXrpcXLDqfcz8DBLV88X1nJbFxfVOsc9zhvNHid1HtywybY5ImrfqdY4z7l9T9gkjrFPm4WJxO4b5COg==
dependencies:
postcss-less "^6.0.0"
stylelint-config-prettier "^9.0.3"
stylelint-config-standard "^28.0.0"

"@antmjs/utils@2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/utils/-/utils-2.1.2.tgz#60f3103bb2c9dcb35d7901f1f1eb0c9ede90d11e"
integrity sha512-J2eZhFNpSlfvDuxPnQgIBb9/Ks2XqoggT6PIE6cyyizXwbDW+XcO2+vCjoNZf2of7Rxd19Fzg8Jc4MToclizkg==
"@antmjs/utils@2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/utils/-/utils-2.2.0.tgz#bbfd39d9c76a7a973e5344439a040ffe0fe4f303"
integrity sha512-9j1lEw1YLq/CFiHUPNpkZKG1b5mwRbNnMNwGjB15riGZk0GBNXQebhbsQV30cwBkXlOSbk35yiTvxRWwrwZBfg==

"@antmjs/warning@^2.1.2":
version "2.1.2"
resolved "https://registry.npmmirror.com/@antmjs/warning/-/warning-2.1.2.tgz#17a983e54a28df9bd034b9bfcb69f018702fa3c4"
integrity sha512-AZn2EPvAfDA3aUVTXM/YCBt3vsVKS5wY92DnSSuZfV13ne7yrR8wWcxRYchKM3xAsp5FhuFdVREOZywSNfLutg==
"@antmjs/vantui-cli@2.3.2":
version "2.3.2"
resolved "https://registry.npmmirror.com/@antmjs/vantui-cli/-/vantui-cli-2.3.2.tgz#cc51b1f19047b345d1d27837045cda49997447ac"
integrity sha512-nsYFSpPlNJHk3l+O4TFxEk3gux6gsx7ccyOL12vmxbKLR0siKNqm1UkeQIrwdT7ZFzctU8d7eNh5WBxTRFJMAg==
dependencies:
"@antmjs/babel-preset" "2.1.2"
"@babel/core" "^7.16.0"
"@babel/plugin-transform-runtime" "^7.17.10"
"@babel/plugin-transform-typescript" "^7.16.8"
"@babel/preset-env" "^7.17.10"
"@babel/preset-typescript" "^7.16.0"
"@docsearch/css" "3.0.0-alpha.41"
"@docsearch/js" "3.0.0-alpha.41"
"@vant/markdown-vetur" "^2.2.0"
"@vant/touch-emulator" "^1.3.2"
autoprefixer "^10.4.7"
chalk "^5.0.1"
chokidar "^3.5.3"
classnames "^2.3.1"
clean-css "^5.2.2"
commander "^8.3.0"
consola "^2.15.3"
conventional-changelog "^3.1.24"
css-loader "^6.7.1"
execa "^5.1.1"
fast-glob "^3.2.7"
fs-extra "^10.1.0"
glob "^8.0.3"
hash-sum "^2.0.0"
highlight.js "^11.3.1"
html-webpack-plugin "^5.5.0"
less "^4.1.2"
less-loader "^10.2.0"
lodash-es "^4.17.21"
markdown-it "^12.2.0"
markdown-it-anchor "^8.4.1"
markdown-to-ast "^6.0.3"
mini-css-extract-plugin "^2.6.0"
net "^1.0.2"
ora "^6.0.1"
postcss "^8.3.11"
postcss-load-config "^3.1.0"
postcss-loader "^6.2.1"
raw-loader "^4.0.2"
react-hot-toast "^2.2.0"
react-router-dom "^5.3.0"
release-it "^14.11.6"
transliteration "^2.2.0"

"@antmjs/warning@^2.2.0":
version "2.2.0"
resolved "https://registry.npmmirror.com/@antmjs/warning/-/warning-2.2.0.tgz#73bc57571f446df2056d36103818faa6c5ee92b5"
integrity sha512-8DyE+xtli1Xbe6CKDvgVhMblL97+Anwss4KzI02EWazePseZ57pbpgy6SBT0f9rjoujb4v9gaOSR3i+nvz8JPQ==
dependencies:
chalk "^4.1.2"
commander "^8.1.0"
Expand Down

0 comments on commit b62cad6

Please sign in to comment.