Browse Source

KERNEL-14512 chore:打包结构调整

es6
Treecat 2 years ago
parent
commit
bd0fa19431
  1. 2
      packages/demo/package.json
  2. 0
      packages/fineui/bin/cli/cli.js
  3. 0
      packages/fineui/bin/cli/worker/cli.worker.js
  4. 0
      packages/fineui/bin/cli/worker/template/main_thread.helper.t
  5. 0
      packages/fineui/bin/cli/worker/template/main_thread/action/action.worker_ability_test.t
  6. 0
      packages/fineui/bin/cli/worker/template/main_thread/main_thread.t
  7. 0
      packages/fineui/bin/cli/worker/template/utils/action_type.t
  8. 0
      packages/fineui/bin/cli/worker/template/utils/payload_type.t
  9. 0
      packages/fineui/bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t
  10. 0
      packages/fineui/bin/cli/worker/template/worker_thread/worker_thread.t
  11. 7
      packages/fineui/package.json
  12. 11
      packages/fineui/src/core/index.js
  13. 9
      packages/fineui/src/index.js

2
packages/demo/package.json

@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "webpack-dev-server --open --config=webpack.dev.js --progress", "dev": "webpack-dev-server --open --config=webpack.dev.js --progress",
"build": "webpack --config=webpack.prod.js" "build": "webpack --config=webpack.prod.js --progress"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

0
bin/cli/cli.js → packages/fineui/bin/cli/cli.js

0
bin/cli/worker/cli.worker.js → packages/fineui/bin/cli/worker/cli.worker.js

0
bin/cli/worker/template/main_thread.helper.t → packages/fineui/bin/cli/worker/template/main_thread.helper.t

0
bin/cli/worker/template/main_thread/action/action.worker_ability_test.t → packages/fineui/bin/cli/worker/template/main_thread/action/action.worker_ability_test.t

0
bin/cli/worker/template/main_thread/main_thread.t → packages/fineui/bin/cli/worker/template/main_thread/main_thread.t

0
bin/cli/worker/template/utils/action_type.t → packages/fineui/bin/cli/worker/template/utils/action_type.t

0
bin/cli/worker/template/utils/payload_type.t → packages/fineui/bin/cli/worker/template/utils/payload_type.t

0
bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t → packages/fineui/bin/cli/worker/template/worker_thread/action/action.worker_ability_test.t

0
bin/cli/worker/template/worker_thread/worker_thread.t → packages/fineui/bin/cli/worker/template/worker_thread/worker_thread.t

7
packages/fineui/package.json

@ -11,9 +11,10 @@
"sideEffects": [ "sideEffects": [
"**/*.less", "**/*.less",
"src/**/*.js", "src/**/*.js",
"dist/es/core/*.js", "dist/es/index.js",
"dist/es/core/element/**/*.js", "dist/es/core/system.js",
"dist/es/core/platform/**/*.js", "dist/es/core/platform/web/config.js",
"dist/es/core/platform/web/jquery/*.js",
"dist/es/polyfill/**/*.js", "dist/es/polyfill/**/*.js",
"dist/es/case/ztree/jquery.ztree.core-3.5.js", "dist/es/case/ztree/jquery.ztree.core-3.5.js",
"dist/es/case/ztree/jquery.ztree.excheck-3.5.js" "dist/es/case/ztree/jquery.ztree.excheck-3.5.js"

11
packages/fineui/src/core/index.js

@ -1,5 +1,5 @@
export * from './system'; export * from './system';
export { Plugin } from './6.plugin';
export { StyleLoaderManager } from './loader/loader.style'; export { StyleLoaderManager } from './loader/loader.style';
export { ShowListener } from './listener/listener.show'; export { ShowListener } from './listener/listener.show';
export { useInWorker } from './worker'; export { useInWorker } from './worker';
@ -15,16 +15,14 @@ export { PopoverController } from './controller/controller.popover';
export { ResizeController } from './controller/controller.resizer'; export { ResizeController } from './controller/controller.resizer';
export { TooltipsController } from './controller/controller.tooltips'; export { TooltipsController } from './controller/controller.tooltips';
export * from './4.widget'; export * as _ from './1.lodash';
export * from './2.base'; export * from './2.base';
export * from './3.ob'; export * from './3.ob';
export * from './4.widget';
export * from './5.inject'; export * from './5.inject';
export * from './6.plugin'; export * from './6.plugin';
export * from './action'; export * from './action';
// export * from "./behavior";
// export * from "./controller";
export * from './func'; export * from './func';
export * from './structure'; export * from './structure';
export * from './h'; export * from './h';
@ -36,6 +34,5 @@ export * from './utils';
export { shortcut, provider, store, model, mixin, mixins } from './decorator'; export { shortcut, provider, store, model, mixin, mixins } from './decorator';
import _ from './1.lodash';
export { _ };

9
packages/fineui/src/index.js

@ -1,12 +1,9 @@
// sideEffects // sideEffects
import "./core/system"; import "./core/system";
import "./core/element";
import "./core/platform";
import "./core/platform/web/jquery" import "./core/platform/web/jquery"
// 必须要等上面的准备好, 才初始化 config
import "./core/platform/web/config"; import "./core/platform/web/config";
import _jquery from "jquery"; import jquery from "jquery";
export * from "./core"; export * from "./core";
export * from "./base"; export * from "./base";
@ -16,5 +13,5 @@ export * from "./component";
export * from "./fix"; export * from "./fix";
export * from "./router"; export * from "./router";
export * as Popper from "@popperjs/core"; export * as Popper from "@popperjs/core";
export const jQuery = _jquery; export const jQuery = jquery;
export const $ = _jquery; export const $ = jquery;

Loading…
Cancel
Save