@onlook/storybook-plugin 0.4.0-beta.3 → 0.4.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -542,10 +542,22 @@ function createAutoStoryPlugin(options) {
|
|
|
542
542
|
const projectRootDir = (options.projectRoot ?? process.cwd()).replace(/\\/g, "/");
|
|
543
543
|
const batchSize = options.batchSize ?? DEFAULT_BATCH_SIZE;
|
|
544
544
|
const concurrency = options.concurrency ?? DEFAULT_CONCURRENCY;
|
|
545
|
+
console.log("[ASG] Plugin created", {
|
|
546
|
+
preset: options.preset,
|
|
547
|
+
imports: options.imports,
|
|
548
|
+
isGenerateStoriesFileAtBuild: options.isGenerateStoriesFileAtBuild,
|
|
549
|
+
storiesFolder: options.storiesFolder,
|
|
550
|
+
projectRoot: projectRootDir,
|
|
551
|
+
cwd: process.cwd()
|
|
552
|
+
});
|
|
545
553
|
return {
|
|
546
554
|
name: PLUGIN_NAME,
|
|
547
555
|
async buildStart() {
|
|
548
|
-
|
|
556
|
+
console.log("[ASG] buildStart hook fired");
|
|
557
|
+
if (!options.isGenerateStoriesFileAtBuild) {
|
|
558
|
+
console.log("[ASG] Skipping \u2014 isGenerateStoriesFileAtBuild is false");
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
549
561
|
const patterns = options.imports ?? ["src/**/*.tsx"];
|
|
550
562
|
const ignorePatterns = options.ignores ?? [];
|
|
551
563
|
console.log(`[ASG] Scanning for components: ${patterns.join(", ")}`);
|