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

chore(cleanup): Add prettier and remove babel #178

Merged
merged 16 commits into from
Sep 27, 2019
Merged

chore(cleanup): Add prettier and remove babel #178

merged 16 commits into from
Sep 27, 2019

Conversation

jroehl
Copy link

@jroehl jroehl commented Sep 27, 2019

Summary

Remove transpilation and introduce prettier.

Description

  • removed babel and transpilation setup
  • changed custom eslint configuration to prettier

Motivation and Context

To simplify keeping dependencies up to date and remove unnecessary complexity from the build/lint/develop process, we can remove babel, a custom eslint config from the codebase. Instead we can rely on an opinionated linter (prettier) and use the built-in features of node >= 8, getting rid of the transpilation process.

Todos

  • Implemented feature

Screenshots (if appropriate):

@jroehl jroehl added the WIP label Sep 27, 2019
@jroehl jroehl removed the WIP label Sep 27, 2019
.prettierrc Outdated Show resolved Hide resolved
url: `https://api.github.com/repos/${repo}/releases/latest`
})
ctx.latestReleaseInfo = response.data
} catch (err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦‍♂

})
ctx.latestReleaseTarballStream = response.data
} catch (err) {
throw err
Copy link
Contributor

Choose a reason for hiding this comment

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

😅

Copy link
Author

Choose a reason for hiding this comment

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

I love it 😬

Copy link
Contributor

@Khaledgarbaya Khaledgarbaya left a comment

Choose a reason for hiding this comment

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

👏 Amazing job! one small comment

Copy link
Contributor

@makinwab makinwab left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup, @jroehl. Have one question which I've written below and a suggestion to use chore instead of feat when squashing commits and merging the PR.

lib/cli.js Show resolved Hide resolved
@Khaledgarbaya
Copy link
Contributor

@makinwab

Have one question which I've written below and a suggestion to use chore instead of feat when squashing commits and merging the PR.

If we use chore we won't have a new release with the changes. However, one can argue that this is not a suer facing release and it can wait to another proper release

@makinwab
Copy link
Contributor

makinwab commented Sep 27, 2019

If we use chore we won't have a new release with the changes. However, one can argue that this is not a suer facing release and it can wait to another proper release

Yeah, that's my point @Khaledgarbaya. Not to have a release based on changes that aren't user-facing and it's really a chore.

@jroehl jroehl changed the title feat(cleanup): Add prettier and remove babel chore(cleanup): Add prettier and remove babel Sep 27, 2019
@jroehl jroehl merged commit ba28cb3 into master Sep 27, 2019
@jroehl jroehl deleted the feat/prettier branch September 27, 2019 13:29
@phoebeschmidt
Copy link
Contributor

🎉 This PR is included in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants