File tree 3 files changed +8
-1
lines changed 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ export default function(options: PageOptions): Rule {
163
163
164
164
const templateSource = apply ( url ( './files' ) , [
165
165
options . spec ? noop ( ) : filter ( p => ! p . endsWith ( '.spec.ts' ) ) ,
166
+ options . createModule ? noop ( ) : filter ( p => ! p . endsWith ( '.module.ts' ) ) ,
166
167
template ( {
167
168
...strings ,
168
169
'if-flat' : ( s : string ) => options . flat ? '' : s ,
@@ -173,7 +174,7 @@ export default function(options: PageOptions): Rule {
173
174
174
175
return chain ( [
175
176
branchAndMerge ( chain ( [
176
- addRouteToNgModule ( options ) ,
177
+ options . createModule ? addRouteToNgModule ( options ) : noop ( ) ,
177
178
mergeWith ( templateSource ) ,
178
179
] ) ) ,
179
180
] ) ( host , context ) ;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export interface Schema {
7
7
spec ?: boolean ;
8
8
flat ?: boolean ;
9
9
selector ?: string ;
10
+ createModule ?: boolean ;
10
11
module ?: string ;
11
12
routePath ?: string ;
12
13
}
Original file line number Diff line number Diff line change 59
59
"format" : " html-selector" ,
60
60
"description" : " The selector to use for the page"
61
61
},
62
+ "createModule" : {
63
+ "type" : " boolean" ,
64
+ "description" : " Allows creating an NgModule for the page" ,
65
+ "default" : true
66
+ },
62
67
"module" : {
63
68
"type" : " string" ,
64
69
"description" : " Allows specification of the declaring module" ,
You can’t perform that action at this time.
0 commit comments