teambit / bit-angular

Angular support for bit harmony
28 stars 3 forks source link

support for "prefix" when generating angular modules #42

Open MauricioMCosta opened 2 years ago

MauricioMCosta commented 2 years ago

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