-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feat: Standalone Package to convert to Bruno collection #2341
base: main
Are you sure you want to change the base?
Conversation
This would be very helpful for me. Could someone take a look? @helloanoop |
Let me know, if this is useful so I can update the PR with the latest code changes from the main branch. |
If the PR gets accepted, it will easier to use the Bruno convert methods in other Node proejcts or build a standalone Bruno CLI. |
@helloanoop any update? : ) |
Who can we best request for some feedback on the PR? |
This would still be really helpful for us, thanks a lot @thim81 ! If this doesn‘t get merged, I might just use your fork and hope the format doesn‘t change too much. |
@Thessi I just updated the code to be in sync with the latest main branch. The effort is rather limited with some diffing. If it got accepted I would want to add some test to have coverage. Depending on the timeline we could already publish it is a unofficial npm package to have it used in the field. Although I would prefer to keep it as official bruno package. |
Minor update: I added already some jest test to cover the main scenario's. |
I really like this approach! I noticed that here you are adding the importers to a new package, but you are not removing the existing importers. That runs the risk of the two becoming out of sync. When do you think would be the best time to switch over? |
There is a Bruno CLI. I think it would be really cool if it supported something like |
This would be a phased PR:
The goal would be to allow to build a The current |
Description
Linked to #2340
Provide the Bruno importers (located now in /bruno-app/src/utils/importers) as a standalone package, that can be published as a NPM package.
This would allow open-source tools to import and use the import functions to convert Postman, OpenAPI, ... programmatically to BRU files, which can be used via the Bruno App and Bruno CLI.
Support conversion from:
To Bruno collection
This would be a phased PR:
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.