@yrnd1/

ZealousAdorableSpof

ES6

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.35895249840121024","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"aW1wb3J0ICJAYW5ndWxhci1kZXZraXQvY29yZSIKaW1wb3J0IHtUcmVlfSBmcm9tICdAYW5ndWxhci1kZXZraXQvc2NoZW1hdGljcyc7CgpmdW5jdGlvbiBNeVNjaGVtYXRpYyhvcHRpb25zKSB7CiAgcmV0dXJuICh0cmVlKSA9PiB7CiAgICB0cmVlLmNyZWF0ZShvcHRpb25zLnBhdGggKyAnL2hpJywgJ0hlbGxvIHdvcmxkIScpOwogICAgcmV0dXJuIHRyZWU7CiAgfTsKfQoKTXlTY2hlbWF0aWMoe3BhdGg6ICcvJ30p"},"asBuffer":null},"loaded":true}}
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