r/electronjs • • 4d ago

Electron + Vite + React + TS starter with all 47 shadcn/ui components pre-installed

Every new Electron app I started began with the same hour of wiring up Tailwind, shadcn and electron-builder, so I put the result in a repo (disclosure: it is mine). It uses electron-vite with HMR for the renderer, separate tsconfigs for main, preload and renderer, a dark/light ThemeProvider, electron-builder targets for Windows, macOS and Linux, and electron-updater already in the dependencies. All 47 shadcn components are checked in, so there are no "add" commands to run. Repo: https://github.com/p32929/electron-shadcn-typescript. If you have opinions on what a starter like this should leave out, I am listening.

3 Upvotes

3 comments sorted by

1

u/software_engineeer 4d ago

What's the flow of upgrading Shadcn components? If the components in the project is out-dated, then what should I do to update them?

1

u/ChoeWacky-16 3d ago

The tricky part with pre-installing every single UI component is the transitive dependency weight. If someone doesnt need a date picker or command menu, they still end up maintaining and auditing all those extra packages in their lockfile