"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const lib_1 = require("../../lib");
function default_1(_options) {
    return (tree, options) => {
        let project = lib_1.loadProject(tree, options);
        let schematics = [];
        schematics = project.appConfigBuilder.pageList.map((page) => {
            return schematics_1.schematic('page', {
                type: page.type,
                overwrite: true
            });
        });
        return schematics_1.chain(schematics);
    };
}
exports.default = default_1;
//# sourceMappingURL=index.js.map