-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
remove puppeteer from dependencies #256
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue. |
@flamewow Hi! Thanks for the issue. Usually if you install a template once then the I can't understand how do you want pass puppeteer instance as a parameter. Using Generator API it can be easy to do, but how do you want pass reference to the instance by the CLI? I only see solution that EDIT: Did you try our tip under the list of parameters?
|
yeah, it is not really puppeteer that is heavy here but chromium and you can skip it as @magicmatatjahu mentioned.
unfortunately, we do not know that really if using |
this part is easy, we have releases and deps update inside asyncapi org fully automated.
definitely. I haven't seen the code that generated pdf for some time but should be easy to port to new template and use
would you be able to handle this with just our guidance, and best to become CODEOWNER of the template? |
@derberg
in both cases, i.e. just contributor and codeowner |
so it would look like this:
Then, as a result, according to our open governance model you can (you do not have to) also become a member of Technical Steering Committee. You should definitely look at this for more details. Of course, I can guide you through all the steps, explain CI and all that stuff around. I see you are working on https://github.com/flamewow/nestjs-asyncapi so might be good for you to engage with us more as TSC member and consider moving the nestjs project here, under AsyncAPI organization too as it would help with recognition. |
Sounds good, let me start with "create a template for pdf generation",
|
@flamewow you can tag me here or just join our Slack and ping me there in #tooling channel. Also, next week because of the hackathon we organize and also hacktoberfest I will be live-streaming a |
This has become even more relevant: puppeteer/puppeteer#7921 |
There is also this issue to take into consideration: |
@arjangeertsema @duxi90 Thanks for raise that issues! We have to do something about these problems, but you can still use html templates without puppeter via flag:
|
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
I have a question that might sound a bit silly😅 |
@pratik2315 I am not part of the asyncapi organisation, but this is how I did it with other organizations. You can create a new project and when finished you can transfer the ownership the asyncapi organisation with some help from the asyncapi organisation. After that you can create a PR which replaces all your transferred code from the asyncapi repo with references to your repository. Key is that the timeframe for this is limited because you need to keep changes to the repositories in sync during this period of time. Good luck and thank you in advance! |
@pratik2315 You can transfer your repo to our organization and github itself will take care of redirects etc. The only problem with fork is that all git history will still be visible from html-template, but this can be fixed - just delete all history related to html-template and start history from your commits. As for the task itself, I would prefer to do it as mentioned in issue's description:
I know it will decrease UX, but creating pdf template will be a serious problem, because while generating pdf we will have to generate html-templates and then operate on it. It can be done, the question is whether it makes sense. If you wanna handle that, go ahead :) |
yo, basically do
@magicmatatjahu generator is a lib, I don't see a problem why not use it in the template to generate HTML, then PDF out of it and then have a hook that will remove HTML files. It is like it is 🤷🏼 @pratik2315 I guess we need to stay with puppeteer as anyway alternative that I was thinking about, playwright, has the same approach and by default it also downloads browsers 😞 so in short (and do let me know if you need more details)
that should do the trick |
Any update on this? We'd be interested too. |
@y-nk Hi! No, we currently have no interested person to do it, and ourselves we have assigned it as future task - I don't have time for that at the moment. |
Hey there! I am currently working on this issue!
|
Some technical detail on my proposed technical solution for new
Now, when we separate that, when we make I don't think there is some other solution than taking using in In this integration test you can see how Generator is used to generate So in theory, you can make template files in now that I'm thinking, maybe we do not need to use @magicmatatjahu that should work right? |
Good luck @pratik2315 . I will try to stay put for testing if you need a hand. |
I wonder if, instead of a new template, should we install the
Yeah, if we will go with separate template the |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
I think it is still valid issue, but we need volunteers to help explore different options |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
anyone wants to work on this? I can share how to fix it |
Can I work on this? |
Hi, |
sure, if anyone can open a PR that upgrades puppeteer to latest, that would be great. Just remember to test on local PDF generation still works |
update of dependency released with #668 (comment) thanks to @bakasmarius |
Reason/Context
Please try answering few of those questions
puppeteer is used only for PDF generation while being quite heavy (~200Mb)
download time will be increased drastically
PDF generation is not used very often and for users that are not using it at all 200Mb overhead is way too much
Description
Please try answering few of those questions
remove puppeteer from dependencies
yes
change PDF generation function to accept puppeteer instance as a parameter. In that case, users that need PDF will have to install puppeteer separately and pass it as an argument
The text was updated successfully, but these errors were encountered: