From b69464490417c777422ea68ffd55cc62b9740891 Mon Sep 17 00:00:00 2001 From: winixt Date: Fri, 26 Aug 2022 20:22:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96targets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/create-fes-app/templates/app/h5/.fes.js | 4 ++++ packages/create-fes-app/templates/app/h5/README.md | 2 +- packages/create-fes-app/templates/app/h5/package.json | 2 +- packages/create-fes-app/templates/app/pc/package.json | 4 ++-- packages/fes-plugin-layout/package.json | 4 ++-- packages/fes-plugin-locale/package.json | 4 ++-- .../fes-plugin-qiankun/examples/micro/package.json | 2 +- .../examples/vite-main/package.json | 2 +- .../examples/webpack-main/package.json | 2 +- packages/fes-plugin-qiankun/package.json | 4 ++-- .../src/plugins/features/targets.js | 11 ++--------- packages/fes-template-vite/package.json | 2 +- packages/fes-template/package.json | 2 +- yarn.lock | 8 ++++---- 14 files changed, 25 insertions(+), 28 deletions(-) diff --git a/packages/create-fes-app/templates/app/h5/.fes.js b/packages/create-fes-app/templates/app/h5/.fes.js index 67e82a07..6b90b7d6 100644 --- a/packages/create-fes-app/templates/app/h5/.fes.js +++ b/packages/create-fes-app/templates/app/h5/.fes.js @@ -10,6 +10,10 @@ export default { html: { title: '拉夫德鲁' }, + targets: { + chrome: '61', + ios: '10' + }, extraPostCSSPlugins: [ pxtoviewport({ unitToConvert: 'px', diff --git a/packages/create-fes-app/templates/app/h5/README.md b/packages/create-fes-app/templates/app/h5/README.md index 6fa4ffc4..f55543c1 100644 --- a/packages/create-fes-app/templates/app/h5/README.md +++ b/packages/create-fes-app/templates/app/h5/README.md @@ -1,3 +1,3 @@ # fes h5 模版 -内部测试用,不对外发布 +移动端建议使用 webpack 构建 diff --git a/packages/create-fes-app/templates/app/h5/package.json b/packages/create-fes-app/templates/app/h5/package.json index 53aa5d10..98075f1a 100644 --- a/packages/create-fes-app/templates/app/h5/package.json +++ b/packages/create-fes-app/templates/app/h5/package.json @@ -40,7 +40,7 @@ "access": "public" }, "devDependencies": { - "@webank/eslint-config-webank": "^1.0.2", + "@webank/eslint-config-webank": "^1.2.3", "@ttou/postcss-px-to-viewport": "1.1.1" }, "dependencies": { diff --git a/packages/create-fes-app/templates/app/pc/package.json b/packages/create-fes-app/templates/app/pc/package.json index 454b9af1..f4129beb 100644 --- a/packages/create-fes-app/templates/app/pc/package.json +++ b/packages/create-fes-app/templates/app/pc/package.json @@ -43,7 +43,7 @@ "access": "public" }, "devDependencies": { - "@webank/eslint-config-webank": "^1.0.2" + "@webank/eslint-config-webank": "^1.2.3" }, "dependencies": { "@fesjs/fes": "^3.0.0-beta.0", @@ -51,7 +51,7 @@ "@fesjs/plugin-layout": "^5.0.0-beta.0", "@fesjs/plugin-model": "^3.0.0-beta.0", "@fesjs/plugin-enums": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "@fesjs/builder-webpack": "^3.0.0-beta.0", "vue": "^3.2.37", "core-js": "^3.19.2" diff --git a/packages/fes-plugin-layout/package.json b/packages/fes-plugin-layout/package.json index 3afad1a8..88f2a2e7 100644 --- a/packages/fes-plugin-layout/package.json +++ b/packages/fes-plugin-layout/package.json @@ -32,9 +32,9 @@ }, "peerDependencies": { "@fesjs/fes": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "vue": "^3.2.37", "vue-router": "^4.0.1" }, "typings": "./types.d.ts" -} +} \ No newline at end of file diff --git a/packages/fes-plugin-locale/package.json b/packages/fes-plugin-locale/package.json index d8856dc7..f7df90be 100644 --- a/packages/fes-plugin-locale/package.json +++ b/packages/fes-plugin-locale/package.json @@ -33,8 +33,8 @@ }, "peerDependencies": { "@fesjs/fes": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "vue": "^3.2.37" }, "typings": "./types.d.ts" -} +} \ No newline at end of file diff --git a/packages/fes-plugin-qiankun/examples/micro/package.json b/packages/fes-plugin-qiankun/examples/micro/package.json index dda23c00..845f67aa 100644 --- a/packages/fes-plugin-qiankun/examples/micro/package.json +++ b/packages/fes-plugin-qiankun/examples/micro/package.json @@ -46,7 +46,7 @@ "@fesjs/fes": "^2.0.0", "@fesjs/builder-webpack": "^1.0.0", "vue": "^3.2.37", - "@fesjs/fes-design": "^0.5.0" + "@fesjs/fes-design": "^0.6.3" }, "private": true } \ No newline at end of file diff --git a/packages/fes-plugin-qiankun/examples/vite-main/package.json b/packages/fes-plugin-qiankun/examples/vite-main/package.json index e688772c..6fde213a 100644 --- a/packages/fes-plugin-qiankun/examples/vite-main/package.json +++ b/packages/fes-plugin-qiankun/examples/vite-main/package.json @@ -45,7 +45,7 @@ "dependencies": { "@fesjs/fes": "^2.0.0", "vue": "^3.2.37", - "@fesjs/fes-design": "^0.5.0" + "@fesjs/fes-design": "^0.6.3" }, "private": true } \ No newline at end of file diff --git a/packages/fes-plugin-qiankun/examples/webpack-main/package.json b/packages/fes-plugin-qiankun/examples/webpack-main/package.json index 3183f695..6fde213a 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-main/package.json +++ b/packages/fes-plugin-qiankun/examples/webpack-main/package.json @@ -45,7 +45,7 @@ "dependencies": { "@fesjs/fes": "^2.0.0", "vue": "^3.2.37", - "@fesjs/fes-design": "^0.1.10" + "@fesjs/fes-design": "^0.6.3" }, "private": true } \ No newline at end of file diff --git a/packages/fes-plugin-qiankun/package.json b/packages/fes-plugin-qiankun/package.json index 55e67936..1d55ba0f 100644 --- a/packages/fes-plugin-qiankun/package.json +++ b/packages/fes-plugin-qiankun/package.json @@ -41,8 +41,8 @@ }, "peerDependencies": { "@fesjs/fes": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "vue": "^3.2.37" }, "typings": "./types.d.ts" -} +} \ No newline at end of file diff --git a/packages/fes-preset-built-in/src/plugins/features/targets.js b/packages/fes-preset-built-in/src/plugins/features/targets.js index 5fc55100..592d97ec 100644 --- a/packages/fes-preset-built-in/src/plugins/features/targets.js +++ b/packages/fes-preset-built-in/src/plugins/features/targets.js @@ -3,15 +3,8 @@ export default (api) => { key: 'targets', config: { default: { - android: '61.0.0', - chrome: '61.0.0', - edge: '16.0.0', - firefox: '60.0.0', - ios: '10.3.0', - node: '13.2.0', - opera: '48.0.0', - safari: '10.1.0', - samsung: '8.2.0', + chrome: '64', + ios: '11', browsers: ['defaults and not chrome < 61'], }, schema(joi) { diff --git a/packages/fes-template-vite/package.json b/packages/fes-template-vite/package.json index 42dbd1e7..73f92e68 100644 --- a/packages/fes-template-vite/package.json +++ b/packages/fes-template-vite/package.json @@ -45,7 +45,7 @@ "dependencies": { "@fesjs/builder-vite": "^3.0.0-beta.0", "@fesjs/fes": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "@fesjs/plugin-access": "^3.0.0-beta.0", "@fesjs/plugin-enums": "^3.0.0-beta.0", "@fesjs/plugin-icon": "^3.0.0-beta.0", diff --git a/packages/fes-template/package.json b/packages/fes-template/package.json index a9e3c559..1a80ea82 100644 --- a/packages/fes-template/package.json +++ b/packages/fes-template/package.json @@ -58,7 +58,7 @@ "@fesjs/plugin-windicss": "^3.0.0-beta.0", "@fesjs/plugin-pinia": "^3.0.0-beta.0", "@fesjs/plugin-watermark": "^3.0.0-beta.0", - "@fesjs/fes-design": "^0.5.0", + "@fesjs/fes-design": "^0.6.3", "vue": "^3.2.37", "vuex": "^4.0.0", "pinia": "^2.0.11" diff --git a/yarn.lock b/yarn.lock index c712c6e3..68761f14 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1438,10 +1438,10 @@ set-value "3.0.2" tapable "^2.2.0" -"@fesjs/fes-design@^0.5.0": - version "0.5.22" - resolved "https://registry.npmmirror.com/@fesjs/fes-design/-/fes-design-0.5.22.tgz#d7f1038c43ba59966a2ddde8335eb7ecd21428dd" - integrity sha512-5XpZizpWt0AMWN++uZXoueR2SkLg18vYduduLDYDHWxdk5+Xl9AeYWG5WZJyPAHCAalU8A2ZBR0D/hm+RpP/jQ== +"@fesjs/fes-design@^0.6.3": + version "0.6.4" + resolved "https://registry.npmmirror.com/@fesjs/fes-design/-/fes-design-0.6.4.tgz#d4e30abb23d279b045f44b8a1d1fe1eaefe3b87c" + integrity sha512-4fwUCvL1SHfEi+zsBVtuPoGChJNHZcAfOfvIqJdbhzHHb28RhK0k3m7yVqm28Itt7E55hWQs//GOWh40vOhWjg== dependencies: "@babel/runtime" "^7.16.3" "@floating-ui/dom" "^0.4.2"