nx-console-idea-plugin icon indicating copy to clipboard operation
nx-console-idea-plugin copied to clipboard

Nx Generate (Ui): use current folder

Open nidomiro opened this issue 4 years ago • 1 comments

If I start the Nx Generate (Ui) [@nrwl/nest:service] from a subfolder in my app, eg. app/user-backend/src/app/user the files are generated to app/user-backend/src/<name>/<name>.service(.spec).ts.

Is it possible to autofill the directory field according the the context from which the Nx Generate (Ui) was started? In this case app/user would be the right value with flat checked.

nidomiro avatar Jan 01 '21 19:01 nidomiro

I auto fill path and project fields according to the context from which the Nx Generate (Ui)

Screenshot 2021-01-01 at 22 46 07

it's the same behaviour that we have for the vscode extension.

Screenshot 2021-01-01 at 22 48 14

Do you have an empty path? why the app/user is the right value and not apps/api/src/app/user?

iguissouma avatar Jan 01 '21 21:01 iguissouma