Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature suggestion]: Build for Web and Mobile #40

Open
YonatanKra opened this issue Sep 26, 2021 · 1 comment
Open

[feature suggestion]: Build for Web and Mobile #40

YonatanKra opened this issue Sep 26, 2021 · 1 comment

Comments

@YonatanKra
Copy link

Currently the plugin is aimed towards mobile only. Its nx serve command is running tns.

This doesn't support architectures like this code sharing.

I know that NS is not just for angular, but this might be super useful in case one chooses an angular NS project.

One idea would be to enable several such features:

  1. Allow to serve regular apps vs NS (e.g. via a flag)
  2. Allow to create duplicate modules/components/etc. files (both .tns and web) like suggested in the article

I haven't made the attempt to make the separation but there should be more features involved in this Epic.

@mahmoudajawad
Copy link
Contributor

As, Nativescript team blogged when this package was announced, the shared project approach had all kind of limitations in additional to making the project structure way more complex that it should be. Nx support was essentially to get away from those issues and implement a monorepo where you can have web and mobile apps access shared logic as lib in the workspace. Have a look at: #20 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants