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

Refactored utilities #30

Merged
merged 16 commits into from
May 17, 2023
Merged

Refactored utilities #30

merged 16 commits into from
May 17, 2023

Conversation

ijlee2
Copy link
Owner

@ijlee2 ijlee2 commented May 16, 2023

Background

The utilities and their tests, initially written for ember-codemod-pod-to-octane, ended up being duplicated as I began to write more codemods.

To reduce the maintenance cost, I extracted the utilities to @codemod-utils (only the utilities that may be used in many codemods).

What changed?

In commits 2-9, I refactored code so that I could more easily extract utilities as external packages.

Commits 11-14 show how we can use @codemod-utils packages instead.

@ijlee2 ijlee2 added the enhance: code Issue asks for new feature or refactor label May 16, 2023
@ijlee2 ijlee2 marked this pull request as ready for review May 17, 2023 09:26
@ijlee2 ijlee2 merged commit 986956d into main May 17, 2023
@ijlee2 ijlee2 deleted the refactor-code branch May 17, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance: code Issue asks for new feature or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant