File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,21 +8,26 @@ import { LoggerInstance } from "../../utils/logger";
88
99export class TslintBuilder extends BuilderBase < void > {
1010 protected build ( production : boolean , builder : void , done : ( ) => void ) {
11-
11+
1212 gulp . src ( [
13- Paths . Builders . AllFiles . InSourceApp ( ".ts*" ) ,
14- `!${ Paths . Builders . AllFiles . InSourceApp ( "d.ts" ) } `
15- ] )
13+ Paths . Builders . AllFiles . InSourceApp ( ".ts*" ) ,
14+ `!${ Paths . Builders . AllFiles . InSourceApp ( "d.ts" ) } `
15+ ] )
1616 . pipe ( cache ( "scripts.tslint" ) )
1717 . pipe ( tslint ( {
1818 formatter : TsLintFormatter
1919 } ) )
2020 . on ( "end" , done ) ;
2121 }
2222
23+ private isInfoMessagePrinted = false ;
24+
2325 protected initBuilder ( production : boolean ) {
24- const { Linter } = require ( "tslint" ) ;
25- LoggerInstance . withType ( "TSLint" ) . info ( `Using TSLint@${ Linter . VERSION } ` ) ;
26+ if ( ! this . isInfoMessagePrinted ) {
27+ this . isInfoMessagePrinted = true ;
28+ const { Linter } = require ( "tslint" ) ;
29+ LoggerInstance . withType ( "TSLint" ) . info ( `Using TSLint@${ Linter . VERSION } ` ) ;
30+ }
2631 return ;
2732 }
2833
You can’t perform that action at this time.
0 commit comments