Closed maxbeatty closed 6 years ago
This is really neat! ✌️
I'll look into merging this soon. Sorry for the delay!
Just a small suggestion: can this be made into a plugin so that users that don't use zeit now
don't need to have this code running with hyper-statusline?
When I was first looking to add this, I, too, was hoping for a more plugin-like approach. I thought my options were to create my own module entirely (duplicating much of this module), create a plugin system here then offer the first plugin (lots of work + awkward contribution), or just get something working to get feedback 😃
I tried to minimize the impact for people not using ZEIT Now by reading .now.json
once at startup and then stopping if it doesn't exist (err of readFile will most likely be that the file doesn't exist).
Thankfully Hyper makes it easy to use local versions (forks) so no rush on my end to get this merged. Let's keep discussing to make this something everyone wants.
Zeit makes it really easy to deploy. So easy that sometimes I deploy to the wrong team. Showing the current user or team gives a nice visual queue to the current state of
now
.