Checks the built files before a release of Erabi.
$ mix erabi.release_check
This task is for work on Erabi itself; the release alias runs it
after mix erabi.build and before mix hex.publish. In any project
but Erabi, it stops with an error. It fails when:
- one of the eight bundle files (
erabi.esm.js,erabi.cjs.js,erabi-color.esm.js,erabi-color.cjs.js,erabi-emoji.esm.js,erabi-emoji.cjs.js,erabi.cssanderabi-sumi.css) is missing frompriv/static, or is empty (the empty files that CI makes are not a build); priv/staticholds any other file or directory;- the emoji data of a language (
priv/emoji/emoji-<language>.json, and its.gz) is missing or empty (npm run emojiinassets/makes it); - the
versionofpackage.jsonis not the version ofmix.exs.