The Schematics CLI uses the following command pattern for executing schematics:
schematics <directory>:<schematic> [options]
schematics blank --name=hello-world
cd hello-world
tree.create()
hello-world.html
return (tree: Tree, _context: SchematicContext) => { return tree.create('foo.html', '<h1>Hello World!</h1>'); };
npm run build
schematics .:hello-world --dry-run=false
You should have a file names foo.html in the root directory with the contents <h1>hello</h1>
<h1>hello</h1>
There was an error while loading. Please reload this page.