Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(package): use Babel 7 #2750

Merged
merged 4 commits into from
May 1, 2018
Merged

chore(package): use Babel 7 #2750

merged 4 commits into from
May 1, 2018

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Apr 30, 2018

Fixes #2603.

This PR:

  • switch package to use Babel 7
  • use release version of Gulp 4

ReactDOM.render(<App />, mountNode)
</script>
</body>
</html>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cruft file

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file allowed manual testing to ensure the UMD build worked. It was originally created to verify that the codepen would work as codepen used the UMD bundle. Since we now use codesandbox and it doesn't need a UMD, it is probably safe to remove.

In fact, I wonder if we anyone actually uses the UMD bundle at all. It would simplify and speed things up if we removed it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm think that we will drop UMD build in near future 👍

@@ -113,10 +113,9 @@
"express": "^4.15.4",
"faker": "^4.1.0",
"gh-pages": "^1.0.0",
"gulp": "gulpjs/gulp#4.0",
"gulp-html-replace": "^1.6.2",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cruft plugin

@codecov-io
Copy link

codecov-io commented Apr 30, 2018

Codecov Report

Merging #2750 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2750   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files         160      160           
  Lines        2758     2758           
=======================================
  Hits         2751     2751           
  Misses          7        7

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 386732a...e4c55a2. Read the comment docs.

@@ -15,7 +15,7 @@ import ComponentControls from '../ComponentControls'
import ComponentExampleTitle from './ComponentExampleTitle'

const babelConfig = {
presets: ['es2015', 'react', 'stage-1'],
presets: ['es2015', 'react', ['stage-1', { decoratorsLegacy: true }]],
Copy link
Member

@levithomason levithomason Apr 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use babel-preset-env in the browser too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep 😄

</Grid.Column>
)}
</Grid.Row>
<Grid.Row columns={1}>{children && <Grid.Column style={childrenStyle}>{children}</Grid.Column>}</Grid.Row>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should shorten our line length. This is quite hard to read.

<Grid.Row columns={1}>{children && <Grid.Column style={childrenStyle}>{children}</Grid.Column>}</Grid.Row>

This line is 118 columns, maybe go with 100 columns?

<Grid.Row columns={1}>
  {children && <Grid.Column style={childrenStyle}>{children}</Grid.Column>}
</Grid.Row>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

Copy link
Member

@levithomason levithomason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See suggestions, good to merge by me!

@@ -31,6 +31,7 @@
"prettier": "prettier --list-different \"**/*.{js,jsx,ts,tsx}\"",
"prettier:fix": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"precommit": "lint-staged",
"postcommit": "git update-index --again",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@layershifter layershifter merged commit 8114d8b into master May 1, 2018
@layershifter layershifter deleted the chore/babel7 branch May 1, 2018 11:27
@levithomason
Copy link
Member

Released in semantic-ui-react@0.80.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants