Skip to content

feat: add @vue-lynx-example package support to galleries#20

Merged
Huxpro merged 3 commits intomainfrom
Huxpro/bucharest
Mar 17, 2026
Merged

feat: add @vue-lynx-example package support to galleries#20
Huxpro merged 3 commits intomainfrom
Huxpro/bucharest

Conversation

@Huxpro
Copy link
Copy Markdown
Member

@Huxpro Huxpro commented Mar 17, 2026

Extends the example auto-discovery system to fetch and display @vue-lynx-example packages from npm alongside @lynx-example packages. Vue examples are prefixed with 'vue-' for UI distinction and tracked with their own vueLynxVersion metadata field.

Changes include: refactored prepare-examples scripts to support multiple scopes with configurable prefixes and framework dependencies, added Vue-specific file detection in SSG preview generation, and added vueLynxVersion tag display with Vue brand color styling (#42b883).

The implementation mirrors the existing React example pattern and uses a knownPackages fallback list to handle npm search API limitations with new scoped packages.

- Extend prepare-examples scripts to auto-discover and fetch @vue-lynx-example packages
- Prefix vue examples with "vue-" to distinguish them from react (vue-basic, vue-gallery, etc)
- Add vueLynxVersion metadata tag display alongside reactLynxVersion
- Add .example-tag-vue CSS styling using Vue's brand colors
- Handle Vue examples' default file (src/App.vue) in rsbuild SSG previews
- Maintain fallback knownPackages list for npm search API limitations
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 17, 2026

Deploy Preview for lynx-go-web ready!

Name Link
🔨 Latest commit 3fd3dc0
🔍 Latest deploy log https://app.netlify.com/projects/lynx-go-web/deploys/69b932b5fa5b4500086f96ba
😎 Deploy Preview https://deploy-preview-20--lynx-go-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Huxpro added 2 commits March 17, 2026 06:28
Vue examples use src/App.vue (not .tsx) and their multi-entry bundles
may use kebab-case names that differ from PascalCase source directories.
Add findEntrySourceDir() to match bundle names to actual source dirs.
toKebab was splitting "AutoScroll" into "auto-scroll" but entry keys
may use "autoscroll" (no split). Normalize by stripping hyphens and
lowercasing both sides instead.
@Huxpro Huxpro merged commit cecc9a0 into main Mar 17, 2026
7 checks passed
@Dugyu Dugyu deleted the Huxpro/bucharest branch April 16, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant