generator-teams icon indicating copy to clipboard operation
generator-teams copied to clipboard

Update Bot Channel Registration uri automatically when debugging using NGROK

Open MTCMarkFranco opened this issue 4 years ago • 5 comments

works in both Windows Command & Linux shells.

MTCMarkFranco avatar May 14 '20 18:05 MTCMarkFranco

This is a great addition! Thanks a bunch!

However I would like to delay the merge of this PR and have it as one of the prime examples of the new build system (#107) that is in the plans/work. It would be fantastic to have this as either one of the core build plugins or a community plugin.

One thing I do think we should change for this as well, is the configuration - not have them in the standard .env file and instead in a dedicated settings file for this? (what I really want with ngrok settings as well)

Thoughts?

wictorwilen avatar May 15 '20 13:05 wictorwilen

While a cool addition, please reconsider adding this to the default project. It complicates the setup to do debugging... anyone with a commercial ngrok account doesn't need this... and it can turn away the brand new dev.

I'd recommend either providing this a documentation on how to do it OR as a flag on the generator to add it OR (not ideal) as a question if they want to add it when creating a project.

IMHO, you want to have the least friction to someone doing the equivalent "File => New Project => F5 => see it work". This seems to go against that mindset.

andrewconnell avatar May 15 '20 14:05 andrewconnell

@andrewconnell - agreed, hence my comments on having it as a module (preferably a community add-on) that is opt-in

wictorwilen avatar May 15 '20 15:05 wictorwilen

Agreed on both points. extra setup after the generator has run will add further complexity. I think hanging it off the generator would make more sense as well.

MTCMarkFranco avatar Jun 14 '20 13:06 MTCMarkFranco

@MTCMarkFranco - I will add this feature as a separate build package to V3 of yo teams - working package name (yoteams-build-ngrok). So as a dev you will only have to do an additional step of npm install yoteams-build-ngrok --save-dev. Does that make sense?

Update: actually, this has nothing to do with ngrok really and should be names something like yoteams-build-azure? That way we can add similar "bonus" features to that package going forward?

wictorwilen avatar Jan 25 '21 08:01 wictorwilen

Closing this one due to inactivity. @MTCMarkFranco Please create a discussion around this, so that we can discuss this further. It's a nice feature, but indeed not for all to use. Wictor's idea of a community plugin might be the correct way forward.

RickVanRousselt avatar Sep 23 '22 08:09 RickVanRousselt