diff --git a/CHANGELOG b/CHANGELOG index 5cc039b63..491f1ddab 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/builder/lineage_hunter.js b/builder/lineage_hunter.js index 5c7c51df6..999bfb94b 100644 --- a/builder/lineage_hunter.js +++ b/builder/lineage_hunter.js @@ -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. diff --git a/builder/list_item_hunter.js b/builder/list_item_hunter.js index bd025d7b5..44688fa8c 100644 --- a/builder/list_item_hunter.js +++ b/builder/list_item_hunter.js @@ -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. diff --git a/builder/media_hunter.js b/builder/media_hunter.js index 61583cc91..10bf885f8 100644 --- a/builder/media_hunter.js +++ b/builder/media_hunter.js @@ -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. diff --git a/builder/object_factory.js b/builder/object_factory.js index e667ab8df..4e91e110c 100644 --- a/builder/object_factory.js +++ b/builder/object_factory.js @@ -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. diff --git a/builder/parameter_hunter.js b/builder/parameter_hunter.js index 8da66335b..cee16596b 100644 --- a/builder/parameter_hunter.js +++ b/builder/parameter_hunter.js @@ -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. diff --git a/builder/pattern_assembler.js b/builder/pattern_assembler.js index c3c110885..e45e37982 100644 --- a/builder/pattern_assembler.js +++ b/builder/pattern_assembler.js @@ -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. diff --git a/builder/pattern_exporter.js b/builder/pattern_exporter.js index 6c46eb223..24b751cfa 100644 --- a/builder/pattern_exporter.js +++ b/builder/pattern_exporter.js @@ -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. diff --git a/builder/patternlab.js b/builder/patternlab.js index 19fe34324..d68c3e14b 100644 --- a/builder/patternlab.js +++ b/builder/patternlab.js @@ -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. @@ -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); @@ -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++){ diff --git a/builder/patternlab_grunt.js b/builder/patternlab_grunt.js index 5d1f1c6bb..b04deefac 100644 --- a/builder/patternlab_grunt.js +++ b/builder/patternlab_grunt.js @@ -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. diff --git a/builder/patternlab_gulp.js b/builder/patternlab_gulp.js index 71789185f..956b20f01 100644 --- a/builder/patternlab_gulp.js +++ b/builder/patternlab_gulp.js @@ -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. diff --git a/builder/pseudopattern_hunter.js b/builder/pseudopattern_hunter.js index 80465eef4..b262d1a3c 100644 --- a/builder/pseudopattern_hunter.js +++ b/builder/pseudopattern_hunter.js @@ -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. diff --git a/builder/style_modifier_hunter.js b/builder/style_modifier_hunter.js index 12ed0c79f..b3402888d 100644 --- a/builder/style_modifier_hunter.js +++ b/builder/style_modifier_hunter.js @@ -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. diff --git a/package.gulp.json b/package.gulp.json index fb73bd7c7..7e83badca 100644 --- a/package.gulp.json +++ b/package.gulp.json @@ -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" }, diff --git a/package.json b/package.json index 24043cfb5..508a67686 100644 --- a/package.json +++ b/package.json @@ -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"