update compile.js file ...

This commit is contained in:
2024-03-28 01:27:28 +03:30
parent e66740cb75
commit ad22c4aea9
+14 -1
View File
@@ -20,7 +20,13 @@ const excludeWorkspaceFolders = [
"Projects", "Projects",
"Scripts", "Scripts",
"Services", "Services",
"Shared Projects" "Shared Projects",
//
// Exclude Defaults ...
"Examples",
"Free Indicators",
"Advisors",
"Free Robots"
]; ];
// //
@@ -385,6 +391,13 @@ async function extractFiles(path = "", ext = []) {
result.push(cPath); result.push(cPath);
} }
} else if (isCDirectory) { } else if (isCDirectory) {
//
const destFolderName = XFileTools.basename(cPath);
const isExcluded = excludeWorkspaceFolders.includes(destFolderName);
if (isExcluded) {
continue;
}
// //
const cFiles = await extractFiles(cPath, ext); const cFiles = await extractFiles(cPath, ext);
if (cFiles && cFiles.length > 0) { if (cFiles && cFiles.length > 0) {