(host: Tree, modulePath: string)
| 57 | const supportedCssExtensions = ['css', 'scss', 'less']; |
| 58 | |
| 59 | function readIntoSourceFile(host: Tree, modulePath: string) { |
| 60 | const text = host.read(modulePath); |
| 61 | if (text === null) { |
| 62 | throw new SchematicsException(`File ${modulePath} does not exist.`); |
| 63 | } |
| 64 | |
| 65 | return ts.createSourceFile(modulePath, text.toString('utf-8'), ts.ScriptTarget.Latest, true); |
| 66 | } |
| 67 | |
| 68 | function addDeclarationToNgModule(options: ComponentOptions): Rule { |
| 69 | return (host: Tree) => { |
no test coverage detected