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

ignoreFiles/includeFiles accepting Regex #91

Merged
merged 3 commits into from
Jun 16, 2021

Conversation

mellis481
Copy link
Contributor

No description provided.

Copy link
Owner

@RadValentin RadValentin left a comment

Choose a reason for hiding this comment

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

Looks good overall, left some comments with changes that need to be done before we can merge it. Also, please remove the changes that this PR makes to package-lock.json, looks like they're an artifact of your dev environment.

index.js Outdated
@@ -53,6 +53,26 @@ module.exports = function postcssPrefixSelector(options) {
};
};

function ignoreFile(file, ignoreArr) {
Copy link
Owner

Choose a reason for hiding this comment

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

I'd like to change the name of this function to be more descriptive of what it does, ex: isFileIgnored

index.js Outdated
});
}

function includeFile(file, includeArr) {
Copy link
Owner

Choose a reason for hiding this comment

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

Same as above, please make the name more descriptive, like isFileIncluded

Copy link
Owner

Choose a reason for hiding this comment

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

Also, both these functions do basically the same thing. Can you merge them into one and give it a descriptive name?

@RadValentin
Copy link
Owner

Hey @mellis481, I reviewed this PR and it looks good, just needs a few more tweaks. Do you think you'll have time to address the comments in the near future? Let me know, thanks!

Copy link
Owner

@RadValentin RadValentin left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks for contributing!

@RadValentin RadValentin merged commit 76b3714 into RadValentin:master Jun 16, 2021
@mellis481
Copy link
Contributor Author

Looks good now, thanks for contributing!

Thanks for creating an awesome library!

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