Skip to content
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

How can I integrate Express js with my generator #1759

Open
Vinayak-Mahadev opened this issue Mar 13, 2022 · 0 comments
Open

How can I integrate Express js with my generator #1759

Vinayak-Mahadev opened this issue Mar 13, 2022 · 0 comments

Comments

@Vinayak-Mahadev
Copy link

Anyone can help me out with this?

I have created one generator with "yo" and It's working as expected. But, I need one additional step needs to be done before the yeoman starts.

When executing yo codegen

  1. The express server will start and it opens one authentication portal
  2. Once authentication is done, I will receive some token
  3. Now Express server should stop and based on authentication status my generator will resume the task.
  4. After the generation task, the .yo-rc.json data will send to some external system (using REST call) with the help of the received token.
  5. This will help us, to monitor end-users input

Now problem is, the up to token receive part is ok.
But, the express server did not stop, and when I press ctrl+c the Yemon got excited.

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

No branches or pull requests

1 participant