From def2c22d751df218915bce95cbc2adbef329a874 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 5 Sep 2019 14:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gruntfile.js | 8 ++++---- src/base/{ => single}/__test__/text.test.js | 0 src/base/{ => single/a}/__test__/a.test.js | 0 .../{ => single/button/buttons}/__test__/button.test.js | 0 {test/utils => src/core/__test__}/alias.test.js | 0 {test/utils => src/core/__test__}/base.test.js | 0 {test/utils => src/core/func/__test__}/date.test.js | 0 .../core/func/__test__/function.test.js | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename src/base/{ => single}/__test__/text.test.js (100%) rename src/base/{ => single/a}/__test__/a.test.js (100%) rename src/base/{ => single/button/buttons}/__test__/button.test.js (100%) rename {test/utils => src/core/__test__}/alias.test.js (100%) rename {test/utils => src/core/__test__}/base.test.js (100%) rename {test/utils => src/core/func/__test__}/date.test.js (100%) rename test/utils/func.test.js => src/core/func/__test__/function.test.js (100%) 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