Skip to content
This repository has been archived by the owner on Jul 9, 2018. It is now read-only.

Babel-preset-default: Add new package containing the default Babel configuration #66

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

gziolo
Copy link
Member

@gziolo gziolo commented Jan 21, 2018

Follow-up for #62.

This PR extract Babel configuration which is going to be shared between packages and Gutenberg 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.

@codecov
Copy link

codecov bot commented Jan 21, 2018

Codecov Report

Merging #66 into master will decrease coverage by 0.69%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
packages/babel-preset-default/index.js 0% <0%> (ø)

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 d45165d...e20ff67. Read the comment docs.

Copy link
Member

@ntwb ntwb left a 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 👍

@@ -30,8 +30,7 @@
"devDependencies": {
"babel-jest": "^22.0.4",
"cross-spawn": "5.1.0",
"jest": "^22.0.4",
"regenerator-runtime": "^0.11.1"
Copy link
Member

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 = '';
Copy link
Member

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

@gziolo
Copy link
Member Author

gziolo commented Jan 22, 2018

@ntwb good catch, once I remove the changes you highlighted, we could even rebase it against the master and merge before #62 👍

@gziolo gziolo force-pushed the add/babel-preset branch 2 times, most recently from ea9b5d9 to b929481 Compare January 22, 2018 18:11
@gziolo gziolo changed the base branch from add/scripts-jest to master January 22, 2018 18:11
Copy link
Member

@adamsilverstein adamsilverstein left a 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!

@gziolo gziolo merged commit 07f3600 into master Jan 23, 2018
@gziolo gziolo deleted the add/babel-preset branch January 23, 2018 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants