From cc42a9791bea841149c0470c27f71cfaf6b6c6ca Mon Sep 17 00:00:00 2001 From: ZitRo Date: Mon, 27 Apr 2015 20:54:49 +0300 Subject: [PATCH] html build fix --- cache/projectTemplate.xml | 27 +-------------------------- gulpfile.js | 4 ++++ 2 files changed, 5 insertions(+), 26 deletions(-) diff --git a/cache/projectTemplate.xml b/cache/projectTemplate.xml index b94322b..70eef77 100644 --- a/cache/projectTemplate.xml +++ b/cache/projectTemplate.xml @@ -329,32 +329,7 @@ Method returns user application. %Status - - - - Cache UML explorer - - - - -
-
-
- -
-
-
-
- -
-
- -
-
-
- - + {{replace:html}} > return $$$OK ]]>
diff --git a/gulpfile.js b/gulpfile.js index 667ce6e..cbe65a1 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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")); });