Skip to content

Feat/monorepo esm#8729

Merged
NathanWalker merged 5 commits into
NativeScript:feat/monorepofrom
Akylas:feat/monorepo_esm
Jul 23, 2020
Merged

Feat/monorepo esm#8729
NathanWalker merged 5 commits into
NativeScript:feat/monorepofrom
Akylas:feat/monorepo_esm

Conversation

@farfromrefug
Copy link
Copy Markdown
Collaborator

This PR moves the core to a full es2017 js build.

  • it adds a new @NativeClass decorator
  • it uses a ts transformer to detect that decorator and transform those classes to es5
  • the decorator is removed from the generated es5 (to not require changes to the runtimes)

To apply the transformer using tsc we need a modified version of typescript. To do that i use ts-patch. I added it to the setup npm task. That's enough!

Here you go with that the core is build in es2017 ...

Using the @nativeclass decorator we can transform native class extensions to es5 and still keep the whole core in es2017
The same thing needs to be applied to plugins
This is simpler for now as it does not require any changes to the runtimes!
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Jul 23, 2020

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla.
CLA has not been signed by users: @farfromrefug.
After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.

@farfromrefug
Copy link
Copy Markdown
Collaborator Author

@cla-bot check

@cla-bot cla-bot Bot added the cla: yes label Jul 23, 2020
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Jul 23, 2020

The cla-bot has been summoned, and re-checked this pull request!

@NathanWalker
Copy link
Copy Markdown
Contributor

This is 🔥 @farfromrefug thank you!

@NathanWalker NathanWalker merged commit fb55a44 into NativeScript:feat/monorepo Jul 23, 2020
NathanWalker pushed a commit that referenced this pull request Aug 8, 2020
NathanWalker pushed a commit that referenced this pull request Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants