@@ -139,7 +139,6 @@ const getSampleNameFromFileName = (fileName, sampleBaseDir) => fileName.replace(
139
139
var assetsRegex = new RegExp ( / ( [ \. ] { 0 , 2 } \/ ) * a s s e t s \/ / g) ;
140
140
141
141
const processApp = ( projectPath , dest , directoriesToExclude ) => {
142
- console . log ( 'process start' )
143
142
if ( ! fs . existsSync ( submodule ) ) {
144
143
return console . error ( "No submodule found" ) ;
145
144
}
@@ -186,16 +185,12 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
186
185
187
186
// Configure sample application file structure
188
187
const fileName = file . path . substring ( file . base . length + 1 ) . replace ( ".json" , "" ) ;
189
- console . log ( fileName )
190
188
let sampleBaseDir = fileName . indexOf ( "--" ) !== - 1 ? fileName . substring ( 0 , fileName . indexOf ( "--" ) ) : "" ;
191
- console . log ( sampleBaseDir )
192
189
if ( sampleBaseDir && ! fs . existsSync ( submoduleAppDest + sampleBaseDir ) ) {
193
190
fs . mkdirSync ( submoduleAppDest + sampleBaseDir ) ;
194
191
}
195
192
const sampleName = sampleBaseDir ? getSampleNameFromFileName ( fileName , sampleBaseDir ) : fileName ;
196
- console . log ( sampleName )
197
193
const sampleAppPath = submoduleAppDest + sampleBaseDir + "/" + sampleName ;
198
- console . log ( sampleAppPath )
199
194
200
195
if ( ! fs . existsSync ( sampleAppPath ) ) {
201
196
fs . mkdirSync ( sampleAppPath ) ;
@@ -234,9 +229,11 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
234
229
235
230
const processDemosWithScss = ( ) => processApp ( "src" , "angular-demos" , "data" ) ;
236
231
const processDemosLobWithScss = ( ) => processApp ( "projects/app-lob/src" , "angular-demos-lob" , "services" ) ;
232
+ const processDemosCrmWithScss = ( ) => processApp ( "projects/app-crm/src" , "angular-demos-grid-crm" ) ;
237
233
238
234
let repositoryfyAngularDemos ;
239
235
let repositoryfyAngularDemosLob ;
236
+ let repositoryfyAngularDemosCrm ;
240
237
241
238
const cleanupAngularDemos = ( cb ) => {
242
239
fsExtra . removeSync ( submodule + "/angular-demos" ) ;
@@ -249,5 +246,13 @@ const cleanupAngularDemosLob = (cb) => {
249
246
fsExtra . mkdirSync ( submodule + "/angular-demos-lob" ) ;
250
247
cb ( ) ;
251
248
}
249
+
250
+ const cleanupAngularDemosCrm = ( cb ) => {
251
+ fsExtra . removeSync ( submodule + "/angular-demos-grid-crm" ) ;
252
+ fsExtra . mkdirSync ( submodule + "/angular-demos-grid-crm" ) ;
253
+ cb ( ) ;
254
+ }
255
+
252
256
exports . repositoryfyAngularDemos = repositoryfyAngularDemos = gulp . series ( cleanupAngularDemos , processDemosWithScss ) ;
253
- exports . repositoryfyAngularDemosLob = repositoryfyAngularDemosLob = gulp . series ( cleanupAngularDemosLob , processDemosLobWithScss ) ;
257
+ exports . repositoryfyAngularDemosLob = repositoryfyAngularDemosLob = gulp . series ( cleanupAngularDemosLob , processDemosLobWithScss ) ;
258
+ exports . repositoryfyAngularDemosCrm = repositoryfyAngularDemosCrm = gulp . series ( cleanupAngularDemosCrm , processDemosCrmWithScss ) ;
0 commit comments