ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
97 stars 9 forks source link

Support "active links" in terminal output for server URLs #1171

Closed thescientist13 closed 11 months ago

thescientist13 commented 11 months ago

Discussed in https://github.com/ProjectEvergreen/greenwood/discussions/1169

Originally posted by **DevLab2425** October 17, 2023 ## Summary Currently when running a dev or prod server locally in Greenwood, the terminal will display something like ```sh Started dev server at localhost:1984 ``` _But_, if we append `http://` to that, e.g. ```sh Started dev server at http://localhost:1984 ``` The log output will allow CLI and IDE users (at least VS Code) to open the URL directly from the terminal window, rather than have the IDE (again, VS Code) attempt to locate the string as a local file path. See the screenshots below for a demo. https://github.com/ProjectEvergreen/greenwood/compare/master...DevLab2425:greenwood:ShowAndTell/active-local-serve-link **Without protocol - IDE opens file browser input** Screen Shot 2023-10-17 at 16 21 55 **With protocol - browser opens URL** Screen Shot 2023-10-17 at 16 22 18

Details

Would want to apply this to our

  1. [ ] Dev Server
  2. [ ] Prod Server