(options: ModuleOptions, modulePath: string)
| 128 | } |
| 129 | |
| 130 | function buildRoute(options: ModuleOptions, modulePath: string) { |
| 131 | const relativeModulePath = buildRelativeModulePath(options, modulePath); |
| 132 | const moduleName = `${strings.classify(options.name)}Module`; |
| 133 | const loadChildren = `() => import('${relativeModulePath}').then(m => m.${moduleName})`; |
| 134 | |
| 135 | return `{ path: '${options.route}', loadChildren: ${loadChildren} }`; |
| 136 | } |
| 137 | |
| 138 | const moduleSchematic: RuleFactory<ModuleOptions> = createProjectSchematic( |
| 139 | async (options, { tree }) => { |
no test coverage detected