Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion flow2src/flow2src.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = function(RED) {
idMap[obj.id] = { folder: obj.name.replace(/[^a-z0-9]/gi, '_'), subflow: true };
}
// Gather nodes and templates
if (obj.type == 'template' || obj.type == 'function' || obj.type == 'wp function') {
if (obj.type == 'template' || obj.type == 'ui-template' || obj.type == 'function' || obj.type == 'wp function') {
theNodes.push(obj);
}
});
Expand All @@ -146,6 +146,9 @@ module.exports = function(RED) {
ext = '.' + ext;
}
}
if (obj.type == 'ui-template') {
ext = '.html';
}
if (obj.type == 'function') {
ext = '.js';
}
Expand Down Expand Up @@ -180,6 +183,13 @@ module.exports = function(RED) {
subflow: info.subflow
});
existingFiles.push(file);
} else if (obj.type == 'ui-template') {
obj.srcFiles.push({
id: obj.id,
property: 'format',
file: file
});
existingFiles.push(file);
} else if (obj.type == 'function') {
obj.srcFiles.push({
id: obj.id,
Expand Down