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
added examples for transforms. [skip ci] #5393
Conversation
@nitin42, thanks for your PR! By analyzing the history of the files in this pull request, we identified @existentialism, @hzoo and @xtuc to be potential reviewers. |
[skip ci]
## Examples | ||
|
||
**In** | ||
```javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is included here, we can close #5391
## Examples | ||
|
||
**In** | ||
```javascript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add new lines before code blocks (here and in all the other additions below)
|
||
**In** | ||
```javascript | ||
let msg = "Hello World!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is the best example for block scoping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closures ! Right?
|
||
**Out** | ||
```javascript | ||
"use strict"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's drop the "use strict" as it's not really part of the transform
Sorry! I made an error while adding the skip ci in the commit. |
for (var i = 1; i <= 10; i++) { | ||
_loop(i); | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also add a more simple example? Like:
in
{
let a = 3
}
let a = 3
out
{
var _a = 3;
}
var a = 3;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not the current one ? Something ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know its not casual !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current one is good but to complex IMO. My example above shows the basic transformation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should I replace it with this example ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean with the rest? The rest of your PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The remaining examples for the plugins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gr8!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to merge first!
In the future, I would recommend you to work in a separate branch other than |
Ok ! 😄 |
Looks fine for me. Could you please rebase with 7.0 branch? |
there were some merge conflicts and the commits were not squashed. |
Hey @nitin42! It looks like one or more of your builds have failed. I've copied the relevant info below to save you some time. |
Codecov Report
@@ Coverage Diff @@
## 7.0 #5393 +/- ##
==========================================
- Coverage 85.38% 85.34% -0.04%
==========================================
Files 204 203 -1
Lines 9529 9524 -5
Branches 2705 2697 -8
==========================================
- Hits 8136 8128 -8
- Misses 906 908 +2
- Partials 487 488 +1
Continue to review full report at Codecov.
|
Fixes #1, Fixes #2
Added examples for the remaining plugins !