"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const angular_utility_1 = require("../../lib/angular-utility");
const lib_1 = require("../../lib");
function default_1(_options) {
    return schematics_1.chain([
        (tree, _context) => {
            const sourceTemplates = schematics_1.url('files');
            const { path, name } = lib_1.getAngularProjectPath('app-theme', tree, _options);
            const project = lib_1.loadProject(tree, _context);
            return angular_utility_1.applyWithOverwriteRule(sourceTemplates, [
                schematics_1.template(Object.assign({ name }, project.toTemplate())),
                schematics_1.move(path)
            ], {
                overwrite: _options.overwrite,
                format: true
            });
        },
        false ? (tree, _context) => {
            const route = {
                path: 'connect',
                loadChildren: './pages/tap-connect/tap-connect-page.module#TapConnectPageModule'
            };
            return lib_1.addRouteInConfig(route, tree);
        } : schematics_1.noop(),
        false ? schematics_1.schematic('update-routing', { name: 'app' }) : schematics_1.noop()
    ]);
}
exports.default = default_1;
//# sourceMappingURL=index.js.map