Skip to content
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

Merged
merged 1 commit into from
Sep 15, 2015
Merged

Added load dir util #5

merged 1 commit into from
Sep 15, 2015

Conversation

SwinX
Copy link
Contributor

@SwinX SwinX commented Sep 15, 2015

No description provided.

@SwinX SwinX self-assigned this Sep 15, 2015
@SwinX SwinX added the review label Sep 15, 2015
@SwinX
Copy link
Contributor Author

SwinX commented Sep 15, 2015

/cc @blond

return filename.split('.').slice(1).join('.');
}

module.exports = loadDirSync;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай сделаем exports.loadDirSync = loadDirSync; чтобы можно было расширять при необходимости.

@blond
Copy link
Member

blond commented Sep 15, 2015

Как насчёт покрыть код тестами?

return files;
};

function filterFiles(filenames) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Надо объяснить зачем мы игнорируем файлы, имена которых начинаются с точки.

Предположу, что для того, чтобы .bem директории не попадали в результат.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Скрытые файлы же с точки начинаются. Плюс разве не попадают в общий список . и .. ?

@SwinX
Copy link
Contributor Author

SwinX commented Sep 15, 2015

🆙

1 similar comment
@SwinX
Copy link
Contributor Author

SwinX commented Sep 15, 2015

🆙

@blond
Copy link
Member

blond commented Sep 15, 2015

🆗

SwinX added a commit that referenced this pull request Sep 15, 2015
@SwinX SwinX merged commit ce2bf6d into master Sep 15, 2015
@SwinX SwinX removed the review label Sep 15, 2015
@SwinX SwinX deleted the fileListUtil branch September 15, 2015 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants