keep demo/kitchein-sink folders location in the build

This commit is contained in:
nightwing 2014-06-20 10:38:05 +04:00
commit e52884761d
2 changed files with 7 additions and 18 deletions

View file

@ -132,25 +132,20 @@ function demo() {
); );
} }
function fixDocPaths(data) { copy(ACE_HOME + "/demo/kitchen-sink", BUILD_DIR + "/demo/kitchen-sink", {
return data.replace(/"(demo|build)\//g, "\"");
}
copy(ACE_HOME + "/demo/kitchen-sink", BUILD_DIR + "/kitchen-sink", {
shallow: true, shallow: true,
replace: [changeComments, fixDocPaths], replace: [changeComments],
include: /\.(css|html)$/ 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({}, { buildSubmodule({}, {
require: ["kitchen-sink/demo"], require: ["kitchen-sink/demo"],
filters: [fixDocPaths],
projectType: "demo" projectType: "demo"
}, BUILD_DIR + "/kitchen-sink/demo"); }, BUILD_DIR + "/demo/kitchen-sink/demo");
copy(ACE_HOME + "/demo/", BUILD_DIR + "/demo/", { copy(ACE_HOME + "/demo/", BUILD_DIR + "/demo/", {
shallow: true, shallow: true,

View file

@ -11,16 +11,10 @@
commit %commit% commit %commit%
--> -->
<!--DEVEL--> <link rel="stylesheet" href="demo/kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="demo/kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8"> <script async="true" src="https://use.edgefonts.net/source-code-pro.js"></script>
<script async="true" src="https://use.edgefonts.net/source-code-pro.js"></script>
<!--DEVEL-->
<link href="./doc/site/images/favicon.ico" rel="icon" type="image/x-icon"> <link href="./doc/site/images/favicon.ico" rel="icon" type="image/x-icon">
<!--PACKAGE
<link rel="stylesheet" href="kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8">
<script async="true" src="https://use.edgefonts.net/source-code-pro.js"></script>
PACKAGE-->
</head> </head>
<body> <body>
<div id="optionsPanel" style="position:absolute;height:100%;width:260px"> <div id="optionsPanel" style="position:absolute;height:100%;width:260px">