Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4 #51

Merged
merged 14 commits into from
May 18, 2020
Merged

V4 #51

merged 14 commits into from
May 18, 2020

Conversation

lukejacksonn
Copy link
Owner

@lukejacksonn lukejacksonn commented May 15, 2020

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 Adds --module flag for loading es modues directly #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 Adds --routes flag for routing nested indexes #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant