File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,6 @@ plutils.log.on('debug', msg => console.log(msg));
31
31
plutils . log . on ( 'warning' , msg => console . log ( msg ) ) ;
32
32
plutils . log . on ( 'info' , msg => console . log ( msg ) ) ;
33
33
34
- console . log (
35
- chalk . bold ( '\n====[ Pattern Lab / Node' ) ,
36
- `- v${ packageInfo . version } ` ,
37
- chalk . bold ( ']====\n' )
38
- ) ;
39
-
40
34
const patternEngines = require ( './pattern_engines' ) ;
41
35
const EventEmitter = require ( 'events' ) . EventEmitter ;
42
36
@@ -489,6 +483,15 @@ const patternlab_engine = function (config) {
489
483
}
490
484
491
485
function buildPatterns ( deletePatternDir ) {
486
+
487
+ if ( patternlab . config . debug ) {
488
+ console . log (
489
+ chalk . bold ( '\n====[ Pattern Lab / Node' ) ,
490
+ `- v${ packageInfo . version } ` ,
491
+ chalk . bold ( ']====\n' )
492
+ ) ;
493
+ }
494
+
492
495
patternlab . events . emit ( 'patternlab-build-pattern-start' , patternlab ) ;
493
496
494
497
const graph = patternlab . graph = loadPatternGraph ( deletePatternDir ) ;
You can’t perform that action at this time.
0 commit comments