* Reads the contents of the root directory and recursively copies the contents of each folder, unless they are excluded.
()
| 72 | * Reads the contents of the root directory and recursively copies the contents of each folder, unless they are excluded. |
| 73 | */ |
| 74 | function processDirectories() { |
| 75 | const directories = fs.readdirSync("."); |
| 76 | const nonHiddenDirectories = directories.filter((directory) => !directory.startsWith(".")); |
| 77 | |
| 78 | for (const directory of nonHiddenDirectories) { |
| 79 | if (fs.statSync(directory).isDirectory() && !rootExclude.includes(directory)) { |
| 80 | const dirPath = path.join("dist", directory); |
| 81 | console.log(dirPath); |
| 82 | fs.mkdirSync(dirPath); |
| 83 | copyFolderRecursiveSync(directory, path.join("dist", directory)); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Creates a dist directory, copies `table.html` from `webdriver-ts` and `index.html` into it, |
no test coverage detected