Skip to content

Commit f213fd1

Browse files
author
Brian Muenzenmeyer
committed
Merge pull request #118 from pattern-lab/dev
Pattern Lab Node 0.9.0
2 parents e60580d + b310067 commit f213fd1

22 files changed

+986
-589
lines changed

CHANGELOG

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

3+
PL-node-v0.9.0
4+
- FIX: Added grunt-contrib-copy args to copy all found source/css/*.css
5+
- ADD: Added upgrade instructions to README
6+
- FIX: Fix issue with styleguide accordions not closing upon click of a sibling menu.
7+
- THX: @getsetbro for reporting more issues :)
8+
- ADD: Added support for pattern search. This is 'in beta' and should have more testing applied to it.
9+
- ADD: Added support for all keyboard shortcuts found in PL-PHP-v1.0.0
10+
- FIX: Fixed an issue where Hay mode and Disco mode did not stop one another when using keyboard shortcuts
11+
- FIX: Fix location of paragraph closing tag to wrap citation
12+
- THX: @laurendorman for the pull request!
13+
- FIX: Removed some dead code.
14+
- ADD: Added View All links in each menu subsection
15+
- THX: BIG THANKS TO @walmokrani for this work!
16+
317
PL-node-v0.8.1
418
- FIX: v8 is not pulling in values from global data.json
519
- FIX: MQ list breaks if media queries don't have spaces

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ No pull request is too small.
55

66
##Guidelines
77
1. Please keep your pull requests concise
8-
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.
8+
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.
9+
3. If you can, add some unit tests using the existing patterns

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function(grunt) {
4141
main: {
4242
files: [
4343
{ expand: true, cwd: './source/js/', src: '*', dest: './public/js/'},
44-
{ expand: true, cwd: './source/css/', src: 'style.css', dest: './public/css/' },
44+
{ expand: true, cwd: './source/css/', src: '*.css', dest: './public/css/' },
4545
{ expand: true, cwd: './source/images/', src: ['*.png', '*.jpg', '*.gif', '*.jpeg'], dest: './public/images/' },
4646
{ expand: true, cwd: './source/images/sample/', src: ['*.png', '*.jpg', '*.gif', '*.jpeg'], dest: './public/images/sample/'},
4747
{ expand: true, cwd: './source/fonts/', src: '*', dest: './public/fonts/'},

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ Running `grunt serve` will compile the patternlab front end and host it on <a hr
159159

160160
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).
161161

162+
### Upgrading
163+
164+
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)
165+
162166
### Forward, To the Specification!
163167

164168
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.

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 - v0.8.1 - 2015
2+
* patternlab-node - v0.9.0 - 2015
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 - v0.8.1 - 2015
2+
* patternlab-node - v0.9.0 - 2015
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/object_factory.js

Lines changed: 50 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v0.8.1 - 2015
2+
* patternlab-node - v0.9.0 - 2015
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.
@@ -9,61 +9,54 @@
99
*/
1010

1111
(function () {
12-
"use strict";
13-
14-
var oPattern = function(subdir, filename, data){
15-
this.fileName = filename.substring(0, filename.indexOf('.'));
16-
this.subdir = subdir;
17-
this.name = (subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName).replace(/\\/g, '-'); //this is the unique name with the subDir
18-
this.data = data || null;
19-
this.patternName = this.fileName.substring(this.fileName.indexOf('-') + 1); //this is the display name for the ui
20-
this.patternLink = this.name + '/' + this.name + '.html';
21-
this.patternGroup = this.name.substring(this.name.indexOf('-') + 1, this.name.indexOf('-', 4) + 1 - this.name.indexOf('-') + 1);
22-
this.patternSubGroup = subdir.substring(subdir.indexOf('/') + 4);
23-
this.flatPatternPath = subdir.replace(/\//g, '-');
24-
this.key = this.patternGroup + '-' + this.patternName;
25-
this.template = '';
26-
this.patternPartial = '';
27-
this.lineage = [];
28-
this.lineageIndex = [];
29-
this.lineageR = [];
30-
this.lineageRIndex = [];
31-
};
32-
33-
var oBucket = function(name){
34-
this.bucketNameLC = name;
35-
this.bucketNameUC = name.charAt(0).toUpperCase() + name.slice(1);
36-
this.navItems = [];
37-
this.navItemsIndex = [];
38-
this.patternItems = [];
39-
this.patternItemsIndex = [];
40-
};
41-
42-
var oNavItem = function(name){
43-
this.sectionNameLC = name;
44-
this.sectionNameUC = name.charAt(0).toUpperCase() + name.slice(1);
45-
this.navSubItems = [];
46-
this.navSubItemsIndex = [];
47-
};
48-
49-
var oNavSubItem = function(name){
50-
this.patternPath = '';
51-
this.patternPartial = '';
52-
this.patternName = name.charAt(0).toUpperCase() + name.slice(1);
53-
};
54-
55-
var oPatternItem = function(){
56-
this.patternPath = '';
57-
this.patternPartial = '';
58-
this.patternName = '';
59-
};
60-
61-
module.exports = {
62-
oPattern: oPattern,
63-
oBucket: oBucket,
64-
oNavItem: oNavItem,
65-
oNavSubItem: oNavSubItem,
66-
oPatternItem: oPatternItem
67-
};
12+
"use strict";
13+
14+
var oPattern = function(subdir, filename, data){
15+
this.fileName = filename.substring(0, filename.indexOf('.'));
16+
this.subdir = subdir;
17+
this.name = subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName; //this is the unique name with the subDir
18+
this.data = data || null;
19+
this.patternName = this.fileName.substring(this.fileName.indexOf('-') + 1); //this is the display name for the ui
20+
this.patternLink = this.name + '/' + this.name + '.html';
21+
this.patternGroup = this.name.substring(this.name.indexOf('-') + 1, this.name.indexOf('-', 4) + 1 - this.name.indexOf('-') + 1);
22+
this.patternSubGroup = subdir.substring(subdir.indexOf('/') + 4);
23+
this.flatPatternPath = subdir.replace(/[\/\\]/g, '-');
24+
this.key = this.patternGroup + '-' + this.patternName;
25+
this.template = '';
26+
this.patternPartial = '';
27+
this.lineage = [];
28+
this.lineageIndex = [];
29+
this.lineageR = [];
30+
this.lineageRIndex = [];
31+
};
32+
33+
var oBucket = function(name){
34+
this.bucketNameLC = name;
35+
this.bucketNameUC = name.charAt(0).toUpperCase() + name.slice(1);
36+
this.navItems = [];
37+
this.navItemsIndex = [];
38+
this.patternItems = [];
39+
this.patternItemsIndex = [];
40+
};
41+
42+
var oNavItem = function(name){
43+
this.sectionNameLC = name;
44+
this.sectionNameUC = name.charAt(0).toUpperCase() + name.slice(1);
45+
this.navSubItems = [];
46+
this.navSubItemsIndex = [];
47+
};
48+
49+
var oNavSubItem = function(name){
50+
this.patternPath = '';
51+
this.patternPartial = '';
52+
this.patternName = name.charAt(0).toUpperCase() + name.slice(1);
53+
};
54+
55+
module.exports = {
56+
oPattern: oPattern,
57+
oBucket: oBucket,
58+
oNavItem: oNavItem,
59+
oNavSubItem: oNavSubItem
60+
};
6861

6962
}());

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 - v0.8.1 - 2015
2+
* patternlab-node - v0.9.0 - 2015
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

0 commit comments

Comments
 (0)