From 084dc074d9a52059bc93becba7b0490712ba7c06 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Tue, 4 Jan 2022 19:45:15 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=A1=B9=E7=9B=AE=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=BE=9D=E8=B5=96core-js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/create-fes-app/templates/app/h5/.npmrc | 1 + packages/create-fes-app/templates/app/h5/package.json | 3 ++- packages/create-fes-app/templates/app/pc/.fes.js | 1 + packages/create-fes-app/templates/app/pc/.npmrc | 1 + packages/create-fes-app/templates/app/pc/package.json | 3 ++- packages/create-fes-app/templates/app/pc/src/global.less | 3 +++ packages/fes-preset-built-in/package.json | 3 ++- 7 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 packages/create-fes-app/templates/app/h5/.npmrc create mode 100644 packages/create-fes-app/templates/app/pc/.npmrc create mode 100644 packages/create-fes-app/templates/app/pc/src/global.less diff --git a/packages/create-fes-app/templates/app/h5/.npmrc b/packages/create-fes-app/templates/app/h5/.npmrc new file mode 100644 index 00000000..276285cd --- /dev/null +++ b/packages/create-fes-app/templates/app/h5/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=@babel/* \ No newline at end of file diff --git a/packages/create-fes-app/templates/app/h5/package.json b/packages/create-fes-app/templates/app/h5/package.json index d3693a1e..b3e4454d 100644 --- a/packages/create-fes-app/templates/app/h5/package.json +++ b/packages/create-fes-app/templates/app/h5/package.json @@ -48,7 +48,8 @@ "@fesjs/fes": "^2.0.0", "@fesjs/plugin-icon": "^2.0.0", "@fesjs/plugin-request": "^2.0.0", - "vue": "^3.2.6" + "vue": "^3.2.6", + "core-js": "^3.8.3" }, "private": true } \ No newline at end of file diff --git a/packages/create-fes-app/templates/app/pc/.fes.js b/packages/create-fes-app/templates/app/pc/.fes.js index 8ed730dd..07496fb8 100644 --- a/packages/create-fes-app/templates/app/pc/.fes.js +++ b/packages/create-fes-app/templates/app/pc/.fes.js @@ -12,6 +12,7 @@ export default { layout: { title: "Fes.js", footer: 'Created by MumbleFE', + navigation: 'mixin', multiTabs: false, menus: [{ name: 'index' diff --git a/packages/create-fes-app/templates/app/pc/.npmrc b/packages/create-fes-app/templates/app/pc/.npmrc new file mode 100644 index 00000000..276285cd --- /dev/null +++ b/packages/create-fes-app/templates/app/pc/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=@babel/* \ No newline at end of file diff --git a/packages/create-fes-app/templates/app/pc/package.json b/packages/create-fes-app/templates/app/pc/package.json index d3510602..6cfcba85 100644 --- a/packages/create-fes-app/templates/app/pc/package.json +++ b/packages/create-fes-app/templates/app/pc/package.json @@ -53,7 +53,8 @@ "@fesjs/plugin-model": "^2.0.0", "@fesjs/plugin-enums": "^2.0.0", "@fesjs/fes-design": "^0.1.10", - "vue": "^3.2.6" + "vue": "^3.2.6", + "core-js": "^3.8.3" }, "private": true } \ No newline at end of file diff --git a/packages/create-fes-app/templates/app/pc/src/global.less b/packages/create-fes-app/templates/app/pc/src/global.less new file mode 100644 index 00000000..17ec2261 --- /dev/null +++ b/packages/create-fes-app/templates/app/pc/src/global.less @@ -0,0 +1,3 @@ +body, html { + margin: 0; +} \ No newline at end of file diff --git a/packages/fes-preset-built-in/package.json b/packages/fes-preset-built-in/package.json index e56a7ae3..8a0afedb 100644 --- a/packages/fes-preset-built-in/package.json +++ b/packages/fes-preset-built-in/package.json @@ -73,6 +73,7 @@ "webpackbar": "^5.0.0-3" }, "peerDependencies": { - "@vue/compiler-sfc": "^3.0.5" + "@vue/compiler-sfc": "^3.0.5", + "core-js": "^3.8.3" } }