File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
- /*
2
- * patternlab-node - v1.2.1 - 2016
3
- *
1
+ /*
2
+ * patternlab-node - v1.2.1 - 2016
3
+ *
4
4
* Brian Muenzenmeyer, and the web community.
5
- * Licensed under the MIT license.
6
- *
7
- * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
5
+ * Licensed under the MIT license.
6
+ *
7
+ * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
8
8
*
9
9
*/
10
10
@@ -281,7 +281,16 @@ var patternlab_engine = function (config) {
281
281
}
282
282
}
283
283
} else {
284
- styleguidePatterns = patternlab . patterns ;
284
+ for ( i = 0 ; i < patternlab . patterns . length ; i ++ ) {
285
+ // skip underscore-prefixed files
286
+ if ( isPatternExcluded ( patternlab . patterns [ i ] ) ) {
287
+ if ( patternlab . config . debug ) {
288
+ console . log ( 'Omitting ' + patternlab . patterns [ i ] . key + " from styleguide pattern exclusion." ) ;
289
+ }
290
+ continue ;
291
+ }
292
+ styleguidePatterns . push ( patternlab . patterns [ i ] ) ;
293
+ }
285
294
}
286
295
287
296
//also add the cachebuster value. slight chance this could collide with a user that has defined cacheBuster as a value
You can’t perform that action at this time.
0 commit comments