Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

[BREAKING] Refactor the entire build process for babel@7 and TypeScript (chunk 1 of many) #3722

Merged
merged 10 commits into from
Dec 17, 2019

Conversation

turt2live
Copy link
Member

To be paired with matrix-org/matrix-js-sdk#1113

Note: This is set to merge against travis/sourcemaps because it breaks all the downstream builds.

It's not fair to call this part 1 of many because this isn't a distinct part: it's more a chunk of work which is of reviewable size (hopefully).

Features:

  • Export modern JS
  • Export typings
  • Export source maps that actually mean something
  • Zero testing (we're switching to Jest, and the Karma tests are basically impossible to fix because webpack is awful at this layer).
  • Cleanup of old CI scripts that aren't used anymore (there's probably more)

As mentioned above, this isn't a complete unit of work - jsut a big rock-shaped lump of changes. Sorry.

This is a step towards being a boring SDK and not anticipating an install location.

This commit requires a major version bump of the SDK.

@@ -1,20 +1,25 @@
{
"sourceMaps": "inline",
Copy link
Member Author

Choose a reason for hiding this comment

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

this is theoretically the best way to get the sourcemaps into webpack for riot-web

@turt2live turt2live requested a review from a team December 12, 2019 21:49
MatrixClientPeg in particular doesn't work very well with this.
.babelrc Outdated Show resolved Hide resolved
src/MatrixClientPeg.js Show resolved Hide resolved
"check-type"
]
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Is there any way to at least not have these repeated between all our projects?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably not.

Copy link
Member Author

Choose a reason for hiding this comment

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

at least not yet, I think.

@turt2live turt2live requested a review from dbkr December 16, 2019 23:08
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

ok - lgtm I think, on the assumption that the end-to-end tests come back before it hits develop :)

@turt2live
Copy link
Member Author

yup, absolutely. We kinda need them.

@turt2live turt2live merged commit 38e75aa into travis/sourcemaps Dec 17, 2019
@turt2live turt2live deleted the travis/babel7 branch December 17, 2019 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants