Skip to content

Commit 3c0fefe

Browse files
authored
Merge pull request #3627 from IgniteUI/sstoychev/repositorify-last
fix(*): attempting to fix gulp file
2 parents 8623aa2 + 45376d0 commit 3c0fefe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

gulpfile.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ gulp.task("generate-live-editing", async () => {
3030
}
3131
}
3232
:
33-
(argv.appCrm ?
33+
(argv.appCrm ?
3434
{
3535
platform: 'angular',
3636
projectDir: "./projects/app-crm",
@@ -213,16 +213,18 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
213213
const paths = sampleFile.path.replace("./", "").split("/");
214214
let tempPath = "";
215215
paths.forEach(p => {
216-
tempPath += p + "/";
216+
tempPath += p;
217217
if (p.indexOf(".") !== -1 && p !== codesandboxConfigFolder) {
218-
fs.writeFileSync(sampleAppPath + "/" + tempPath.slice(0, -1), sampleContent);
219-
} else
218+
fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent);
219+
} else {
220220
if (p === 'Dockerfile') {
221221
fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent);
222222
} else if (!fs.existsSync(sampleAppPath + "/" + tempPath)) {
223223
fs.mkdirSync(sampleAppPath + "/" + tempPath)
224224
}
225-
})
225+
}
226+
tempPath += "/";
227+
});
226228
});
227229
i++;
228230
console.log(`Processing ${fileName}.json with SCSS styling`);

0 commit comments

Comments
 (0)