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

Creating FilePathsArray class that extends array and offers filtering functionality #467

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

carakessler
Copy link
Collaborator

Many of the tasks were taking the paths string[] from TaskContext and using micromatch to filter by globs. Now, the paths object in TaskContext is of type FilePaths which extends array and adds function filterByGlob, to make it easier for task authors to filter the file paths array. This obscures the implementation detail of using micromatch to authors.

@carakessler carakessler requested a review from scalvert June 1, 2020 19:15
@scalvert scalvert changed the title Creating FilePaths class that extends array and offers filtering functionality Creating FilePathsArray class that extends array and offers filtering functionality Jun 1, 2020
…tionality

Many of the tasks were taking the paths string[] from TaskContext and using micromatch to filter by globs. Now, the paths object in TaskContext is of type FilePaths which extends array and adds function filterByGlob, to make it easier for task authors to filter the file paths array. This obscures the implementation detail of using micromatch to authors.
@carakessler carakessler merged commit 63a4aa3 into master Jun 2, 2020
@carakessler carakessler deleted the pathsarray branch June 2, 2020 00:06
@scalvert scalvert added the internal Internal infrastructure work label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal infrastructure work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants