Skip to content

Commit

Permalink
html build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Apr 27, 2015
1 parent 1472496 commit cc42a97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
27 changes: 1 addition & 26 deletions cache/projectTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,32 +329,7 @@ Method returns user application.</Description>
<ReturnType>%Status</ReturnType>
<Implementation><![CDATA[
&html<
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Cache UML explorer</title>
<link rel="stylesheet" href="css/CacheUMLExplorer.css">
<script src="js/CacheUMLExplorer.js"></script>
</head>
<body onload="var cue = new CacheUMLExplorer(document.getElementById('treeView'), document.getElementById('classView'))">
<div class="ui-body">
<div class="ui-sideBlock">
<div id="treeView">
</div>
</div>
<div class="ui-mainBlock">
<div class="ui-ClassInfo">
<span id="className"></span>
</div>
<div id="classView">
</div>
</div>
</div>
</body>
</html>
{{replace:html}}
>
return $$$OK
]]></Implementation>
Expand Down
4 changes: 4 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ gulp.task("exportCacheXML", [
/\{\{replace:js}}/,
function () { return fs.readFileSync("build/web/js/CacheUMLExplorer.js", "utf-8"); }
))
.pipe(replace(
/\{\{replace:html}}/,
function () { return fs.readFileSync("build/web/index.html", "utf-8"); }
))
.pipe(rename(function (path) { path.basename = "CacheUMLExplorer-v" + pkg["version"]; }))
.pipe(gulp.dest("build/Cache"));
});
Expand Down

0 comments on commit cc42a97

Please sign in to comment.