Skip to content

Commit

Permalink
Merge pull request #249 from pattern-lab/dev
Browse files Browse the repository at this point in the history
Pattern Lab Node 1.1.1
  • Loading branch information
Brian Muenzenmeyer committed Feb 15, 2016
2 parents ef54360 + 64a78e2 commit e132d89
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 28 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.

PL-node-v1.1.1
- FIX: Fixed issue where alternate patterns are added to end of styleguide instead of inline with their parent pattern.

PL-node-v1.1.0
- FIX: Fixed issue where partials containing styleModifiers with integers were not found correctly under all circumstances
- 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.
Expand Down
2 changes: 1 addition & 1 deletion builder/lineage_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/list_item_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/media_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/object_factory.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/parameter_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/pattern_assembler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/pattern_exporter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
26 changes: 13 additions & 13 deletions builder/patternlab.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down Expand Up @@ -162,6 +162,18 @@ var patternlab_engine = function (config) {
patternlab.patternPaths = {};
patternlab.viewAllPaths = {};

//sort all patterns explicitly.
patternlab.patterns = patternlab.patterns.sort(function(a,b){
if (a.name > b.name) {
return 1;
}
if (a.name < b.name) {
return -1;
}
// a must be equal to b
return 0;
});

//find mediaQueries
media_hunter.find_media_queries('./source/css', patternlab);

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

//sort all patterns explicitly.
patternlab.patterns = patternlab.patterns.sort(function(a,b){
if (a.name > b.name) {
return 1;
}
if (a.name < b.name) {
return -1;
}
// a must be equal to b
return 0;
});

//loop through all patterns.to build the navigation
//todo: refactor this someday
for(var i = 0; i < patternlab.patterns.length; i++){
Expand Down
2 changes: 1 addition & 1 deletion builder/patternlab_grunt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/patternlab_gulp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/pseudopattern_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion builder/style_modifier_hunter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v1.1.0 - 2016
* patternlab-node - v1.1.1 - 2016
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
4 changes: 2 additions & 2 deletions package.gulp.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "patternlab-node",
"description": "Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).",
"version": "1.1.0",
"version": "1.1.1",
"main": "./builder/patternlab.js",
"dependencies": {
"del": "^2.2.0",
"diveSync": "^0.3.0",
"fs-extra": "^0.26.5",
"glob": "^6.0.4",
"glob": "^7.0.0",
"html-entities": "^1.2.0",
"mustache": "^2.2.1"
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "patternlab-node",
"description": "Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).",
"version": "1.1.0",
"version": "1.1.1",
"main": "./builder/patternlab.js",
"dependencies": {
"diveSync": "^0.3.0",
"fs-extra": "^0.26.2",
"glob": "^6.0.1",
"glob": "^7.0.0",
"html-entities": "^1.2.0",
"matchdep": "^1.0.0",
"mustache": "^2.2.0"
Expand Down

0 comments on commit e132d89

Please sign in to comment.