Browse Source

KERNEL-14512 chore:打包结构调整

es6
Treecat 2 years ago
parent
commit
bc8f19f589
  1. 2
      packages/demo/package.json
  2. 7
      packages/fineui/package.json
  3. 11
      packages/fineui/src/core/index.js
  4. 9
      packages/fineui/src/index.js

2
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": "",

7
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"

11
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 { _ };

9
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;

Loading…
Cancel
Save