@@ -14,7 +14,8 @@ module.exports = {
14
14
{ name : 'route' , type : Boolean , default : false } ,
15
15
{ name : 'inline-template' , type : Boolean , default : false , aliases : [ 'it' ] } ,
16
16
{ name : 'inline-style' , type : Boolean , default : false , aliases : [ 'is' ] } ,
17
- { name : 'prefix' , type : Boolean , default : true }
17
+ { name : 'prefix' , type : Boolean , default : true } ,
18
+ { name : 'nospec' , type : Boolean , default : false }
18
19
] ,
19
20
20
21
normalizeEntityName : function ( entityName ) {
@@ -49,6 +50,7 @@ module.exports = {
49
50
return {
50
51
dynamicPath : this . dynamicPath . dir . replace ( this . dynamicPath . appRoot , '' ) ,
51
52
flat : options . flat ,
53
+ nospec : options . nospec ,
52
54
inlineTemplate : options . inlineTemplate ,
53
55
inlineStyle : options . inlineStyle ,
54
56
route : options . route ,
@@ -74,6 +76,9 @@ module.exports = {
74
76
if ( this . options && this . options . inlineStyle ) {
75
77
fileList = fileList . filter ( p => p . indexOf ( '.__styleext__' ) < 0 ) ;
76
78
}
79
+ if ( this . options && this . options . nospec ) {
80
+ fileList = fileList . filter ( p => p . indexOf ( '__name__.component.spec.ts' ) < 0 ) ;
81
+ }
77
82
78
83
return fileList ;
79
84
} ,
0 commit comments