Angular extension for Yellicode
The extension is intended as an alternative for the Angular CLI and provides a starting point for your own Angular (2+) application code generator, which you can extend to your needs.
Yellicode lets you build your own code generation templates with TypeScript. It consists of a Node.js CLI and extensible APIs, making it easy for developers to create, share and re-use code generators for their favorite programming languages and frameworks.
Check out our website for more.
Using the Angular package
In order to run a code generation template, you must have the Yellicode CLI installed globally (
npm install -g @yellicode/cli) and have a valid codegenconfig.json file in your working directory. Please refer to the installation instructions and the quick start for more.
Open a terminal/command prompt in your working directory and install this package as a dev dependency:
npm install @yellicode/angular --save-dev
The following sample generates a simple Angular component file named my-component. For simplicity, the component name in this example is static.
For a more sophisticated example, check out the article Build your own Angular code generator.