Closed joaocunha closed 7 years ago
Cool! I'm not certain that I'm ready to drop support for older versions of node (so if we want to do this, we should probably transpile with babel). Would you be willing to do that?
Oh, also, we should probably update the node version that travis is running on. I don't care about iojs versions anymore. We should probably test this on 0.12.0, 4.x, and 6.x
@kentcdodds I've iterated over your suggestions on https://github.com/kentcdodds/validate-commit-msg/pull/39/commits/f11e82c51aeb3e95715faec747190067d334889a.
It's the first time I'm using Babel on a node lib (I usually use it on client scripts only) so feedback is appreciated.
@@ master #39 diff @@
===================================
Files 1 1
Lines 88 87 -1
Methods 0 0
Messages 0 0
Branches 0 0
===================================
- Hits 88 87 -1
Misses 0 0
Partials 0 0
Powered by Codecov. Last update d8a2d19...4d0e7c2
For the most part it looks good. Thanks for giving this some work!
@kentcdodds: fixed based on your comments. Thanks for the feedback!
There's two things I wonder, tho:
install
script to run the build as the ./build
directory is not being tracked. On a fresh npm install validate-commit-msg
, wouldn't the ES5 file be missing?Did you take a look at the videos I mentioned? They should answer these questions :)
@kentcdodds that was invaluable. In fact, I was planning to watch your series a while ago :)
I've fixed it following your videos, but I still can't get how the build process will be triggered once someone installs the module. I might have missed the point where you talk about it (I saw the Travis bit, tho).
Travis is complaining:
ERROR: Coverage for branches (83.33%) does not meet global threshold (90%)
But it's fine (> 90%) on my local:
I'll investigate on this one later.
Actually, I think the issue you're seeing is that version 7 of nyc changed how you configure it to cover ES6 tests. You can see this for an updated example (here are some docs.
Thanks again for working on this!
Things have changed quite a bit. I think we'll go ahead and close this now.
util
dependency;