Skip to content

Make update to caching information in readme - #968

Merged
bcoe merged 3 commits into
istanbuljs:masterfrom
brokentone:feature/update-readme-caching
Jan 19, 2019
Merged

Make update to caching information in readme#968
bcoe merged 3 commits into
istanbuljs:masterfrom
brokentone:feature/update-readme-caching

Conversation

@brokentone

@brokentone brokentone commented Jan 14, 2019

Copy link
Copy Markdown
Contributor

Since #454, caching has been enabled by default but the README does not reflect this. Our team lost some time following the README, so contributing back our findings for the next team!

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 96.389% when pulling 781579a on brokentone:feature/update-readme-caching into 35710b1 on istanbuljs:master.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 96.389% when pulling 781579a on brokentone:feature/update-readme-caching into 35710b1 on istanbuljs:master.

@coveralls

coveralls commented Jan 14, 2019

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 96.389% when pulling 7ef81b1 on brokentone:feature/update-readme-caching into 35710b1 on istanbuljs:master.

coreyfarrell
coreyfarrell previously approved these changes Jan 14, 2019

@coreyfarrell coreyfarrell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution. Going to wait for a second approval before merging as grammar is not my strongest area.

@JaKXz JaKXz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Other than one small question this looks great, thanks!

Comment thread README.md Outdated
You can run `nyc` with the optional `--cache` flag, to prevent it from
instrumenting the same files multiple times. This can significantly
improve runtime performance.
`nyc`'s default behavior is to cache instrumented files to disk to prevent instrumenting source files multiple times, and speed `nyc` execution times. You can disable this behavior by running `nyc` with the `--cache false` flag. You can also change the default cache directory from `./node_modules/.cache/nyc` by setting the `--cacheDir` flag.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Isn't it --cache-dir?

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.

Turns out... that while this is processed with the rest of the config, it's not actually specified in the yargs -- which I assume means won't come through. Assumedly it can be specified from .nycrc files though.
https://github.com/istanbuljs/nyc/blob/master/lib/config-util.js#L105-L111

  1. I can add this to the yargs settings.
  2. I can remove the reference to it and let someone else work on this later.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be great to see it added! Cc @bcoe

@brokentone

Copy link
Copy Markdown
Contributor Author

@JaKXz @coreyfarrell, etc -- I think I've made the necessary updates, please let me know if you need anything else from me!

@JaKXz
JaKXz requested a review from bcoe January 14, 2019 19:59
@JaKXz
JaKXz dismissed coreyfarrell’s stale review January 14, 2019 20:32

The scope of this PR has expanded since this review

@JaKXz
JaKXz requested a review from coreyfarrell January 18, 2019 04:17
@JaKXz

JaKXz commented Jan 18, 2019

Copy link
Copy Markdown
Collaborator

I'll leave this to @bcoe or @coreyfarrell to merge

@bcoe bcoe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks good to me 👍

@bcoe
bcoe merged commit 35cd49a into istanbuljs:master Jan 19, 2019
@brokentone
brokentone deleted the feature/update-readme-caching branch January 25, 2019 15:32
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.

5 participants