From fbf14411015c8193087011b8b7ea2631a28ce3e5 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Thu, 2 Mar 2023 16:03:06 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0qiankun=E7=9A=84demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- packages/fes-plugin-qiankun/examples/vite-main/.fes.js | 2 -- .../fes-plugin-qiankun/examples/vite-main/package.json | 4 +++- packages/fes-plugin-qiankun/examples/vite-micro/.fes.js | 8 ++++++++ .../fes-plugin-qiankun/examples/vite-micro/package.json | 4 +++- packages/fes-plugin-qiankun/examples/webpack-main/.fes.js | 2 -- .../fes-plugin-qiankun/examples/webpack-main/package.json | 4 +++- .../fes-plugin-qiankun/examples/webpack-micro/.fes.js | 6 ++++++ .../examples/webpack-micro/package.json | 5 +++-- 9 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 packages/fes-plugin-qiankun/examples/vite-micro/.fes.js create mode 100644 packages/fes-plugin-qiankun/examples/webpack-micro/.fes.js diff --git a/.gitignore b/.gitignore index 19a0b2f6..a13cdcd7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,8 @@ .temp .hound .fes -.fes* +.fes-develop +.fes-production dist *.log node_modules diff --git a/packages/fes-plugin-qiankun/examples/vite-main/.fes.js b/packages/fes-plugin-qiankun/examples/vite-main/.fes.js index 57b40844..56d1f937 100644 --- a/packages/fes-plugin-qiankun/examples/vite-main/.fes.js +++ b/packages/fes-plugin-qiankun/examples/vite-main/.fes.js @@ -59,7 +59,5 @@ export default { require.resolve('../../../fes-plugin-model/lib'), require.resolve('../../../fes-plugin-layout/lib'), require.resolve('../../../fes-plugin-access/lib'), - require.resolve('../../../fes-plugin-qiankun/lib'), ], - presets: [require.resolve('../../../fes-builder-vite/lib')], }; diff --git a/packages/fes-plugin-qiankun/examples/vite-main/package.json b/packages/fes-plugin-qiankun/examples/vite-main/package.json index aa5f906c..5095c5c7 100644 --- a/packages/fes-plugin-qiankun/examples/vite-main/package.json +++ b/packages/fes-plugin-qiankun/examples/vite-main/package.json @@ -44,7 +44,9 @@ }, "dependencies": { "vue": "^3.2.37", - "@fesjs/fes": "^2.0.0", + "@fesjs/fes": "^3.0.0-rc.0", + "@fesjs/builder-vite": "^3.0.0-rc.4", + "@fesjs/plugin-qiankun": "3.0.0-rc.0", "@fesjs/fes-design": "^0.7.0" }, "private": true diff --git a/packages/fes-plugin-qiankun/examples/vite-micro/.fes.js b/packages/fes-plugin-qiankun/examples/vite-micro/.fes.js new file mode 100644 index 00000000..499d612c --- /dev/null +++ b/packages/fes-plugin-qiankun/examples/vite-micro/.fes.js @@ -0,0 +1,8 @@ +// .fes.js 只负责管理编译时配置,只能使用plain Object +export default { + qiankun: { + micro: { + useDevMode: true, + }, + }, +}; diff --git a/packages/fes-plugin-qiankun/examples/vite-micro/package.json b/packages/fes-plugin-qiankun/examples/vite-micro/package.json index d028aea6..08541563 100644 --- a/packages/fes-plugin-qiankun/examples/vite-micro/package.json +++ b/packages/fes-plugin-qiankun/examples/vite-micro/package.json @@ -43,7 +43,9 @@ "access": "public" }, "dependencies": { - "@fesjs/fes": "^2.0.0", + "@fesjs/fes": "^3.0.0-rc.0", + "@fesjs/builder-vite": "^3.0.0-rc.4", + "@fesjs/plugin-qiankun": "3.0.0-rc.0", "vue": "^3.2.37", "@fesjs/fes-design": "^0.7.0" }, diff --git a/packages/fes-plugin-qiankun/examples/webpack-main/.fes.js b/packages/fes-plugin-qiankun/examples/webpack-main/.fes.js index ed94237f..d34e601b 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-main/.fes.js +++ b/packages/fes-plugin-qiankun/examples/webpack-main/.fes.js @@ -58,7 +58,5 @@ export default { require.resolve('../../../fes-plugin-model/lib'), require.resolve('../../../fes-plugin-layout/lib'), require.resolve('../../../fes-plugin-access/lib'), - require.resolve('../../../fes-plugin-qiankun/lib'), ], - presets: [require.resolve('../../../fes-builder-webpack/lib')], }; diff --git a/packages/fes-plugin-qiankun/examples/webpack-main/package.json b/packages/fes-plugin-qiankun/examples/webpack-main/package.json index 1eea9b20..8363454d 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-main/package.json +++ b/packages/fes-plugin-qiankun/examples/webpack-main/package.json @@ -43,7 +43,9 @@ "access": "public" }, "dependencies": { - "@fesjs/fes": "^2.0.0", + "@fesjs/fes": "^3.0.0-rc.0", + "@fesjs/builder-webpack": "^3.0.0-rc.5", + "@fesjs/plugin-qiankun": "3.0.0-rc.0", "vue": "^3.2.37", "@fesjs/fes-design": "^0.7.0" }, diff --git a/packages/fes-plugin-qiankun/examples/webpack-micro/.fes.js b/packages/fes-plugin-qiankun/examples/webpack-micro/.fes.js new file mode 100644 index 00000000..166018e1 --- /dev/null +++ b/packages/fes-plugin-qiankun/examples/webpack-micro/.fes.js @@ -0,0 +1,6 @@ +// .fes.js 只负责管理编译时配置,只能使用plain Object +export default { + qiankun: { + micro: {}, + }, +}; diff --git a/packages/fes-plugin-qiankun/examples/webpack-micro/package.json b/packages/fes-plugin-qiankun/examples/webpack-micro/package.json index 1649116e..bb8410d7 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-micro/package.json +++ b/packages/fes-plugin-qiankun/examples/webpack-micro/package.json @@ -43,8 +43,9 @@ "access": "public" }, "dependencies": { - "@fesjs/fes": "^2.0.0", - "@fesjs/builder-webpack": "^1.0.0", + "@fesjs/fes": "^3.0.0-rc.0", + "@fesjs/builder-webpack": "^3.0.0-rc.5", + "@fesjs/plugin-qiankun": "3.0.0-rc.0", "vue": "^3.2.37", "@fesjs/fes-design": "^0.7.0" },