From e52884761d447c85e6a597732abfcfae4874e00a Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 20 Jun 2014 10:38:05 +0400 Subject: [PATCH] keep demo/kitchein-sink folders location in the build --- Makefile.dryice.js | 15 +++++---------- kitchen-sink.html | 10 ++-------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 5f5d69bc..a0982577 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -132,25 +132,20 @@ function demo() { ); } - function fixDocPaths(data) { - return data.replace(/"(demo|build)\//g, "\""); - } - - copy(ACE_HOME + "/demo/kitchen-sink", BUILD_DIR + "/kitchen-sink", { + copy(ACE_HOME + "/demo/kitchen-sink", BUILD_DIR + "/demo/kitchen-sink", { shallow: true, - replace: [changeComments, fixDocPaths], + replace: [changeComments], include: /\.(css|html)$/ }); - copy(ACE_HOME +"/demo/kitchen-sink/docs/", BUILD_DIR + "/kitchen-sink/docs/"); + copy(ACE_HOME +"/demo/kitchen-sink/docs/", BUILD_DIR + "/demo/kitchen-sink/docs/"); - copy.file(ACE_HOME + "/demo/kitchen-sink/logo.png", BUILD_DIR + "/kitchen-sink/logo.png"); + copy.file(ACE_HOME + "/demo/kitchen-sink/logo.png", BUILD_DIR + "/demo/kitchen-sink/logo.png"); buildSubmodule({}, { require: ["kitchen-sink/demo"], - filters: [fixDocPaths], projectType: "demo" - }, BUILD_DIR + "/kitchen-sink/demo"); + }, BUILD_DIR + "/demo/kitchen-sink/demo"); copy(ACE_HOME + "/demo/", BUILD_DIR + "/demo/", { shallow: true, diff --git a/kitchen-sink.html b/kitchen-sink.html index f55cfa14..d32b98b5 100644 --- a/kitchen-sink.html +++ b/kitchen-sink.html @@ -11,16 +11,10 @@ commit %commit% --> - - - - + + -