NativeScript / NativeScript/nx

[Question] Add new flag --no-prefix for @nativescript/nx:lib

Open
#58 1 comment 1 reaction 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

Hi!

Maybe you can add a flag (--no-prefix) for schematics that generate new libraries without the prefix or suffix "nativescript"?

This will allow everyone to create more universal solutions.

For example.
You can create an Nx workspace for web and nativescript application with the following structure:

apps/
-- simple-nativescript
-- simple-web
libs/
-- core 
-- nativescript
---- buttons
---- shared
------ pipes
-- web
---- buttons 
---- shared
------ pipes

There is no need to duplicate prefixes for each of the library. It is enough to do it only on top level.

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 at the @nativescript/nx:lib schematic entry point and inspect how library names receive the "nativescript" prefix or suffix. Add the --no-prefix option so generated libraries can omit that naming, then run the schematic's existing tests or generation checks to verify both default and flag-enabled behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.