nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
365 stars 52 forks source link

Feature for specific apps only #305

Open FoHoOV opened 2 years ago

FoHoOV commented 2 years ago

Imagine we have a button that is shared across apps and web/mobile platforms , so we are gonna have a base in 'xplat/libs/features/base/button' and two other files in 'xplat/web/features/button' and 'xplat/ns/features/button' which is fine and can be used in for example a banking app, a streaming app or messaging app etc. But what if we are gonna have a landing page for example 'home-page' which is only specific to our Message-App and Streaming-App? They are gonna have some base that is shared between platforms, sure, but they are only specific for these two apps and shouldn't be available to our banking app. So my guess would be that we have something like 'xplat/lib/Message-Streaming-app/features/...' and extend that in the 'apps/' and 'apps/'. Or what if this is shared between two apps using NativeScript angular and two apps using web angular and these four only. What is the recommended way you have to achieve what I'm going to do? Thanks for your time.

ps: I also would love to see some UPDATED examples of using Xplat to build shared code ns/web using angular. If you could post some links that would be very awesome and help me a lot.