prettierd icon indicating copy to clipboard operation
prettierd copied to clipboard

Is it possible to package the project for Homebrew?

Open Jarmos-san opened this issue 2 years ago • 2 comments

The Current Issue I'm Facing

I use Homebrew to install most if not all of my CLI-based software including Node, npm & prettier (the non-daemon version). This allows me to update "everything" at one go using the set of commands brew upgrade && brew update. Not making prettierd available via Homebrew means I now have to remember to update my global npm packages (which doesn't include anything for obvious reasons).

So, I was wondering if its possible to package the project for Homebrew & make it installable by simply invoking the brew install prettierd command?

Also a heads up, you can find more detailed instructions on how to package a Node-based tools here - "Node for Formula Authors"

Jarmos-san avatar Jul 19 '22 12:07 Jarmos-san

I assume we could do something very similar to the prettier formula, but installing prettierd instead of prettier. Not sure if homebrew folks would take the PR though? Could also setup a custom tap.

fsouza avatar Jul 21 '22 02:07 fsouza

...could do something very similar to the prettier formula, but installing prettierd instead of prettier.

Isn't it possible to package prettierd as a standalone Formula which can be installed alongside the prettier Formula?

Could also setup a custom tap.

This can be a good short-term solution as well! So in that case, an user would be installing prettierd by invoking this - brew install fsouza/prettierd? In the long-run though I assume it might be possible to reach out to the Homebrew devs to merge a PR with the prettierd Formula.

Jarmos-san avatar Jul 21 '22 07:07 Jarmos-san

Isn't it possible to package prettierd as a standalone Formula which can be installed alongside the prettier Formula?

Ops, missed this, but I meant we could copy the prettier formula heh I'll setup the tap sometime this week.

fsouza avatar Aug 31 '22 21:08 fsouza

It's available now, but I'll keep it open until I build the integration to automatically update the tap.

fsouza avatar Sep 01 '22 00:09 fsouza

It's automated now.

fsouza avatar Sep 01 '22 00:09 fsouza