Skip to content

Commit e132d89

Browse files
author
Brian Muenzenmeyer
committed
Merge pull request #249 from pattern-lab/dev
Pattern Lab Node 1.1.1
2 parents ef54360 + 64a78e2 commit e132d89

15 files changed

+31
-28
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.
22

3+
PL-node-v1.1.1
4+
- FIX: Fixed issue where alternate patterns are added to end of styleguide instead of inline with their parent pattern.
5+
36
PL-node-v1.1.0
47
- FIX: Fixed issue where partials containing styleModifiers with integers were not found correctly under all circumstances
58
- FIX: Fixed issue where excluded patterns were still rendered on the Pattern Lab site. Now they do not directly get rendered via the menu, view all links, or the styleguide, but are accessible for inclusion as pattern partials, and can be accessed via lineage.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/patternlab.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v1.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.
@@ -162,6 +162,18 @@ var patternlab_engine = function (config) {
162162
patternlab.patternPaths = {};
163163
patternlab.viewAllPaths = {};
164164

165+
//sort all patterns explicitly.
166+
patternlab.patterns = patternlab.patterns.sort(function(a,b){
167+
if (a.name > b.name) {
168+
return 1;
169+
}
170+
if (a.name < b.name) {
171+
return -1;
172+
}
173+
// a must be equal to b
174+
return 0;
175+
});
176+
165177
//find mediaQueries
166178
media_hunter.find_media_queries('./source/css', patternlab);
167179

@@ -239,18 +251,6 @@ var patternlab_engine = function (config) {
239251
//build the patternlab website
240252
var patternlabSiteTemplate = fs.readFileSync(path.resolve(paths.source.patternlabFiles, 'index.mustache'), 'utf8');
241253

242-
//sort all patterns explicitly.
243-
patternlab.patterns = patternlab.patterns.sort(function(a,b){
244-
if (a.name > b.name) {
245-
return 1;
246-
}
247-
if (a.name < b.name) {
248-
return -1;
249-
}
250-
// a must be equal to b
251-
return 0;
252-
});
253-
254254
//loop through all patterns.to build the navigation
255255
//todo: refactor this someday
256256
for(var i = 0; i < patternlab.patterns.length; i++){

builder/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.1.0 - 2016
2+
* patternlab-node - v1.1.1 - 2016
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

0 commit comments

Comments
 (0)