-
Notifications
You must be signed in to change notification settings - Fork 50
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
Improve plugin setup #473
Comments
Awesome suggestion. Schema is the low hanging fruit and we've got it already in the latest beta. Config wizard would be awesome. Each plugin would need to implement it itself because each one has distinct options. I'm also concerned about how we'd handle complex configuration like mocks. Let us think about it some more. |
I think it would be better to get the default editor rather than the default app. I wonder how many folks associate .json files with their editor. Isn't the default opening them in a browser which would be useless? |
not actually sure what is the default default as I already changed it.🤔 But if it is indeed a browser then yes, it is useless 🙂 |
Currently (like in many other configure cases) if we want to setup some custom or predefined plugin to the proxy we need to modify the
devproxyrc.json
.This seems kinda hacky experience and when working with the proxy in a larger group I noticed many had problems with setting this up properly. For example, some were using a simple notepad to modify the JSON and made simple mistakes like missed
,
when adding a new array item, or extended the JSON in wrong place.So I got a couple of ideas (smaller and bigger once) that might bring improvements to this experience:
msgraphdb
command) which will open thedevproxyrc.json
in user default app to modify .json files. Something likedevproxy settings
. Why? ... well you wouldn't believe how many questions on teams I got like "hey, where may I find thedevproxyrc.json
?" 🙂devproxyrc.json
. So that when someone will open it in VS Code (or something better than notepad 😉), then he or she will get additional inteli when modifying the .json filedevproxyrc.json
for the user.For example, running a command like
devproxy plugin --name DevToolsPlugin
would automatically for the user to extend the json withand running the command should also prompt the user for plugin-specific data like
And introduce a similar command which will allow to modify the
devproxyrc.json
with a custom plugin. Something likedevproxy customplugin --name myCustomgPlugin --pluginPath 'myCustomgPluginPathToDll' --enabled --configSection 'customPlugin' --config '{"customPlugin": "def"}'
and the result of running this command should be
Let me know what you think 🙂. Cheers 👍
The text was updated successfully, but these errors were encountered: