ever-co / ever-demand

Ever® Demand™ - Open Commerce Platform - https://everdemand.co
https://everdemand.co
GNU Affero General Public License v3.0
1.71k stars 458 forks source link

refactor: use two different folders to separate the apps and packages #1459

Open Neosoulink opened 2 years ago

Neosoulink commented 2 years ago

Suggestion for structure improvement

It will really be intersecting to move the current applications in the packages folder to a dedicated folder (apps for example).

The mono-repo will devoid more conventional and practical to use, to separate the two logics

Something like that:

...
├── apps // Contains the applications of the Platform (which can use packages as dependencies)
|   ...
│   ├── shop-mobile-ionic
│   └── shop-web-angular
├── packages // Contains the packages of the mono-repo (which can be used as dependencies)
|   ... 
│   ├── common
│   └── core
...
evereq commented 2 years ago

Yes, so we have already the same structure in the Gauzy - https://github.com/ever-co/ever-gauzy and it's really cool. Last time it looks like @vercel/turborepo got a lot of traction as it's very fast and it seems also to support well such structures - https://github.com/vercel/turborepo/tree/main/examples/kitchen-sink (for Gauzy we use Nx with Lerna at the moment)

Neosoulink commented 2 years ago

Amazing 🤩!

It probably will require some modifications (and some cup of coffee). But it seems to me to be a good option to use, to change the project architecture and may also migrate to @vercel/turborepo

It may take time, but it will be a big boost ⚡