8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Elmでライブラリを作るときのテストに追加したいコマンド

8
Posted at
elm make --docs=/tmp/docs.json

これを npm scripts の "test" に追加しておくと便利 (package.jsonの例)

これを実行すると、パッケージサイトに公開するときの要件を満たしているかチェックしてくれます。
たとえば、expose している関数に {-| Some comment -} 形式のコメントが付いていないときに教えてくれます。

通常の elm make ではこういうのは検知してくれませんが、--docs オプションにJSONファイルをわたすと、
パッケージサイト用にドキュメントを生成しようとしてチェックしてくれます。

さくらちゃんにご飯をあげる
さくらちゃんをもっと見る
他の記事を見る
EC46eTKUUAAvxf1.jpeg

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?