zambezi / ez-build

Zambezi build tool
MIT License
2 stars 1 forks source link

Use latest babel preset instead of es2015 #35

Closed mstade closed 8 years ago

mstade commented 8 years ago

Description

This changes ez-build to use babel-preset-latest instead of babel-preset-es2015. This new preset affords us a few good things:

The latter point enables us to more easily use ez-build with tooling that expects a different module format, such as piping to Rollup.

Note: .babelrc will only be picked up when NODE_ENV is set to anything other than test, which is necessary to ensure we don't pick up ez-build's .babelrc when running tests. We may want to reconsider this.

Motivation and Context

This change makes it easier for us to keep ez-build up to date with the latest ecmascript specifications. I also allows us to add the next specification as an experimental option, by hiding it behind the es2017 compiler flag.

How Was This Tested?

codecov-io commented 8 years ago

Current coverage is 81.14% (diff: 100%)

Merging #35 into master will increase coverage by 2.51%

@@             master        #35   diff @@
==========================================
  Files            15         15          
  Lines           234        244    +10   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            184        198    +14   
+ Misses           50         46     -4   
  Partials          0          0          

Powered by Codecov. Last update 1d40200...2cd8284

FabienDeshayes commented 8 years ago

:+1:

mstade commented 8 years ago

Ok I think this is ready to go, I added some tests to cover all the features added and mentioned, and coverage has increased somewhat. I'm probably going to merge and release proper come Monday.