main.js
1
2
3
4
5
6
7
8
9
10
11
import "@angular-devkit/core"
import {Tree} from '@angular-devkit/schematics';

function MySchematic(options) {
  return (tree) => {
    tree.create(options.path + '/hi', 'Hello world!');
    return tree;
  };
}

MySchematic({path: '/'})
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie