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