feat: add @vue-lynx-example package support to galleries#20
Merged
Conversation
- 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
✅ Deploy Preview for lynx-go-web ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.