Guide to custom Angular Schematics

A schematic is a template-based code generator that supports complex logic. It is a set of instructions for transforming a software project by generating or modifying code. Schematics are packaged into collections and installed with npm.

npm install -g @angular-devkit/schematics-cli
schematics blank --name=angular-schematics
"scripts": {
"build": "tsc -p tsconfig.json",
"watch": "tsc -p tsconfig.json --watch",

}
Asking for user input
Calling ng new schematic
Read package.json
Updating package.json
schematics ./new-project/src/collection.json:angular-schematic new-app

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store