@@ -139,7 +139,6 @@ const getSampleNameFromFileName = (fileName, sampleBaseDir) => fileName.replace(
139139var assetsRegex = new RegExp ( / ( [ \. ] { 0 , 2 } \/ ) * a s s e t s \/ / g) ;
140140
141141const processApp = ( projectPath , dest , directoriesToExclude ) => {
142- console . log ( 'process start' )
143142 if ( ! fs . existsSync ( submodule ) ) {
144143 return console . error ( "No submodule found" ) ;
145144 }
@@ -186,16 +185,12 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
186185
187186 // Configure sample application file structure
188187 const fileName = file . path . substring ( file . base . length + 1 ) . replace ( ".json" , "" ) ;
189- console . log ( fileName )
190188 let sampleBaseDir = fileName . indexOf ( "--" ) !== - 1 ? fileName . substring ( 0 , fileName . indexOf ( "--" ) ) : "" ;
191- console . log ( sampleBaseDir )
192189 if ( sampleBaseDir && ! fs . existsSync ( submoduleAppDest + sampleBaseDir ) ) {
193190 fs . mkdirSync ( submoduleAppDest + sampleBaseDir ) ;
194191 }
195192 const sampleName = sampleBaseDir ? getSampleNameFromFileName ( fileName , sampleBaseDir ) : fileName ;
196- console . log ( sampleName )
197193 const sampleAppPath = submoduleAppDest + sampleBaseDir + "/" + sampleName ;
198- console . log ( sampleAppPath )
199194
200195 if ( ! fs . existsSync ( sampleAppPath ) ) {
201196 fs . mkdirSync ( sampleAppPath ) ;
@@ -234,9 +229,11 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
234229
235230const processDemosWithScss = ( ) => processApp ( "src" , "angular-demos" , "data" ) ;
236231const processDemosLobWithScss = ( ) => processApp ( "projects/app-lob/src" , "angular-demos-lob" , "services" ) ;
232+ const processDemosCrmWithScss = ( ) => processApp ( "projects/app-crm/src" , "angular-demos-grid-crm" ) ;
237233
238234let repositoryfyAngularDemos ;
239235let repositoryfyAngularDemosLob ;
236+ let repositoryfyAngularDemosCrm ;
240237
241238const cleanupAngularDemos = ( cb ) => {
242239 fsExtra . removeSync ( submodule + "/angular-demos" ) ;
@@ -249,5 +246,13 @@ const cleanupAngularDemosLob = (cb) => {
249246 fsExtra . mkdirSync ( submodule + "/angular-demos-lob" ) ;
250247 cb ( ) ;
251248}
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+
252256exports . 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