Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 Adds --module flag for loading es modues directly #48--editor
flag which opens the project in a code editor--static
flag causing the server to route nested index files if they exist Adds --routes flag for routing nested indexes #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.