"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const lib_1 = require("../../lib");
const angular_utility_1 = require("../../lib/angular-utility");
function default_1(_options) {
    return (tree, _context) => {
        let project = lib_1.loadProject(tree, _context);
        let filename = _options.filename || 'README.md';
        return angular_utility_1.applyWithOverwriteRule(schematics_1.url('files'), [
            schematics_1.template(Object.assign({ filename }, project.toTemplate()))
        ], {
            overwrite: _options.overwrite,
            format: true
        });
    };
}
exports.default = default_1;
//# sourceMappingURL=index.js.map