Skip to content

Commit c2bf904

Browse files
author
Brian Muenzenmeyer
committed
Pattern Lab 1.2.2
* Underscored Patterns are being built on the UI if styleguide excludes was missing or empty closes #300 * bumping version for 1.2.2
1 parent 837c530 commit c2bf904

14 files changed

+24
-15
lines changed

core/lib/lineage_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/list_item_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/media_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/object_factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/parameter_hunter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/pattern_assembler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/pattern_exporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/patternlab.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.
@@ -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

core/lib/patternlab_grunt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

core/lib/patternlab_gulp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.2.1 - 2016
2+
* patternlab-node - v1.2.2 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

0 commit comments

Comments
 (0)