nuxt-modules / ngrok

ngrok exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes
https://ngrok.nuxtjs.org/
68 stars 13 forks source link

suggestions #1

Closed pi0 closed 3 years ago

pi0 commented 3 years ago

First of all nice work on module 💯

pi0 commented 3 years ago

Also after publish would be nice opening a PR in nuxt-community/modules to update link and remove source of old package

debs-obrien commented 3 years ago

This is not necessary and can be removed. It is only incase we want to show it in the browser in the page in the /example in the module but I think it is enough in the cli.

debs-obrien commented 3 years ago

if we replace the other module are there anything that we need to think about that was in the other module, other options etc @pi0 ?

pi0 commented 3 years ago

This is not necessary and can be removed. It is only incase we want to show it in the browser in the page in the /example in the module but I think it is enough in the cli.

if we replace the other module are there anything that we need to think about that was in the other module, other options etc @pi0 ?

debs-obrien commented 3 years ago

@pi0 - It would be nice putting a link to packages we use in wrapper modules (https://github.com/bubenshchykov/ngrok) with a comment in top. Where exactly? I have it mentioned in the docs but would you also like it in the module code?

debs-obrien commented 3 years ago

@pi0 how can I test these out: Actually there are plenty of useful option we can keep supporting: https://github.com/nuxt-community/modules/tree/master/packages/ngrok (simply passing options to original ngrok module. We just need docs and sanity defaults)

I tried adding them to the example but don't understand how to get them to work. I need simple examples to understand. like what value to I add to get subdomain or default value for addr? https://ngrok.com/docs#config

pi0 commented 3 years ago

Actually options are defined here: https://www.npmjs.com/package/ngrok#options (we should pass them to ngrok.connect instead of only port)

Old module has it implemented: https://github.com/nuxt-community/modules/blob/master/packages/ngrok/index.js#L31 (with new template we need to set in DEFAULTS)

Also for comment see line #11

debs-obrien commented 3 years ago

ok @pi0 link added. I am not sure I understand how to add the other options. I have added them to the ModuleOptions object but from there not sure how to use them or make sure they can be used

debs-obrien commented 3 years ago

options added during pair programming: https://github.com/debs-obrien/ngrok/commit/70c85a35b96d63f466fa1c073feb908563cbdaf3

debs-obrien commented 3 years ago

docs finished