Skip to content

Commit

Permalink
Merge pull request #118 from pattern-lab/dev
Browse files Browse the repository at this point in the history
Pattern Lab Node 0.9.0
  • Loading branch information
Brian Muenzenmeyer committed Apr 23, 2015
2 parents e60580d + b310067 commit f213fd1
Show file tree
Hide file tree
Showing 22 changed files with 986 additions and 589 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.

PL-node-v0.9.0
- FIX: Added grunt-contrib-copy args to copy all found source/css/*.css
- ADD: Added upgrade instructions to README
- FIX: Fix issue with styleguide accordions not closing upon click of a sibling menu.
- THX: @getsetbro for reporting more issues :)
- ADD: Added support for pattern search. This is 'in beta' and should have more testing applied to it.
- ADD: Added support for all keyboard shortcuts found in PL-PHP-v1.0.0
- FIX: Fixed an issue where Hay mode and Disco mode did not stop one another when using keyboard shortcuts
- FIX: Fix location of paragraph closing tag to wrap citation
- THX: @laurendorman for the pull request!
- FIX: Removed some dead code.
- ADD: Added View All links in each menu subsection
- THX: BIG THANKS TO @walmokrani for this work!

PL-node-v0.8.1
- FIX: v8 is not pulling in values from global data.json
- FIX: MQ list breaks if media queries don't have spaces
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ No pull request is too small.

##Guidelines
1. Please keep your pull requests concise
2. _ALWAYS_ submit it against the [dev branch](https://github.com/pattern-lab/patternlab-node/tree/dev). If this does not occur, I will first, try to redirect you gently, second, port over your contribution manually if time allows, and/or third, close your pull request.
2. _ALWAYS_ submit it against the [dev branch](https://github.com/pattern-lab/patternlab-node/tree/dev). If this does not occur, I will first, try to redirect you gently, second, port over your contribution manually if time allows, and/or third, close your pull request.
3. If you can, add some unit tests using the existing patterns
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function(grunt) {
main: {
files: [
{ expand: true, cwd: './source/js/', src: '*', dest: './public/js/'},
{ expand: true, cwd: './source/css/', src: 'style.css', dest: './public/css/' },
{ expand: true, cwd: './source/css/', src: '*.css', dest: './public/css/' },
{ expand: true, cwd: './source/images/', src: ['*.png', '*.jpg', '*.gif', '*.jpeg'], dest: './public/images/' },
{ expand: true, cwd: './source/images/sample/', src: ['*.png', '*.jpg', '*.gif', '*.jpeg'], dest: './public/images/sample/'},
{ expand: true, cwd: './source/fonts/', src: '*', dest: './public/fonts/'},
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ Running `grunt serve` will compile the patternlab front end and host it on <a hr

The Node version of Pattern Lab is maintained by [@bmuenzenmeyer](https://twitter.com/bmuenzenmeyer) and contributors. Pull requests welcome, but please take a moment to read the [guidelines](https://github.com/pattern-lab/patternlab-node/blob/master/CONTRIBUTING.md).

### Upgrading

You can find some simple upgrade documenation in it's current home here (unreleased but confirmed to work): [https://github.com/pattern-lab/website/blob/dev/patternlabsite/docs/node/upgrading.md](https://github.com/pattern-lab/website/blob/dev/patternlabsite/docs/node/upgrading.md)

### Forward, To the Specification!

Dave Olsen has published the [specification](https://github.com/pattern-lab/the-spec/blob/draft/SPEC.md) for Pattern Lab ports. Development will be oriented toward compliance with this as the spec and the port mature together.
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 - v0.8.1 - 2015
* patternlab-node - v0.9.0 - 2015
*
* 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 - v0.8.1 - 2015
* patternlab-node - v0.9.0 - 2015
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
107 changes: 50 additions & 57 deletions builder/object_factory.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* patternlab-node - v0.8.1 - 2015
* patternlab-node - v0.9.0 - 2015
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand All @@ -9,61 +9,54 @@
*/

(function () {
"use strict";

var oPattern = function(subdir, filename, data){
this.fileName = filename.substring(0, filename.indexOf('.'));
this.subdir = subdir;
this.name = (subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName).replace(/\\/g, '-'); //this is the unique name with the subDir
this.data = data || null;
this.patternName = this.fileName.substring(this.fileName.indexOf('-') + 1); //this is the display name for the ui
this.patternLink = this.name + '/' + this.name + '.html';
this.patternGroup = this.name.substring(this.name.indexOf('-') + 1, this.name.indexOf('-', 4) + 1 - this.name.indexOf('-') + 1);
this.patternSubGroup = subdir.substring(subdir.indexOf('/') + 4);
this.flatPatternPath = subdir.replace(/\//g, '-');
this.key = this.patternGroup + '-' + this.patternName;
this.template = '';
this.patternPartial = '';
this.lineage = [];
this.lineageIndex = [];
this.lineageR = [];
this.lineageRIndex = [];
};

var oBucket = function(name){
this.bucketNameLC = name;
this.bucketNameUC = name.charAt(0).toUpperCase() + name.slice(1);
this.navItems = [];
this.navItemsIndex = [];
this.patternItems = [];
this.patternItemsIndex = [];
};

var oNavItem = function(name){
this.sectionNameLC = name;
this.sectionNameUC = name.charAt(0).toUpperCase() + name.slice(1);
this.navSubItems = [];
this.navSubItemsIndex = [];
};

var oNavSubItem = function(name){
this.patternPath = '';
this.patternPartial = '';
this.patternName = name.charAt(0).toUpperCase() + name.slice(1);
};

var oPatternItem = function(){
this.patternPath = '';
this.patternPartial = '';
this.patternName = '';
};

module.exports = {
oPattern: oPattern,
oBucket: oBucket,
oNavItem: oNavItem,
oNavSubItem: oNavSubItem,
oPatternItem: oPatternItem
};
"use strict";

var oPattern = function(subdir, filename, data){
this.fileName = filename.substring(0, filename.indexOf('.'));
this.subdir = subdir;
this.name = subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName; //this is the unique name with the subDir
this.data = data || null;
this.patternName = this.fileName.substring(this.fileName.indexOf('-') + 1); //this is the display name for the ui
this.patternLink = this.name + '/' + this.name + '.html';
this.patternGroup = this.name.substring(this.name.indexOf('-') + 1, this.name.indexOf('-', 4) + 1 - this.name.indexOf('-') + 1);
this.patternSubGroup = subdir.substring(subdir.indexOf('/') + 4);
this.flatPatternPath = subdir.replace(/[\/\\]/g, '-');
this.key = this.patternGroup + '-' + this.patternName;
this.template = '';
this.patternPartial = '';
this.lineage = [];
this.lineageIndex = [];
this.lineageR = [];
this.lineageRIndex = [];
};

var oBucket = function(name){
this.bucketNameLC = name;
this.bucketNameUC = name.charAt(0).toUpperCase() + name.slice(1);
this.navItems = [];
this.navItemsIndex = [];
this.patternItems = [];
this.patternItemsIndex = [];
};

var oNavItem = function(name){
this.sectionNameLC = name;
this.sectionNameUC = name.charAt(0).toUpperCase() + name.slice(1);
this.navSubItems = [];
this.navSubItemsIndex = [];
};

var oNavSubItem = function(name){
this.patternPath = '';
this.patternPartial = '';
this.patternName = name.charAt(0).toUpperCase() + name.slice(1);
};

module.exports = {
oPattern: oPattern,
oBucket: oBucket,
oNavItem: oNavItem,
oNavSubItem: oNavSubItem
};

}());
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 - v0.8.1 - 2015
* patternlab-node - v0.9.0 - 2015
*
* Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
Expand Down
Loading

0 comments on commit f213fd1

Please sign in to comment.