Check out a free preview of the full Creating an Open Source JavaScript Library on Github course:
The "Exercise: Adding Babel Register & Istanbul" Lesson is part of the full, Creating an Open Source JavaScript Library on Github course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, Kent adds babel-register and babel-plugin-istanbul to the project. After configuring these to modules, he uses the NODE_ENV to indicate which environment is being used for each script so the correct plugins will be loaded. Since the NODE_ENV variable only works on OSX, Kent adds the cross-env module which allows it to be set cross platform. The solution to this exercise is on the FEM/07.1-transpile-tests branch. - http://slides.com/kentcdodds/write-oss#/10/2

Get Unlimited Access Now