Add Vite-based samples browser with simplified build process#1077
Add Vite-based samples browser with simplified build process#1077
Conversation
Co-authored-by: ChronosSF <2188411+ChronosSF@users.noreply.github.com>
Co-authored-by: ChronosSF <2188411+ChronosSF@users.noreply.github.com>
Co-authored-by: ChronosSF <2188411+ChronosSF@users.noreply.github.com>
- Moved build pipeline to vite-rolldown for faster builds. - Updated copy-samples script to use fs/promises and improved error handling. - Minor cleanups in main.ts for better readability.
|
@HUSSAR-mtrela , we are planning to retire the webpack build and replace with vite and rolldown. The app itself is entirely vibe-coded and can probably look better in terms of code cleanliness but it seems to work okay and we'll continue testing it . It also follows the structure of the old SB pretty closely. I think I will however merge it after making it completely replace the old SB (instead of as an addition). Was wondering if you can think of any concerns you might have with this change and based on the code changes. The app is also available on staging under : https://staging.infragistics.com/webcomponents-demos-new/samples |
|
@ChronosSF thanks for notifying me and we will review it ad let you know if we find anything to change. |
Implements a new samples browser using Vite in
browser-vite/, eliminating Gulp dependency and simplifying the build pipeline.Implementation
Copy Process
scripts/copy-samples.js) replaces Gulp tasks/samplesforpackage.jsonfiles to identify 936 samplesindex.htmlBrowser Architecture
/) and direct sample URLs (/charts/category-chart/overview)Sample Compatibility
<div id="root">to</body>src/directoriesStructure
Usage
Screenshots
Navigation interface with collapsible categories:
Sample categories expanded:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.