ng-matero
Version:
Angular Material admin template
22 lines (20 loc) • 617 B
text/typescript
import { chain, Rule } from '@angular-devkit/schematics';
import { buildComponent } from '../../utils';
import { Schema } from './schema';
/**
* Scaffolds a new navigation component.
* Internally it bootstraps the base component schematic
*/
export default function (options: Schema): Rule {
return chain([
buildComponent(
{ ...options },
{
template:
'./__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template',
stylesheet:
'./__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template',
}
),
]);
}