NativeScript / NativeScript/nx

[feature suggestion]: Build for Web and Mobile

Open
#40 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
68
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the plugin's nx serve entry point and how it currently invokes tns. Define the scope for serving regular web apps versus NativeScript apps and for generating paired .tns and web files, then verify the agreed behavior with appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system, cli, mobile, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.