avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 146 forks source link

Free the npm package from third party dependencies #781

Closed lydell closed 1 year ago

lydell commented 1 year ago

This is:

I’ve documented a bit how to publish. If you want to automate that, feel free to do so. I won’t be doing any such things in this PR though.

Read the PR description as well as the changes in PUBLISHING.md in https://github.com/elm/compiler/pull/2287 for full details on how it works, the pros, the (minor) cons, and the full compatibility story.

Fixes https://github.com/avh4/elm-format/issues/779. There might be more issues to go through and see if they are still relevant: https://github.com/avh4/elm-format/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+binwrap

avh4 commented 1 year ago

FYI, I'm gonna take a look at this after I get arm64 builds working. (https://github.com/avh4/elm-format/milestone/31 should be in the correct order now.)

avh4 commented 1 year ago

FYI, I started a new PR for automating the package generation https://github.com/avh4/elm-format/pull/795, which will include this PR when it's merged.

Thanks for the help!

avh4 commented 1 year ago

Merged via https://github.com/avh4/elm-format/pull/795

Thank you!!

I did a trial run published as @avh4/elm-format-test@rc, which seems to work on all platforms. I also added a github workflow that checks installing the published packages: https://github.com/avh4/elm-format/actions/runs/4209086779

(and FYI, I'll do one last trial run as elm-format@0.8.6-rc.1 once 0.8.6 is ready)