cawa-93 / vite-electron-builder

Secure boilerplate for Electron app based on Vite. TypeScript + Vue/React/Angular/Svelte/Vanilla
MIT License
2.24k stars 250 forks source link

a small suggestion #999

Open zhaotoday opened 1 month ago

zhaotoday commented 1 month ago

Is your feature request related to a problem? Please describe. Here's a small suggestion: Can we place a 'shared' directory in the 'packages' directory to store common code, which can be used by 'main', 'preload', and 'renderer' simultaneously?

cawa-93 commented 1 month ago

May you provide a good use case for that shared example?

baruchiro commented 1 month ago

I have a different use case.

I have my core functionality, which I want to produce as an Electron app, but also as a CLI app and as a package.

To achieve that in the right way, I want to put my logic in a package, and then consume it in my main and cli packages.