I am in the process of creating a basic angular schematic template by following a step-by-step guide that I found on a website. So far, everything is going smoothly. The tutorial mentions the use of a helper function called dasherize
to convert file names from AwesomeWrap
to hello-awesome-wrap
.
hello-__name@dasherize__
However, in my own implementation, I want to modify this functionality so that file names are simply converted to lowercase, meaning AwesomeWrap
should become awesomewrap
.
Unfortunately, I have not been able to find clear documentation on how to achieve this or a list of available functions for such transformations. Initially, I attempted using a file named view-__name@lowercase__.ts
, but it seems that the function lowercase
is not recognized.
After executing schematics .:sensor --name=test
, an error message stating:
Error: Pipe "lowercase" is not defined.
Now my question is, what is the correct syntax for accomplishing this task? Is there a comprehensive list of transforms that can be applied in a similar manner?