-
Notifications
You must be signed in to change notification settings - Fork 28
Babel-preset-default: Add new package containing the default Babel configuration #66
Conversation
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
=========================================
- Coverage 79.22% 78.52% -0.7%
=========================================
Files 20 21 +1
Lines 337 340 +3
Branches 70 71 +1
=========================================
Hits 267 267
- Misses 59 61 +2
- Partials 11 12 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a couple of unrelated changes that need to be removed and updated in #62 rather than being part of this PR, once these two changes are removed it'll be good to merge 👍
packages/scripts/package.json
Outdated
@@ -30,8 +30,7 @@ | |||
"devDependencies": { | |||
"babel-jest": "^22.0.4", | |||
"cross-spawn": "5.1.0", | |||
"jest": "^22.0.4", | |||
"regenerator-runtime": "^0.11.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change, this shouldn't be in this PR, it should be updated by removing it in #62
@@ -1,7 +1,6 @@ | |||
// Do this as the first thing so that any code reading it knows the right env. | |||
process.env.BABEL_ENV = 'test'; | |||
process.env.NODE_ENV = 'test'; | |||
process.env.PUBLIC_URL = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change, this shouldn't be in this PR, it should be updated by removing it in #62
7b7de10
to
f72dda2
Compare
ea9b5d9
to
b929481
Compare
b929481
to
e20ff67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool, nice work here @gziolo!
Follow-up for #62.
This PR extract Babel configuration which is going to be shared between
packages
andGutenberg
into its own package.It should be tested similarly to #62. We need to make sure that all existing commands work as before:
npm test
npm run build
Again, I don't think we need unit tests for this new package as it tests itself because this preset is used by the aforementioned commands.