@@ -152,7 +152,7 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
152152 message : 'Please enter a name for your config file. It will be automatically appended to (<config-file-name>-wizard.config.json):' ,
153153 validate : function ( input : string ) {
154154 return input . length === 0 ? 'The config file name cannot be empty. Please provide a valid name.' : true ;
155- }
155+ } ,
156156 } ;
157157
158158 const importConfigFile = {
@@ -161,7 +161,8 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
161161 excludeFilter : ( nodePath : any ) => ! nodePath . endsWith ( 'wizard.config.json' ) ,
162162 excludePath : ( nodePath : any ) => nodePath . startsWith ( 'node_modules' ) ,
163163 itemType : 'file' ,
164- message : 'Choose the path to an existing wizard config file which ends with "wizard.config.json". Start writing file name for suggestions:' ,
164+ message :
165+ 'Choose the path to an existing wizard config file which ends with "wizard.config.json". Start writing file name for suggestions:' ,
165166 rootPath : './' ,
166167 suggestOnly : false ,
167168 depthLimit : 5 ,
@@ -188,7 +189,7 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
188189 // listener
189190 const process = inquirer . prompt ( promptSubj as any ) . ui . process ;
190191 process . subscribe (
191- ( singleAnswer : { name : string ; answer : any } ) => {
192+ ( singleAnswer : { name : string ; answer : any } ) => {
192193 switch ( true ) {
193194 case singleAnswer . name === createOrImport . name : {
194195 if ( singleAnswer . answer ) {
@@ -253,8 +254,7 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
253254 err => {
254255 console . log ( 'Error: ' , err ) ;
255256 } ,
256- ( ) => {
257- }
257+ ( ) => { }
258258 ) ;
259259
260260 promptSubj . next ( createOrImport ) ;
@@ -356,7 +356,7 @@ function loadSourceProcessResult(allAnswers: any, tree: Tree, options: Schema, p
356356 . then ( aspect => {
357357 resolve (
358358 ! aspect . isCollectionAspect &&
359- loader . filterElements ( ( entry : DefaultEntity ) => entry instanceof DefaultEntity ) . length >= 1
359+ loader . filterElements ( ( entry : DefaultEntity ) => entry instanceof DefaultEntity ) . length >= 1
360360 ) ;
361361 } )
362362 . catch ( error => reject ( error ) ) ;
@@ -525,6 +525,14 @@ function getUserConfigQuestions(allAnswers: any, tree: Tree, options: Schema): Q
525525 default : false ,
526526 } ;
527527
528+ const requestOptionalMaterialTheme = {
529+ type : 'confirm' ,
530+ name : 'getOptionalMaterialTheme' ,
531+ message : 'Do you want to add the Angular Material theme? (Indigo Pink Theme)' ,
532+ when : ( ) => ! options . getOptionalMaterialTheme ,
533+ default : false ,
534+ } ;
535+
528536 const requestCustomRowActions = {
529537 type : 'suggest' ,
530538 name : 'customRowActions' ,
@@ -675,15 +683,14 @@ function getUserConfigQuestions(allAnswers: any, tree: Tree, options: Schema): Q
675683 const languageCodes = templateHelper . resolveAllLanguageCodes ( selectedElement ) ;
676684 const choices = [ { name : 'English' , value : 'en' } ] ;
677685
678-
679686 languageCodes . forEach ( code => {
680687 if ( code !== 'en' ) {
681688 choices . push ( { name : locale . getByTag ( code ) . name , value : code } ) ;
682689 }
683690 } ) ;
684691
685- return choices
686- } )
692+ return choices ;
693+ } ) ;
687694 } ,
688695 default : 'en' ,
689696 } ;
@@ -751,6 +758,7 @@ function getUserConfigQuestions(allAnswers: any, tree: Tree, options: Schema): Q
751758 requestEnableRemoteDataHandling ,
752759 requestCustomService ,
753760 requestAspectModelVersionSupport ,
761+ requestOptionalMaterialTheme ,
754762 requestCustomStyleImports ,
755763 requestOverwriteFiles ,
756764 ] ;
0 commit comments