mix fude.release_check (Fude v0.1.0)

Copy Markdown View Source

Checks the built files before a release of Fude.

$ mix fude.release_check

This task is for work on Fude itself; the release alias runs it after mix fude.build and before mix hex.publish. In any project but Fude, it stops with an error. It fails when:

  • one of the bundle files (fude.esm.js, fude.cjs.js, fude.css, fude-sumi.css, and the maps maps/world.json and maps/us-states.json) is missing from priv/static, or is empty (the empty files that CI makes are not a build);
  • priv/static holds any other file;
  • the version of package.json is not the version of mix.exs.