Skip to content

Commit 64a78e2

Browse files
committed
Alternate Patterns Are Added to the End of Styleguide and not Inline with their Parent Pattern
closes #242
1 parent 5293fb9 commit 64a78e2

15 files changed

+31
-28
lines changed

CHANGELOG

+3
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+13-13
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

+1-1
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_gulp.js

+1-1
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/pseudopattern_hunter.js

+1-1
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/style_modifier_hunter.js

+1-1
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.

package.gulp.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "patternlab-node",
33
"description": "Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"main": "./builder/patternlab.js",
66
"dependencies": {
77
"del": "^2.2.0",
88
"diveSync": "^0.3.0",
99
"fs-extra": "^0.26.5",
10-
"glob": "^6.0.4",
10+
"glob": "^7.0.0",
1111
"html-entities": "^1.2.0",
1212
"mustache": "^2.2.1"
1313
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "patternlab-node",
33
"description": "Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"main": "./builder/patternlab.js",
66
"dependencies": {
77
"diveSync": "^0.3.0",
88
"fs-extra": "^0.26.2",
9-
"glob": "^6.0.1",
9+
"glob": "^7.0.0",
1010
"html-entities": "^1.2.0",
1111
"matchdep": "^1.0.0",
1212
"mustache": "^2.2.0"

0 commit comments

Comments
 (0)