diff --git a/Gruntfile.js b/Gruntfile.js index 1d2e978d7..3cc5d0323 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -21,7 +21,7 @@ module.exports = function (grunt) { dest: "dist/polyfill.js" }, coreJs: { - src: [ + src: filterPath([ "src/core/foundation.js", "src/core/lodash.js", // 'src/core/mvc/**/*.js', @@ -39,7 +39,7 @@ module.exports = function (grunt) { "src/data/data.js", "src/data/**/*.js" - ], + ]), dest: "dist/core.js" }, @@ -67,10 +67,10 @@ module.exports = function (grunt) { }, // 实现好的一些基础实例 caseJs: { - src: [ + src: filterPath([ "src/case/combo/popup.bubble.js", "src/case/**/*.js" - ], + ]), dest: "dist/case.js" }, widgetJs: { diff --git a/src/base/__test__/text.test.js b/src/base/single/__test__/text.test.js similarity index 100% rename from src/base/__test__/text.test.js rename to src/base/single/__test__/text.test.js diff --git a/src/base/__test__/a.test.js b/src/base/single/a/__test__/a.test.js similarity index 100% rename from src/base/__test__/a.test.js rename to src/base/single/a/__test__/a.test.js diff --git a/src/base/__test__/button.test.js b/src/base/single/button/buttons/__test__/button.test.js similarity index 100% rename from src/base/__test__/button.test.js rename to src/base/single/button/buttons/__test__/button.test.js diff --git a/test/utils/alias.test.js b/src/core/__test__/alias.test.js similarity index 100% rename from test/utils/alias.test.js rename to src/core/__test__/alias.test.js diff --git a/test/utils/base.test.js b/src/core/__test__/base.test.js similarity index 100% rename from test/utils/base.test.js rename to src/core/__test__/base.test.js diff --git a/test/utils/date.test.js b/src/core/func/__test__/date.test.js similarity index 100% rename from test/utils/date.test.js rename to src/core/func/__test__/date.test.js diff --git a/test/utils/func.test.js b/src/core/func/__test__/function.test.js similarity index 100% rename from test/utils/func.test.js rename to src/core/func/__test__/function.test.js