|
|
|
@ -13,7 +13,7 @@ const runtimePolyfill = ["@babel/polyfill", "es6-promise/auto"];
|
|
|
|
|
const basicAttachmentMap = { |
|
|
|
|
polyfill: sync([ |
|
|
|
|
"src/core/0.foundation.js", |
|
|
|
|
"src/polyfill/**/*.js", |
|
|
|
|
"src/polyfill/*.js", |
|
|
|
|
]).concat(runtimePolyfill), |
|
|
|
|
core: sync([ |
|
|
|
|
"src/less/core/**/*.less", |
|
|
|
@ -44,16 +44,16 @@ const basicAttachmentMap = {
|
|
|
|
|
// "src/component/**/*.js",
|
|
|
|
|
]), |
|
|
|
|
router: sync([ |
|
|
|
|
"src/router/**/*.js", |
|
|
|
|
"src/router/*.js", |
|
|
|
|
]), |
|
|
|
|
core_without_platform: sync([ |
|
|
|
|
"src/core/0.foundation.js", |
|
|
|
|
lodashJs, |
|
|
|
|
"src/core/**/*.js", |
|
|
|
|
"src/data/**/*.js", |
|
|
|
|
"src/core/index.js", |
|
|
|
|
// "src/data/**/*.js",
|
|
|
|
|
], [ |
|
|
|
|
"src/core/platform/**/*.js", |
|
|
|
|
"src/core/controller/**/*.js", |
|
|
|
|
"src/core/platform/index.js", |
|
|
|
|
"src/core/controller/index.js", |
|
|
|
|
]), |
|
|
|
|
core_without_normalize: sync( |
|
|
|
|
["src/less/core/**/*.less", "src/less/theme/**/*.less"], ["src/less/core/normalize.less", "src/less/core/normalize2.less"] |
|
|
|
@ -62,8 +62,8 @@ const basicAttachmentMap = {
|
|
|
|
|
"src/less/core/**/*.less", |
|
|
|
|
"src/less/theme/**/*.less", |
|
|
|
|
lodashJs, |
|
|
|
|
"src/core/**/*.js", |
|
|
|
|
"src/data/**/*.js", |
|
|
|
|
"src/core/index.js", |
|
|
|
|
// "src/data/**/*.js",
|
|
|
|
|
], [ |
|
|
|
|
"src/core/conflict.js", |
|
|
|
|
]), |
|
|
|
@ -72,22 +72,22 @@ const basicAttachmentMap = {
|
|
|
|
|
ts: ['./typescript/bundle.ts'], |
|
|
|
|
ui: sync([ |
|
|
|
|
'ui/less/app.less', |
|
|
|
|
'ui/less/**/*.less', |
|
|
|
|
'ui/js/**/*.js', |
|
|
|
|
'ui/less/*.less', |
|
|
|
|
'ui/js/index.js', |
|
|
|
|
]), |
|
|
|
|
config: sync(["demo/version.js", "i18n/i18n.cn.js"]), |
|
|
|
|
utils: sync([ |
|
|
|
|
"src/core/0.foundation.js", |
|
|
|
|
lodashJs, |
|
|
|
|
"src/core/constant/**/*.js", |
|
|
|
|
"src/core/func/**/*.js", |
|
|
|
|
"src/core/constant/index.js", |
|
|
|
|
"src/core/func/index.js", |
|
|
|
|
"src/core/2.base.js", |
|
|
|
|
"src/core/3.ob.js", |
|
|
|
|
"src/core/5.inject.js", |
|
|
|
|
"src/core/utils/*.js", |
|
|
|
|
"i18n/i18n.cn.js", |
|
|
|
|
"_mobile/date.i18n.cn.js", |
|
|
|
|
"src/data/**/*.js", |
|
|
|
|
// "src/data/**/*.js",
|
|
|
|
|
]), |
|
|
|
|
fix: [fixJs], |
|
|
|
|
fixProxy: [fixProxyJs], |
|
|
|
@ -111,7 +111,7 @@ const bundle = [].concat(
|
|
|
|
|
sync(["public/less/app.less", "public/less/**/*.less"]), |
|
|
|
|
[fixCompact, workerCompact], |
|
|
|
|
basicAttachmentMap.router, |
|
|
|
|
sync(["public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js"]), |
|
|
|
|
sync(["public/js/index.js", "public/js/index.js", "i18n/i18n.cn.js"]), |
|
|
|
|
basicAttachmentMap.ts, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -139,7 +139,7 @@ const coreJs = [].concat(
|
|
|
|
|
|
|
|
|
|
const resource = sync(["private/less/app.less", "private/less/**/*.less"]); |
|
|
|
|
|
|
|
|
|
const config = sync(["public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js"]); |
|
|
|
|
const config = sync(["public/js/index.js", "public/js/index.js", "i18n/i18n.cn.js"]); |
|
|
|
|
|
|
|
|
|
const bundleWithoutNormalize = [].concat( |
|
|
|
|
basicAttachmentMap.core_without_normalize, |
|
|
|
@ -219,21 +219,21 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat(
|
|
|
|
|
sync([ |
|
|
|
|
"src/core/0.foundation.js", |
|
|
|
|
lodashJs, |
|
|
|
|
"src/core/**/*.js", |
|
|
|
|
"src/data/**/*.js", |
|
|
|
|
"src/core/index.js", |
|
|
|
|
// "src/data/**/*.js",
|
|
|
|
|
], [ |
|
|
|
|
"src/core/platform/web/**/*.js", |
|
|
|
|
]), |
|
|
|
|
basicAttachmentMap.fix, |
|
|
|
|
sync([ |
|
|
|
|
"src/base/**/*.js", |
|
|
|
|
"src/case/**/*.js", |
|
|
|
|
"src/base/index.js", |
|
|
|
|
"src/case/index.js", |
|
|
|
|
], [ |
|
|
|
|
"src/base/single/input/file.js", |
|
|
|
|
"src/case/ztree/**/*.js", |
|
|
|
|
"src/case/ztree/index.js", |
|
|
|
|
]), |
|
|
|
|
basicAttachmentMap.widget, |
|
|
|
|
sync([fixCompact, workerCompact, "ui/js/**/*.js"]), |
|
|
|
|
sync([fixCompact, workerCompact, "ui/js/index.js"]), |
|
|
|
|
basicAttachmentMap.ts, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|