0

I am working on Angular Schematics.

I have created a project, where I am able to scaffold components, modules, services etc.

But, whatever files are created by schematics has to be pre-existing. For example, If I wish to create a component, there should be a file with below content.

    export class <%= classify(name) %>ContainerComponent{

}

What I need to do is, I want to be able to create such files dynamically, may be in factory function(which is entry point to schematics codes)

function entity(options: any): Rule {}

I am not sure if it is doable, if anyone can provide or lead to some info, that would be great.

Thanks.

Dheeraj Kumar
  • 3,917
  • 8
  • 43
  • 80

0 Answers0