Accept globs and lists of files #64

Merged
merged 4 commits into from Jan 10, 2017

Projects

None yet

4 participants

@okonet
Contributor
okonet commented Jan 10, 2017

This PR implements support for glob patterns.

ATM prettier only processes the first file if a list of files is given in arguments.

This will allow running prettier with https://github.com/okonet/lint-staged

Closes #58

@michaelficarra
Contributor

Why did you rename the binary? That's a breaking API change.

@sapegin
Contributor
sapegin commented Jan 10, 2017

@michaelficarra Binary is the same, but editing .js files are easier.

@okonet
Contributor
okonet commented Jan 10, 2017

@michaelficarra I didn't break it. The binary will have the same name when installed with npm.

@michaelficarra
Contributor

Oh, I wasn't aware of that npm behaviour.

@jlongster
Owner

I was wanting it to work this way, thanks!

@jlongster jlongster merged commit 5cb5148 into jlongster:master Jan 10, 2017
@okonet okonet deleted the okonet:accept-globs branch Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment