-
Notifications
You must be signed in to change notification settings - Fork 1
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
When to publish #2
Comments
Wowee, makes me thankful for
The Emacs package will be separate from the npm package itself though, right? The user must install the Unibeautify CLI themselves and the Emacs package will wrap their currently installed version? Overall, I am in favour of getting this process started. @lassik are you OK taking this on? I would appreciate it, as I have no background with Emacs or MELPA. Thank you!!! 🎉 |
The initial submissions take so long because they are hand-vetted for quality by the maintainers (they actually read your code and offer constructive criticism), and the project is badly understaffed right now. After that it's smooth sailing, their CI server picks up any commits from our GitHub master branch and creates a new package in hours. In my experience the system is an extremely good compromise between quality and convenience, apart from the current staff shortage.
Exactly right on both counts :) I think it's also best to keep them separate, as there is no clean way to have the Emacs package manager call npm. Emacs users are also very used to this arrangement: other external programs, such as grep and git, are also managed entirely separately from Emacs, usually via the OS package manager. I can write a short introduction for the Emacs package that points to the Unibeautify installation instructions (what would be the best URL, by the way?)
Sure, no problem :) I've published several MELPA packages so I'm familiar with the process. |
Hey @lassik . Just checking in. I hope you are doing well 😃. Did they approve the package? Any updates, such as installation instructions, you would like to make to the README.md or https://unibeautify.com/docs/editor-emacs ? Thanks again for your contribution to Unibeautify! |
Hi. Thanks, you are very courteous. I put off publishing it due to perfectionism basically - I wanted to add a framework for migrating settings between Emacs and |
Sounds good. Thank you! For those following this issue, here is the related issue for |
@Glavin001 I'm ready to submit this to MELPA. Please check the newest commit in the |
Looks great! Feel free to edit https://github.com/Unibeautify/website/blob/master/docs/editor-emacs.md with any Emacs related instructions. Awesome work, @lassik ! |
No problem, the work was mostly copy-pasting from existing code :) Just realized that we should really resolve Unibeautify/cli#81 (How to specify which beautifiers to use with the CLI) before publishing this. Right now the Emacs package doesn't give any config options to the CLI (it only gives it the programming language) so it relies entirely on the CLI to pick which beautifier to use. |
Does it use the |
The Emacs package doesn't read any configuration files at the moment. I would like to keep it so that it doesn't even have to know that Whether the |
Agreed. Emacs should not have to deal with the configuration file, only Unibeautify CLI itself 👍 . In your tests, is this working already? Or is Unibeautify CLI not there yet? Unfortunately, it's been a while since I've taken a closer look at the CLI status. |
No problem, we are all volunteers here :) It's working fine, but Emacs relies entirely on the CLI to use whatever default options the CLI has. Emacs tells the CLI what programming language it should expect, and the CLI somehow selects a default beautifier with default options for that language. |
Today I just successfully formatted an Emacs buffer for the first time using this extension and the latest version of the
@unibeautify/cli
fromnpm
😄 In fact, it's working surprisingly well for basic usage, doingM-x unibeautify
to manually beautify a source file (M-x
is Emacs-speak for the key combinationMeta-x
, i.e.Alt-x
). I made it match up Emacs modes with the corresponding Unibeautify language names so Emacs can automatically pick the right language for Unibeautify.@Glavin001 @szeck87 Since it's already usable, I'd like to publish this package in the main third-party Emacs package archive, MELPA. They usually approve new packages within 1-2 weeks. But waiting longer is fine with me if you'd like to polish some of the NPM packages first. Emacs users expect MELPA packages to mostly work well, but are understanding it there is an occasional hitch, especially with new packages. I'll write some explanatory comments saying that this is work in progress and if they want it done sooner please contribute on GitHub :P
The text was updated successfully, but these errors were encountered: