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

multiple glob patterns #287

Merged
merged 8 commits into from
Jan 9, 2020
Merged

multiple glob patterns #287

merged 8 commits into from
Jan 9, 2020

Conversation

ericsciple
Copy link
Contributor

@ericsciple ericsciple commented Jan 6, 2020

This change enables multiple patterns

import {MatchKind} from './internal-match-kind'
import {Pattern} from './internal-pattern'

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

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this moved

/**
* Used to match files and directories
*/
export interface Globber {
Copy link
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

packages/glob/src/glob.ts Outdated Show resolved Hide resolved

/**
* Returns files and directories matching the specified glob pattern.
* Constructs a globber
Copy link
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
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