Skip to content

Commit 4a1a61f

Browse files
committed
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-angular-samples into enable-ssr
2 parents aa4946e + 3c0fefe commit 4a1a61f

File tree

10 files changed

+2802
-2708
lines changed

10 files changed

+2802
-2708
lines changed

azure-devops/app-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ steps:
8585
findRegex: angular-demos
8686
npmBuildCommand: 'run build-ci'
8787
repositoryfy: true
88+
repositoryfyCommand: 'repositoryfyAngularDemos'

azure-devops/app-lob-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ steps:
8585
findRegex: angular-demos
8686
npmBuildCommand: 'run build-ci:app-lob'
8787
repositoryfy: true
88+
repositoryfyCommand: 'repositoryfyAngularDemosLob'

azure-devops/templates/cd-template.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ parameters:
2222
- name: repositoryfy
2323
type: boolean
2424
default: false
25+
- name: repositoryfyCommand
26+
type: string
27+
default: ''
2528

2629
steps:
2730
# - task: CmdLine@2
@@ -142,7 +145,7 @@ steps:
142145
command: custom
143146
workingDir: ${{ parameters.workingDir }}
144147
verbose: false
145-
customCommand: run repositoryfyAngularDemosLob
148+
customCommand: run ${{ parameters.repositoryfyCommand }}
146149

147150
- task: Npm@1
148151
displayName: Production - Repositorify Angular Demos
@@ -151,7 +154,7 @@ steps:
151154
command: custom
152155
workingDir: ${{ parameters.workingDir }}
153156
verbose: false
154-
customCommand: run repositoryfyAngularDemosLob:prod
157+
customCommand: run ${{ parameters.repositoryfyCommand }}:prod
155158

156159
- task: CmdLine@2
157160
displayName: Stage changes

gulpfile.js

Lines changed: 6 additions & 4 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) {
218218
fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent);
219-
} else
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)