Skip to content

Commit 0abe83e

Browse files
committed
annotation, code support, ishOptions
synced some client code with pl-php. support for ishControlsVisible - which can turn off features as not needed or implemented yet. annotation and code support is present reorganized some files to align with pl-php, not as clean yet but working toward it!
1 parent 548325f commit 0abe83e

33 files changed

+2679
-1122
lines changed

builder/object_factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v0.1.2 - 2014-06-21
2+
* patternlab-node - v0.1.2 - 2014-07-12
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.

builder/patternlab.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* patternlab-node - v0.1.2 - 2014-06-21
2+
* patternlab-node - v0.1.2 - 2014-07-12
33
*
44
* Brian Muenzenmeyer, and the web community.
55
* Licensed under the MIT license.
@@ -16,6 +16,7 @@ var patternlab_engine = function(grunt){
1616
patternlab = {};
1717

1818
patternlab.package = grunt.file.readJSON('package.json');
19+
patternlab.config = grunt.file.readJSON('config.json');
1920

2021
function getVersion() {
2122
grunt.log.ok(patternlab.package.version);
@@ -26,8 +27,8 @@ var patternlab_engine = function(grunt){
2627
}
2728

2829
function printDebug() {
29-
//debug file can be written by setting flag on package.json
30-
if(patternlab.package.debug){
30+
//debug file can be written by setting flag on config.json
31+
if(patternlab.config.debug){
3132
var outputFilename = './patternlab.json';
3233
grunt.file.write(outputFilename, JSON.stringify(patternlab, null, 3));
3334
}
@@ -277,7 +278,7 @@ var patternlab_engine = function(grunt){
277278

278279
//ishControls
279280
var ishControlsTemplate = grunt.file.read('./source/_patternlab-files/partials/ishControls.mustache');
280-
var ishControlsPartialHtml = mustache.render(ishControlsTemplate);
281+
var ishControlsPartialHtml = mustache.render(ishControlsTemplate, patternlab.config);
281282

282283
//patternPaths
283284
var patternPathsTemplate = grunt.file.read('./source/_patternlab-files/partials/patternPaths.mustache');
@@ -289,9 +290,8 @@ var patternlab_engine = function(grunt){
289290

290291
//websockets
291292
var websocketsTemplate = grunt.file.read('./source/_patternlab-files/partials/websockets.mustache');
292-
var config = grunt.file.readJSON('./config/config.json');
293-
patternlab.contentsyncport = config.contentSyncPort;
294-
patternlab.navsyncport = config.navSyncPort;
293+
patternlab.contentsyncport = patternlab.config.contentSyncPort;
294+
patternlab.navsyncport = patternlab.config.navSyncPort;
295295

296296
var websocketsPartialHtml = mustache.render(websocketsTemplate, patternlab);
297297

config.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"patterns" : {
3+
"source" : "./source/_patterns/",
4+
"public" : "./public/patterns/"
5+
},
6+
"ignored-extensions" : ["scss", "DS_Store", "less"],
7+
"ignored-directories" : ["scss"],
8+
"contentSyncPort" : 8002,
9+
"navSyncPort" : 8003,
10+
"debug": false,
11+
"ishControlsVisible": {
12+
"s": true,
13+
"m": true,
14+
"l": true,
15+
"full": true,
16+
"ranndom": true,
17+
"disco": true,
18+
"hay": true,
19+
"mqs": false,
20+
"find": false,
21+
"views-all": true,
22+
"views-annotations": true,
23+
"views-code": true,
24+
"views-new": true,
25+
"tools-all": true,
26+
"tools-follow": false,
27+
"tools-reload": false,
28+
"tools-shortcuts": false,
29+
"tools-docs": true
30+
}
31+
}

config/config.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@
3232
},
3333
"engines": {
3434
"node": ">=0.8"
35-
},
36-
"debug": false
35+
}
3736
}

public/styleguide/assets/icons.dev.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

public/styleguide/assets/icons.eot

-2.23 KB
Binary file not shown.

public/styleguide/assets/icons.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

public/styleguide/assets/icons.ttf

-2.08 KB
Binary file not shown.

public/styleguide/assets/icons.woff

-1.99 KB
Binary file not shown.

0 commit comments

Comments
 (0)