NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

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

Open Fafnur opened 2 years ago

Fafnur commented 2 years ago

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.

fpaaske commented 1 year ago

This would be nice for a pure NativeScript project as well. No need to pre-/postfix everything if it's all NativeScript. In that case, there's no need to change the folder structure either.