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

Commit 24108be

Browse files
committed
Merge branch 'feature-patterndata-refactor' into dev
2 parents 219e7d5 + b0ae375 commit 24108be

File tree

173 files changed

+20257
-1676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+20257
-1676
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
}
99
},
1010
"require": {
11-
"alchemy/zippy": "0.2.0"
11+
"alchemy/zippy": "0.2.0",
12+
"michelf/php-markdown": "1.4",
13+
"symfony/yaml": "2.4.4",
14+
"scan/kss-php": "v0.6.0"
1215
}
1316
}

composer.lock

Lines changed: 196 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/builder.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
// run commands
7878

7979
// load Pattern Lab's config, if first time set-up move files appropriately too
80-
$configurer = new PatternLab\Configurer;
81-
$config = $configurer->getConfig();
80+
PatternLab\Config::loadOptions();
8281

8382
// set-up required vars
8483
$enableCSS = $console->findCommandOption("c|enablecss");
@@ -89,7 +88,7 @@
8988
if (($command == "g") || ($command == "b")) {
9089

9190
// load the generator
92-
$g = new PatternLab\Generator($config);
91+
$g = new PatternLab\Generator();
9392
$g->generate($enableCSS,$moveStatic,$noCacheBuster);
9493
$g->printSaying();
9594

@@ -99,31 +98,31 @@
9998
$enableCSS = false;
10099

101100
// load the generator
102-
$g = new PatternLab\Generator($config);
101+
$g = new PatternLab\Generator();
103102
$g->generate($enableCSS,$moveStatic,$noCacheBuster);
104103

105104
// load the watcher
106-
$w = new PatternLab\Watcher($config);
105+
$w = new PatternLab\Watcher();
107106
$w->watch($autoReload,$moveStatic,$noCacheBuster);
108107

109108
} else if ($command == "s") {
110109

111110
// run the snapshot command
112111
$snapshotDir = $console->findCommandOptionValue("d|dir");
113-
$s = new PatternLab\Snapshot($config);
112+
$s = new PatternLab\Snapshot();
114113
$s->takeSnapshot($snapshotDir);
115114

116115
} else if ($command == "f") {
117116

118117
// run the snapshot command
119118
$starterKit = $console->findCommandValue("f|fetch");
120-
$sk = new PatternLab\StarterKit($config);
119+
$sk = new PatternLab\StarterKit();
121120
$sk->fetch($starterKit);
122121

123122
} else if ($command == "v") {
124123

125124
// write out the version number
126-
print "You're running v".$config["v"]." of the PHP version of Pattern Lab.\n";
125+
print "You're running v".PatternLab\Config::$options["v"]." of the PHP version of Pattern Lab.\n";
127126
exit;
128127

129128
}

core/config/config.ini.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ styleGuideExcludes = ""
4343
cacheBusterOn = "true"
4444

4545
// the pattern rending engine
46-
patternEngine = "mustache"
46+
patternExtension = "mustache"
4747

4848
// the public directory
4949
publicDir = "public"

0 commit comments

Comments
 (0)