-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added load dir util #5
Conversation
/cc @blond |
return filename.split('.').slice(1).join('.'); | ||
} | ||
|
||
module.exports = loadDirSync; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай сделаем exports.loadDirSync = loadDirSync;
чтобы можно было расширять при необходимости.
Как насчёт покрыть код тестами? |
return files; | ||
}; | ||
|
||
function filterFiles(filenames) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо объяснить зачем мы игнорируем файлы, имена которых начинаются с точки.
Предположу, что для того, чтобы .bem
директории не попадали в результат.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Скрытые файлы же с точки начинаются. Плюс разве не попадают в общий список .
и ..
?
🆙 |
1 similar comment
🆙 |
🆗 |
No description provided.