text.hmsk.me

Elmのパッケージを初めて公開した

June 30, 2020

code

このブログ用に手で書いた modern-normalizeelm-css で扱うコードを切り出して、 hmsk/elm-css-modern-normalize として公開した。

elm-css-modern-normalize 1.0.0
package.elm-lang.org

他人のモジュールを見て回って、 elm.json やディレクトリ構成の雰囲気を掴んで、ほとんどの手順は

The basic steps to publish a package with Elm 0.19
I was gearing up to publish my first package, and was a bit surprised that I was unable to find an explanation of the basic steps involved. There are a couple of posts for Elm 0.18 but they are out of date now, so I decided to write down all the things I had to do as I went. Granted, the steps are quite straightforward, as you will see, but it's still a bit of a barrier when they aren't spelled out (or at least a great excuse to procrastinate for me)!
korban.net

を見て進めたらすんなりいった。

当初プライベートリポジトリを立てて作業を始めていたために、 elm publish で GitHub 上に該当のタグが無いという、そんなはずはないのになーとなるエラーに少しハマった。

次からは elm bump を叩いてバージョンの更新を行うらしい。

世にはCSSリセットをやるための同様のモジュールは既にいくつかあって、

使いたかった modern-normalize に対応するよう、どこかに Pull Request を送ればよかったかもしれないのだけど、Elm向けのパッケージの公開をしたことがなかったのと、近く公開したいものがあったのでその素振りとして、自分で公開してメンテナンスしてみることにした。