openpencil/packages/docs
Marc Went 8c72b62da0
feat(cli): export Storybook stories beside many documents (#761)
* feat(cli): export Storybook stories beside many documents

Accept several documents, or a quoted glob such as 'src/**/*.pen', and add --beside to write each document's stories, design images, and manifest into the document's own folder, next to the component's code. Documents export one after another, since documents in one folder share its manifest; a failed document is reported and the rest still export. --watch covers every matched document through one queue. Several documents need --beside or --output, and --page takes a single document.

Refs #727

* fix(cli): resolve Storybook export documents by existence, not glob syntax

Deciding between a path and a pattern by looking for glob characters missed
extglobs, so 'src/+(a|b).pen' was opened as a literal filename, and it flagged
an escaped star, so a file genuinely named that way went to the matcher. The
character list also could not agree with Node's matcher: is-glob rejects a
bare '?', picomatch accepts a parenthesised directory name.

An existing path is now that file, and everything else goes to glob(), which
matches a plain path to itself and expands every pattern it supports.

---------

Co-authored-by: Danila Poyarkov <dev@dannote.net>
2026-09-30 22:05:51 +04:00
..
.vitepress docs: remove GitHub Discussions link from docs header 2026-09-18 23:58:37 +03:00
de feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
development test(core): move the editor suite into the package (#792) 2026-09-30 10:22:42 +04:00
es feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
fr feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
it feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
overview fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
pl feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
programmable feat(cli): export Storybook stories beside many documents (#761) 2026-09-30 22:05:51 +04:00
public feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00
reference feat(cli): export Storybook stories beside many documents (#761) 2026-09-30 22:05:51 +04:00
ru feat(figma-api): add detachInstance() to instances (#778) 2026-09-30 05:19:11 +04:00
user-guide docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
AGENTS.md build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md
package.json build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00