Closed pi0 closed 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
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 ?
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.
url
it will be conflicting with one from ngrokif we replace the other module are there anything that we need to think about that was in the other module, other options etc @pi0 ?
[ ] 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)
[ ] Also default process.env.npm_package_name
as addr makes module to use name of package as ngrok subdomain (if possible)
@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?
@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
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
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
options added during pair programming: https://github.com/debs-obrien/ngrok/commit/70c85a35b96d63f466fa1c073feb908563cbdaf3
docs finished
First of all nice work on module 💯
NGROK_TOKEN
in docsruntimeConfig.url
? Anyway if necessary, we should keep it namespaced ($config.ngrok.url
)ngrok
tag)