This is the culmination of a few new features along with a general tidy up of the codebase. I don't think there are actually any breaking changes as nearly everything lives behind a flag but there are so many new things I thought it deserved a major bump.
Here is a summary of changes:
π Uses gzip on common filetypes like html, css, js and json
π Renders directory listing for urls ending with a trailing slash
π¦ Adds --module flag which allows JS files as the root file for a directory #48
π Adds --editor flag which opens the project in a code editor
π£ Adds --static flag causing the server to route nested index files if they exist #49
π Pass a GitHub repo as <root> using the syntax gh:<user>/<repository>
π₯ Use applescript to open to reuse browser tabs when possible
Some of these changes bring servΓΈr closer to a production server (like gzip and http2) but most of them focus on improving the developer experience when working on projects locally. This is probably going to be the focus of this project going forward.
I have a few more ideas for features that I will have a go at implementing once the dust settles after this release. That said, I am more than open to suggestions for improvements/features that go above and beyond what you might expect from an everyday dev server!
Now that there are actually tests I feel a lot more confident making changes. So hopefully this speeds up making changes in the future.
This is the culmination of a few new features along with a general tidy up of the codebase. I don't think there are actually any breaking changes as nearly everything lives behind a flag but there are so many new things I thought it deserved a major bump.
Here is a summary of changes:
--module
flag which allows JS files as the root file for a directory #48--editor
flag which opens the project in a code editor--static
flag causing the server to route nested index files if they exist #49<root>
using the syntaxgh:<user>/<repository>
Some of these changes bring servΓΈr closer to a production server (like gzip and http2) but most of them focus on improving the developer experience when working on projects locally. This is probably going to be the focus of this project going forward.
I have a few more ideas for features that I will have a go at implementing once the dust settles after this release. That said, I am more than open to suggestions for improvements/features that go above and beyond what you might expect from an everyday dev server!
Now that there are actually tests I feel a lot more confident making changes. So hopefully this speeds up making changes in the future.