Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b3b4809

Browse files
committed
Merge branch 'dev'
2 parents 0c528fb + 36ba197 commit b3b4809

40 files changed

+2410
-471
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ public/*
33
!public/listeners/*
44
!public/styleguide/*
55
!public/patterns/**/*
6+
!public/data/*.js
67
config.ini
78
latest-change.txt
8-
/public/styleguide/js/styleguide-ck.js
9-
/public/listeners/synclisteners-ck.js
10-
/public/styleguide/js/data-saver-ck.js
11-
/public/styleguide/js/url-handler-ck.js
9+
*-ck.js

CHANGELOG

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

3+
PL-v0.6.0
4+
- ADD: a UI list of the current media query widths from the CSS
5+
- ADD: a pattern's "lineage" now displays in the UI under code view
6+
- ADD: annotations can be added to DOM elements of patterns
7+
- ADD: separate annotation views on the list view and pattern details views
8+
- ADD: generate() now "cleans" public/ before generating the site by deleting most everything
9+
- ADD: added support for the css rule saver library
10+
- ADD: can use a flag to generate the specific CSS that is used in a pattern. shows on code view when available.
11+
- ADD: mark-up for a pattern is now included in the UI under code view
12+
- FIX: can open the "raw" version of a pattern in a new window
13+
- FIX: frame resizing bar properly supports decimals
14+
- FIX: the checkboxes for the websocket-based features, page follow & auto-reload, now work
15+
- FIX: postmessage calls now centralized and refactored
16+
- FIX: units appear in the toolbar when using Hay! mode
17+
- FIX: patterns shouldn't be cached
18+
- THX: thanks to @benedfit for the MQ idea which he originally named "phases"
19+
- THX: thanks to @alienlebarge for the "clean public/" idea
20+
321
PL-v0.3.6
422
- FIX: added a delay to the watcher so the CPU doesn't get maxed
523
- THX: thanks to martin berglund for the heads up

builder/builder.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/*!
4-
* Pattern Lab Builder CLI - v0.3.6
4+
* Pattern Lab Builder CLI - v0.6.0
55
*
66
* Copyright (c) 2013 Dave Olsen, http://dmolsen.com
77
* Licensed under the MIT license
@@ -10,6 +10,7 @@
1010
*
1111
* php builder.php -g
1212
* Iterates over the 'source' directories & files and generates the entire site a single time.
13+
* It also cleans the 'public' directory.
1314
*
1415
* php builder.php -w
1516
* Generates the site like the -g flag and then watches for changes in the 'source' directories &
@@ -26,21 +27,27 @@
2627
require __DIR__."/lib/Mustache/Autoloader.php";
2728
Mustache_Autoloader::register();
2829

30+
// load css rule saver
31+
require __DIR__."/lib/css-rule-saver/css-rule-saver.php";
32+
2933
// make sure this script is being accessed from the command line
3034
if (php_sapi_name() == 'cli') {
3135

32-
$args = getopt("gw");
36+
$args = getopt("gwc");
3337

3438
if (isset($args["g"])) {
3539

3640
// initiate the g (generate) switch
3741

3842
// iterate over the source directory and generate the site
3943
$g = new Generatr();
40-
$g->generate();
44+
45+
// check to see if CSS for patterns should be parsed & outputted
46+
(isset($args["c"])) ? $g->generate(true) : $g->generate();
47+
4148
print "your site has been generated...\n";
4249

43-
} elseif (isset($args["w"])) {
50+
} else if (isset($args["w"])) {
4451

4552
// initiate the w (watch) switch
4653

@@ -60,7 +67,8 @@
6067
print "\n";
6168
print "Usage:\n\n";
6269
print " php ".$_SERVER["PHP_SELF"]." -g\n";
63-
print " Iterates over the 'source' directories & files and generates the entire site a single time.\n\n";
70+
print " Iterates over the 'source' directories & files and generates the entire site a single time.\n";
71+
print " It also cleans the 'public' directory.\n\n";
6472
print " php ".$_SERVER["PHP_SELF"]." -w\n";
6573
print " Generates the site like the -g flag and then watches for changes in the 'source' directories &\n";
6674
print " files. Will re-generate files if they've changed.\n\n";

0 commit comments

Comments
 (0)