bit-angular icon indicating copy to clipboard operation
bit-angular copied to clipboard

support for "prefix" when generating angular modules

Open MauricioMCosta opened this issue 3 years ago • 0 comments

The current state of generation of components doesn't care about prefixes. If you specify for example a component with name my-label it will generate files my-label.component.[scss,ts] along with composition, module and spec.

my request is to add support for a parameter --prefix or any override in workspace.jsonc for the angular aspect, letting the specification of a custom prefix.

so issuing the command: bit create ng-module label -e teambit.angular/angular --prefix=my will generate the set of files named label.[component|composition|docs|module...].[ts|scss]; keeping the generated class be the standard LabelComponent, but the selector in label.component.ts will be my-label;

any other references to this component in other files to be

MauricioMCosta avatar Apr 21 '22 00:04 MauricioMCosta