"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const core_1 = require("@angular-devkit/core");
const utility_1 = require("../../lib/utility");
const angular_utility_1 = require("../../lib/angular-utility");
const lib_1 = require("../../lib");
function default_1(_options) {
    return schematics_1.chain([
        (tree, _context) => {
            let sourceTemplates = schematics_1.url('files');
            const { path, name } = lib_1.getAngularProjectPath('app-theme', tree, _options);
            return angular_utility_1.applyWithOverwriteRule(sourceTemplates, [
                schematics_1.template(Object.assign({ name }, core_1.strings)),
                schematics_1.move(path)
            ], _options.overwrite);
        },
        false ? (tree, _context) => {
            let route = {
                path: 'connect',
                loadChildren: './pages/tap-connect/tap-connect-page.module#TapConnectPageModule'
            };
            return utility_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