Skip to content

chore: fix and refactor add generator#843

Closed
rishabh3112 wants to merge 17 commits into
webpack:masterfrom
rishabh3112:chore/async
Closed

chore: fix and refactor add generator#843
rishabh3112 wants to merge 17 commits into
webpack:masterfrom
rishabh3112:chore/async

Conversation

@rishabh3112

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

refactoring

Did you add tests for your changes?
No

If relevant, did you update the documentation?
N/A

Summary
Updating prompting() to use async/await

Does this PR introduce a breaking change?

Maybe

Other information
#836

@rishabh3112 rishabh3112 changed the title chore(async): add generator to async/await [WIP] chore(async): add generator to async/await Apr 21, 2019
@rishabh3112
rishabh3112 marked this pull request as ready for review April 21, 2019 04:39

@pranshuchittora pranshuchittora left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO this might affect node 6.x users.

Node supports async/await out of the box since version 7.6.

@rishabh3112

Copy link
Copy Markdown
Contributor Author

Refer #836

@pranshuchittora

Copy link
Copy Markdown
Contributor

@rishabh3112 👍

@rishabh3112 rishabh3112 changed the title [WIP] chore(async): add generator to async/await chore(async): add generator to async/await Apr 22, 2019
@rishabh3112

Copy link
Copy Markdown
Contributor Author

Ready for a review now 👍

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll do some manual testing while I got time, but nice work.

Comment thread packages/generators/add-generator.ts Outdated
}
}

const temp: string = action;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

reassigning a const

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Where? temp is never reassigned anywhere and here it is declared.

@ematipico ematipico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some feedback!

Comment thread packages/generators/add-generator.ts Outdated
Comment thread packages/generators/add-generator.ts Outdated
Comment thread packages/generators/add-generator.ts Outdated
Comment thread packages/generators/add-generator.ts
Comment thread packages/generators/add-generator.ts Outdated
@rishabh3112

Copy link
Copy Markdown
Contributor Author

Thanks for review @ematipico
I will look into it and resolve these in this PR.

P.S
Just for clearing things 😅,
All of the code, in which you requested changes, was there as it is before this PR and not written by me originally.

@ematipico

ematipico commented Apr 23, 2019

Copy link
Copy Markdown
Contributor

Oh yeah don't worry! We know it's working all right, if you think it doesn't require any change and it will steal too much time of yours, mark it as resolved and move along. :)

@rishabh3112

Copy link
Copy Markdown
Contributor Author

Well all are done and it didn't steal my time :). Pushing commits after a quick test.

@webpack-bot

Copy link
Copy Markdown

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@rishabh3112

Copy link
Copy Markdown
Contributor Author

Done @evenstensberg

@rishabh3112

Copy link
Copy Markdown
Contributor Author

@webpack/cli-team can I have a review on this PR, this is fine IMO

@rishabh3112

Copy link
Copy Markdown
Contributor Author

cc @evenstensberg

@anshumanv anshumanv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems good to go!

@rishabh3112

Copy link
Copy Markdown
Contributor Author

@evenstensberg PTAL 😅

@evenstensberg

Copy link
Copy Markdown
Member

Thanks, will get back to you this week. Quite a big PR and need to manually test

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Triaging #817 first to avoid complication of work

@evenstensberg

Copy link
Copy Markdown
Member

@rishabh3112 could you rebase and let's continue on getting this merged once you're done?

@rishabh3112

Copy link
Copy Markdown
Contributor Author

Sure, will catch you tommorow. It's night here now and I am sleeping :)

@evenstensberg

Copy link
Copy Markdown
Member

Gotcha, sleep tight!

@webpack-bot

Copy link
Copy Markdown

@rishabh3112 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@anshumanv Please review the new changes.

Comment thread tsconfig.json Outdated
@evenstensberg

Copy link
Copy Markdown
Member

Could you rebase?

@rishabh3112

Copy link
Copy Markdown
Contributor Author

Will do it @evenstensberg, but is it required now?, as add package is being removed Or we would keep generators and remove packages only?

@evenstensberg

Copy link
Copy Markdown
Member

Nah I don't think it's worth

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.

7 participants