This repository was archived by the owner on May 13, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+ *
44 * 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.
88 *
99 */
1010
@@ -281,7 +281,16 @@ var patternlab_engine = function (config) {
281281 }
282282 }
283283 } 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+ }
285294 }
286295
287296 //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