From 45376d020c73a461e291410f3d7943dd7b0d8374 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Fri, 7 Mar 2025 18:42:51 +0200 Subject: [PATCH] fix(*): attempting to fix gulp file --- gulpfile.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index f0bc542192..f507b85fbb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -30,7 +30,7 @@ gulp.task("generate-live-editing", async () => { } } : - (argv.appCrm ? + (argv.appCrm ? { platform: 'angular', projectDir: "./projects/app-crm", @@ -213,16 +213,18 @@ const processApp = (projectPath, dest, directoriesToExclude) => { const paths = sampleFile.path.replace("./", "").split("/"); let tempPath = ""; paths.forEach(p => { - tempPath += p + "/"; + tempPath += p; if (p.indexOf(".") !== -1 && p !== codesandboxConfigFolder) { - fs.writeFileSync(sampleAppPath + "/" + tempPath.slice(0, -1), sampleContent); - } else + fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent); + } else { if (p === 'Dockerfile') { fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent); } else if (!fs.existsSync(sampleAppPath + "/" + tempPath)) { fs.mkdirSync(sampleAppPath + "/" + tempPath) } - }) + } + tempPath += "/"; + }); }); i++; console.log(`Processing ${fileName}.json with SCSS styling`);