Skip to content

skip diff and merging on *.umd.js files#168

Merged
kylebuch8 merged 2 commits intomasterfrom
gitattributes
Sep 19, 2018
Merged

skip diff and merging on *.umd.js files#168
kylebuch8 merged 2 commits intomasterfrom
gitattributes

Conversation

@mwcz
Copy link
Copy Markdown
Contributor

@mwcz mwcz commented Sep 19, 2018

This flags elements/*/*.umd.js files as binary, so that git diff doesn't do a text diff on them (it just says "this file changed"), and git merge just accepts the newer version without trying to do a text merge.

Ideally this would be done on every generated file (ie, rh-card.umd.js and rh-card.js for example), but matching the ESM version (rh-card.js) is much harder. *.umd.js is easy to match precisely, but *.js overreaches and matches the gulpfile, storybook file, and rollup config as well. So for now at least, this only applies to the UMD builds.

@mwcz mwcz requested a review from kylebuch8 September 19, 2018 14:58
Copy link
Copy Markdown
Contributor

@kylebuch8 kylebuch8 left a comment

Choose a reason for hiding this comment

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

Lourdes Garcia Transmits Messages

@kylebuch8 kylebuch8 merged commit 53bcda4 into master Sep 19, 2018
@kylebuch8 kylebuch8 deleted the gitattributes branch September 19, 2018 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants