You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console::writeInfo("Please double-check the styleguideKitPath option in <path>./config/config.yml</path>. It should be a path relative to the root of your Pattern Lab project...");
95
95
}
96
+
} else {
97
+
$styleguideKitPathFinal = $styleguideKitPath; // fingers crossed everything is fine
96
98
}
97
99
98
100
return$styleguideKitPathFinal;
@@ -212,6 +214,18 @@ public static function init($baseDir = "", $verbose = true) {
212
214
// handle a pre-2.1.0 styleguideKitPath before saving it
Console::writeError("hrm... i can't seem to find the directory with your source files. are you sure they're at <path>".Console::getHumanReadablePath(self::$options["sourceDir"])."</path>? you can fix this in <path>./config/config.yml</path> by editing sourceDir. sorry, stopping pattern lab... :(");
220
+
}
221
+
if (!is_dir(self::$options["publicDir"])) {
222
+
Console::writeError("hrm... i can't seem to find the directory where you want to write your styleguide. are you sure it's at <path>".Console::getHumanReadablePath(self::$options["sourceDir"])."</path>? you can fix this in <path>./config/config.yml</path> by editing publicDir. sorry, stopping pattern lab... :(");
223
+
}
224
+
if (!is_dir(self::$options["styleguideKitPath"])) {
225
+
Console::writeError("hrm... i can't seem to find the directory where your styleguide files are located. are you sure it's at <path>".Console::getHumanReadablePath(self::$options["styleguideKitPath"])."</path>? you can fix this in <path>./config/config.yml</path> by editing styleguideKitPath. sorry, stopping pattern lab... :(");
226
+
}
227
+
228
+
215
229
// make sure styleguideExcludes is set to an array even if it's empty
216
230
if (is_string(self::$options["styleGuideExcludes"])) {
0 commit comments