I have read this explanation from the official angular blog https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2
Schematics is a workflow tool for the modern web; it can apply transforms to your project, such as create a new component, or updating your code to fix breaking changes in a dependency. Or maybe you want to add a new configuration option or framework to an existing project.
and I even followed the example in the blog of how to generate a new schematic
npm install -g @angular-devkit/schematics-cli
schematics blank --name=my-component
after which I opened the my-component folder. This is where my confusion starts... The generated files could be generated by
ng new
the only difference being the above command will produce more files than the schematics one. From the description: the creating of new components and updating your code done by schematic but this can be done by the angular CLI by using "ng new"
- So what is the advantage of using schematics as opposed to just using the angular CLI?(please compare to help in understanding better what schematics are)
- and can one achieve what schematics are doing by just using ng new?
- What are the unique applications of schematics that can only be achieved by using schematics? .....(Thank you in advance:)