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

build: ditch transpilation #218

Merged
merged 4 commits into from
Nov 25, 2017
Merged

build: ditch transpilation #218

merged 4 commits into from
Nov 25, 2017

Conversation

gtramontina
Copy link
Collaborator

@gtramontina gtramontina commented Nov 21, 2017

Addresses #217.

@codecov-io
Copy link

codecov-io commented Nov 21, 2017

Codecov Report

Merging #218 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #218   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           4      4           
  Lines          92     96    +4     
  Branches        4      4           
=====================================
+ Hits           92     96    +4
Impacted Files Coverage Δ
lib/runner.js 100% <100%> (ø) ⬆️
lib/hook.template.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95f2f5e...6b9f0ff. Read the comment docs.

Builds on Windows with Node 4 fails with a dependency missing error:
- https://tinyurl.com/ycf38c4h

Not really sure why this is needed, but it seems to be related to the
usage of @kentcdodds' eslint config (https://git.io/vF5Fe).

Here's some more details: https://git.io/vF5d5.
@gtramontina gtramontina changed the title build: ditch transpilation process build: ditch transpilation Nov 21, 2017
Copy link
Collaborator

@ta2edchimp ta2edchimp left a comment

Choose a reason for hiding this comment

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

LGTM so far, just two things:

  • Should we move the code from lib/install.js into bin (git mv and slightly alter the code to invoke the installHooks function immediately)? Might be only "cosmetical".

  • Does the build prefix trigger a release (I'm genuinely not sure)? I think I would have chosen sth. like chore(build) which does not iirc.

@gtramontina
Copy link
Collaborator Author

👍 for moving install into bin. I think we can do this as a separate step (separate PR), as my initial intent with this one was to unblock #216.

Running npm run semantic-release locally, executes a dry-run. It gave me this back:

semantic-release WARN pre semantic-release didn’t run on Travis CI and therefore a new version won’t be published.
semantic-release WARN pre You can customize this behavior using "verifyConditions" plugins: git.io/sr-plugins
semantic-release ERR! pre Determined version 2.0.1 as "latest". Not publishing in debug mode. { type: 'patch', version: '2.0.1' }

Which apparently is correct (patch release: 2.0.1), or were you suggesting that there should be no release with these changes…?

@ta2edchimp
Copy link
Collaborator

I would interpret it as a breaking change to not support Node prior to v4 anymore (regardless of the reason behind), so I'm definitely against it being only a patch release.
So, if making a release, I think it should be a major version bump. And then we should make it properly, that is, removing the deprecation notice / update the readme and also move install to bin.

@gtramontina
Copy link
Collaborator Author

gtramontina commented Nov 23, 2017

Oh yeah, definitely! Quit supporting node 4 is definitely a breaking change. I did think these changes would break compatibility, however everything is still fine with node 4 (and above):

Apparently we were only using babel for destructing a few requires, which I addressed like the following:

-const {resolve, basename} = require('path')
+const resolve = require('path').resolve
+const basename = require('path').basename

@ta2edchimp
Copy link
Collaborator

So if it is a breaking change, it should be a major release then, shouldn't it?
And then, the deprecation status should be removed prior to releasing.

(Sorry for being so nitpicking 🙈)

@gtramontina
Copy link
Collaborator Author

No need to apologize! We're just trying to get on the same page… 😉

I do agree that if it is a breaking change, it should be a major release (as a general rule). Although that is not the case with the changes on this PR in particular. We didn't break compatibility with node 4.

Initially, I though we would have to stop supporting node 4, but it turns out it was very straightforward to remove babel from the game and keep the code compatible with node 4.

So, unless I'm not seeing something, we're good to tag these changes as patch… (?)

@ta2edchimp
Copy link
Collaborator

Let‘s do it 👍

Nevertheless, update the Readme / unmark as deprecated prior to releasing? Or do we wait until the first feature release?

@gtramontina
Copy link
Collaborator Author

gtramontina commented Nov 24, 2017

Cool. Does that make sense? I feel like there's something iffy… (interpreting people's reaction from textual comms is hard) 😄

I guess we can do it (update readme and remove deprecation notice) as soon as 2.0.1 is out.

@ta2edchimp
Copy link
Collaborator

It’s all good. I‘m not a native english speaker, so things might sound different as intended.

I only worried about the package’s readme over at npmjs which will be the version at the time of publishing the release (that is, it might lead to reactions like „why releasing an update when it’s deprecated?“).
But I guess it’s a non-issue, since we want to get some more releases out soon.

So, from my end, let‘s go 🙂

@gtramontina
Copy link
Collaborator Author

I get you now… Over at npm it'll still read as deprecated. That's indeed a valid concern! How about this, then: I'll remove the deprecation note from the readme, add it as part of this PR and then we merge and call it 2.0.1.

ps: I'm not native english speaker either 😃

@gtramontina gtramontina merged commit d39ee99 into master Nov 25, 2017
@gtramontina gtramontina deleted the ditch-transpilation branch November 25, 2017 03:32
@ta2edchimp
Copy link
Collaborator

Awesome!

gtramontina referenced this pull request Nov 25, 2017
Builds on Windows with Node 4 fails with a dependency missing error:
- https://tinyurl.com/ycf38c4h

Not really sure why this is needed, but it seems to be related to the
usage of @kentcdodds' eslint config (https://git.io/vF5Fe).

Here's some more details: https://git.io/vF5d5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants