From bd0fa19431e9a994c24de117c69bc2265508c2db Mon Sep 17 00:00:00 2001 From: Treecat Date: Fri, 14 Apr 2023 15:05:24 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-14512=20chore:=E6=89=93=E5=8C=85?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/package.json | 2 +- {bin => packages/fineui/bin}/cli/cli.js | 0 {bin => packages/fineui/bin}/cli/worker/cli.worker.js | 0 .../bin}/cli/worker/template/main_thread.helper.t | 0 .../main_thread/action/action.worker_ability_test.t | 0 .../cli/worker/template/main_thread/main_thread.t | 0 .../bin}/cli/worker/template/utils/action_type.t | 0 .../bin}/cli/worker/template/utils/payload_type.t | 0 .../worker_thread/action/action.worker_ability_test.t | 0 .../cli/worker/template/worker_thread/worker_thread.t | 0 packages/fineui/package.json | 7 ++++--- packages/fineui/src/core/index.js | 11 ++++------- packages/fineui/src/index.js | 9 +++------ 13 files changed, 12 insertions(+), 17 deletions(-) rename {bin => packages/fineui/bin}/cli/cli.js (100%) rename {bin => packages/fineui/bin}/cli/worker/cli.worker.js (100%) rename {bin => packages/fineui/bin}/cli/worker/template/main_thread.helper.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/main_thread/action/action.worker_ability_test.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/main_thread/main_thread.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/utils/action_type.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/utils/payload_type.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/worker_thread/action/action.worker_ability_test.t (100%) rename {bin => packages/fineui/bin}/cli/worker/template/worker_thread/worker_thread.t (100%) diff --git a/packages/demo/package.json b/packages/demo/package.json index 67c18d5f7..01fe03056 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "dev": "webpack-dev-server --open --config=webpack.dev.js --progress", - "build": "webpack --config=webpack.prod.js" + "build": "webpack --config=webpack.prod.js --progress" }, "keywords": [], "author": "", diff --git a/bin/cli/cli.js b/packages/fineui/bin/cli/cli.js similarity index 100% rename from bin/cli/cli.js rename to packages/fineui/bin/cli/cli.js diff --git a/bin/cli/worker/cli.worker.js b/packages/fineui/bin/cli/worker/cli.worker.js similarity index 100% rename from bin/cli/worker/cli.worker.js rename to packages/fineui/bin/cli/worker/cli.worker.js diff --git a/bin/cli/worker/template/main_thread.helper.t b/packages/fineui/bin/cli/worker/template/main_thread.helper.t similarity index 100% rename from bin/cli/worker/template/main_thread.helper.t rename to packages/fineui/bin/cli/worker/template/main_thread.helper.t diff --git a/bin/cli/worker/template/main_thread/action/action.worker_ability_test.t b/packages/fineui/bin/cli/worker/template/main_thread/action/action.worker_ability_test.t similarity index 100% rename from bin/cli/worker/template/main_thread/action/action.worker_ability_test.t rename to packages/fineui/bin/cli/worker/template/main_thread/action/action.worker_ability_test.t diff --git a/bin/cli/worker/template/main_thread/main_thread.t b/packages/fineui/bin/cli/worker/template/main_thread/main_thread.t similarity index 100% rename from bin/cli/worker/template/main_thread/main_thread.t rename to packages/fineui/bin/cli/worker/template/main_thread/main_thread.t diff --git a/bin/cli/worker/template/utils/action_type.t b/packages/fineui/bin/cli/worker/template/utils/action_type.t similarity index 100% rename from bin/cli/worker/template/utils/action_type.t rename to packages/fineui/bin/cli/worker/template/utils/action_type.t diff --git a/bin/cli/worker/template/utils/payload_type.t b/packages/fineui/bin/cli/worker/template/utils/payload_type.t similarity index 100% rename from bin/cli/worker/template/utils/payload_type.t rename to packages/fineui/bin/cli/worker/template/utils/payload_type.t diff --git a/bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t b/packages/fineui/bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t similarity index 100% rename from bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t rename to packages/fineui/bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t diff --git a/bin/cli/worker/template/worker_thread/worker_thread.t b/packages/fineui/bin/cli/worker/template/worker_thread/worker_thread.t similarity index 100% rename from bin/cli/worker/template/worker_thread/worker_thread.t rename to packages/fineui/bin/cli/worker/template/worker_thread/worker_thread.t diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 8977c42fd..7551b66e4 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -11,9 +11,10 @@ "sideEffects": [ "**/*.less", "src/**/*.js", - "dist/es/core/*.js", - "dist/es/core/element/**/*.js", - "dist/es/core/platform/**/*.js", + "dist/es/index.js", + "dist/es/core/system.js", + "dist/es/core/platform/web/config.js", + "dist/es/core/platform/web/jquery/*.js", "dist/es/polyfill/**/*.js", "dist/es/case/ztree/jquery.ztree.core-3.5.js", "dist/es/case/ztree/jquery.ztree.excheck-3.5.js" diff --git a/packages/fineui/src/core/index.js b/packages/fineui/src/core/index.js index b754913f6..6dbdf43c9 100644 --- a/packages/fineui/src/core/index.js +++ b/packages/fineui/src/core/index.js @@ -1,5 +1,5 @@ export * from './system'; -export { Plugin } from './6.plugin'; + export { StyleLoaderManager } from './loader/loader.style'; export { ShowListener } from './listener/listener.show'; export { useInWorker } from './worker'; @@ -15,16 +15,14 @@ export { PopoverController } from './controller/controller.popover'; export { ResizeController } from './controller/controller.resizer'; export { TooltipsController } from './controller/controller.tooltips'; -export * from './4.widget'; +export * as _ from './1.lodash'; export * from './2.base'; export * from './3.ob'; - +export * from './4.widget'; export * from './5.inject'; export * from './6.plugin'; export * from './action'; -// export * from "./behavior"; -// export * from "./controller"; export * from './func'; export * from './structure'; export * from './h'; @@ -36,6 +34,5 @@ export * from './utils'; export { shortcut, provider, store, model, mixin, mixins } from './decorator'; -import _ from './1.lodash'; -export { _ }; + diff --git a/packages/fineui/src/index.js b/packages/fineui/src/index.js index 8458c1264..e0600bc9e 100644 --- a/packages/fineui/src/index.js +++ b/packages/fineui/src/index.js @@ -1,12 +1,9 @@ // sideEffects import "./core/system"; -import "./core/element"; -import "./core/platform"; import "./core/platform/web/jquery" -// 必须要等上面的准备好, 才初始化 config import "./core/platform/web/config"; -import _jquery from "jquery"; +import jquery from "jquery"; export * from "./core"; export * from "./base"; @@ -16,5 +13,5 @@ export * from "./component"; export * from "./fix"; export * from "./router"; export * as Popper from "@popperjs/core"; -export const jQuery = _jquery; -export const $ = _jquery; +export const jQuery = jquery; +export const $ = jquery;