We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
patternlab-data.js
patternlab-data.json
1 parent 46ae845 commit 009399cCopy full SHA for 009399c
src/PatternLab/Builder.php
@@ -211,6 +211,16 @@ protected function generateIndex() {
211
212
// write out the data
213
file_put_contents($dataDir."/patternlab-data.js",$output);
214
+ // Structuring all the same data that went into `patternlab-data.js` and putting it into `patternlab-data.json` too
215
+ $allPlData = array(
216
+ 'config' => $config,
217
+ 'ishControls' => $ishControls,
218
+ 'navItems' => $navItems,
219
+ 'patternPaths' => $patternPaths,
220
+ 'viewAllPaths' => $viewAllPaths,
221
+ 'plugins' => $packagesInfo,
222
+ );
223
+ file_put_contents($dataDir."/patternlab-data.json", json_encode($allPlData));
224
225
// note the end of the operation
226
$dispatcherInstance->dispatch("builder.generateIndexEnd");
0 commit comments