mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 17:35:57 +00:00
e85863b65f
* chore: docs
21 lines
511 B
JavaScript
21 lines
511 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
function* readAllFiles(dir) {
|
|
const files = fs.readdirSync(dir, { withFileTypes: true });
|
|
|
|
for (const file of files) {
|
|
if (file.isDirectory()) {
|
|
yield* readAllFiles(path.join(dir, file.name));
|
|
} else {
|
|
yield path.join(dir, file.name);
|
|
}
|
|
}
|
|
}
|
|
|
|
console.log(
|
|
Array.from(
|
|
readAllFiles(path.join(__dirname, '..', 'dockview-core', 'src'))
|
|
).filter((file) => file.endsWith('.scss'))
|
|
);
|