Skip to content

Commit bbc1915

Browse files
Studio project remove from export
1 parent aefadfd commit bbc1915

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

gulpfile.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ gulp.task("copy-readme", ["clean"], function () {
9696
});
9797

9898
gulp.task("export", [ "copy-html", "copy-js", "prepare-css", "copy-readme" ], function () {
99-
var projectTemplate = '<Project name="WEBTerminal" LastModified="'
100-
+ (new Date()).toISOString().replace(/T/, " ").replace(/Z/, "") + '">\r\n'
101-
+ '<Items>\r\n',
102-
files = [];
99+
var files = [];
103100
return gulp.src("export/WebTerminal/**/*.xml")
104101
.pipe(foreach(function (stream, file) {
105102
files.push(path.relative(path.join(path.dirname(__filename), "export"), file.path)
@@ -142,11 +139,8 @@ gulp.task("export", [ "copy-html", "copy-js", "prepare-css", "copy-readme" ], fu
142139
.pipe(replace(
143140
/^/,
144141
'<?xml version="1.0" encoding="UTF-8"?>\r\n<Export generator="Cache" version="25">\r\n'
145-
)).pipe(foreach(function (stream) {
146-
return stream.pipe(replace(/$/, projectTemplate + files.map(function (fileName) {
147-
return '<ProjectItem name="' + fileName + '" type="CLS"></ProjectItem>'
148-
}).join("\r\n") + '\r\n</Items>\r\n</Project>\r\n</Export>'))
149-
}))
142+
))
143+
.pipe(replace(/$/, "</Export>"))
150144
.pipe(gulp.dest("./" + buildTo));
151145
});
152146

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"title": "Cache WEB Terminal",
44
"description": "Web-based terminal emulator for Caché administering.",
55
"author": "ZitRo",
6-
"version": "3.2.2",
7-
"releaseNumber": 20,
6+
"version": "3.2.3",
7+
"releaseNumber": 21,
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/intersystems-ru/webterminal.git"

0 commit comments

Comments
 (0)