Recursive directory walker for Angular/TypeScript projects. Filters source files, extracts inline templates, and loads external templates.
- Source
Methods
(inner) collectFiles(dir, excludedFoldersopt) → {Promise.<Array.<string>>}
Collects all .ts/.html files recursively, excluding test files
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dir | string | ||
excludedFolders | Array.<string> | <optional> |
- Source
Returns:
- Type:
- Promise.<Array.<string>>
(inner) getFileContent(filePath, processedTemplates, verboseopt) → {FileContent|null}
Extracts template and TypeScript content from a file
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
filePath | string | |||
processedTemplates | Set.<string> | Tracks processed templates to avoid duplicates | ||
verbose | boolean | <optional> | false |
- Source
Returns:
- Type:
- FileContent |
null