@jorgeucanorg/init
Version:
Add scully to your angular app
22 lines • 826 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const tasks_1 = require("@angular-devkit/schematics/tasks");
function default_1(options) {
return (tree, context) => {
return schematics_1.chain([
schematics_1.externalSchematic('@schematics/angular', 'module', {
name: 'blog',
route: 'blog',
routing: true,
module: 'app.module.ts'
}),
// tslint:disable-next-line:no-shadowed-variable
(tree, context) => {
context.addTask(new tasks_1.RunSchematicTask('create-blog', options), []);
},
]);
};
}
exports.default = default_1;
//# sourceMappingURL=index.js.map