Skip to content

multiple glob patterns#287

Merged
ericsciple merged 8 commits intomasterfrom
users/ericsciple/m164glob
Jan 9, 2020
Merged

multiple glob patterns#287
ericsciple merged 8 commits intomasterfrom
users/ericsciple/m164glob

Conversation

@ericsciple
Copy link
Copy Markdown
Contributor

@ericsciple ericsciple commented Jan 6, 2020

This change enables multiple patterns

Comment thread packages/glob/src/internal-pattern-helper.ts Outdated

const IS_WINDOWS = process.platform === 'win32'

/**
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this moved

Comment thread packages/glob/src/internal-globber.ts Outdated
/**
* Used to match files and directories
*/
export interface Globber {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the new interface for getting search paths and globbing for files

Comment thread packages/glob/src/internal-glob-options.ts Outdated
Comment thread packages/glob/src/internal-glob-options-helper.ts
Comment thread packages/glob/src/glob.ts Outdated
Comment thread packages/glob/src/glob.ts

/**
* Returns files and directories matching the specified glob pattern.
* Constructs a globber
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

now this file is only used to export the interfaces (Globber, GlobOptions) and instantiate a globber (create)

everything else moved into internal-globber.ts

@ericsciple ericsciple changed the title parse glob options multiple glob patterns Jan 8, 2020
/**
* Constructs a DefaultGlobber
*/
static async create(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this create function is new, everything else in this file basically moved into this class (was in glob.ts)

@ericsciple ericsciple merged commit 1a2c592 into master Jan 9, 2020
@ericsciple ericsciple deleted the users/ericsciple/m164glob branch January 9, 2020 20:05
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.

3 participants