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

Clean up caching precompiler #1077

Merged
merged 1 commit into from
Oct 17, 2016
Merged

Conversation

vadimdemedes
Copy link
Contributor

Tiny clean up of lib/caching-precompiler.js.

Changes:

  • No boolean args in constructor, provide options object instead.
  • Make hash generation parts more clearer.
  • Rename _factory method, which was a bit confusing (at least to me).

@vadimdemedes vadimdemedes force-pushed the cleanup-caching-precompiler branch from 1086536 to 075c4c8 Compare October 15, 2016 14:18
Copy link
Member

@novemberborn novemberborn left a comment

Choose a reason for hiding this comment

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

LGTMO.

var avaPackage = require.resolve('../package.json');

var packages = [avaPackage].concat(pluginPackages);
var packageSalt = JSON.stringify(this.babelConfig);
Copy link
Member

Choose a reason for hiding this comment

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

You need to add process.version.split('.')[0] to this. Note that it's currently broken: https://github.com/avajs/ava/pull/1068/files#r83534244.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@vadimdemedes vadimdemedes force-pushed the cleanup-caching-precompiler branch from 075c4c8 to 9e1cc96 Compare October 15, 2016 15:45
@sindresorhus sindresorhus merged commit 1b214be into master Oct 17, 2016
@sindresorhus sindresorhus deleted the cleanup-caching-precompiler branch October 17, 2016 17:34
@sindresorhus
Copy link
Member

Nice cleanup @vdemedes :)

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