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 and modernize codebase #406

Merged
merged 13 commits into from
Dec 20, 2018
Merged

Conversation

kadamwhite
Copy link
Collaborator

@kadamwhite kadamwhite commented Dec 20, 2018

It feels premature to migrate to a typed system, but given the prevalence of modern Node environments there's some other improvements that will help improve the maintainability of the codebase, and we have sufficient unit testing to refactor with confidence.

Contained changes:

  • Use let and const over var
  • Use arrow functions where appropriate, to better distinguish functions requiring this access
  • Use spread operator instead of Object.assign and node.extend
  • Drop support for node v6 (Breaking)
  • Update routes configuration for WP v5.0.2
  • Upgrade Webpack to v4 (remove json-loader, add babel-loader)

@kadamwhite kadamwhite force-pushed the refactor/cleanup-and-modernization branch from 0ad855f to a72f483 Compare December 20, 2018 21:03
@kadamwhite kadamwhite force-pushed the refactor/cleanup-and-modernization branch from 97d6279 to 922f3ef Compare December 20, 2018 22:51
@kadamwhite kadamwhite merged commit 922f3ef into master Dec 20, 2018
@kadamwhite kadamwhite deleted the refactor/cleanup-and-modernization branch December 20, 2018 22:56
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.

1 participant