bb.edn
Pinchord · pinchord.git · Tickets · Changelog
Branches > pre-release-31-4 > 1bb903b > files / bb.edn
{:tasks
{:requires ([babashka.fs :as fs]
[clojure.edn :as edn])
generate {:doc "Generate the Javelin and Plover files from chords.edn"
:task (let [mods (str "pinchord-mods-" (:version (edn/read-string (slurp "chords.edn"))) ".json")]
(shell "bb generate-dictionary.clj")
(shell "bb generate-mods.clj")
(fs/move mods (fs/path "plover_pinchord/dictionaries" mods) {:replace-existing true}))}
pypi {:doc "Clean build the Plover plugin, and upload it to PyPI"
:task (do (fs/delete-tree "dist")
(shell "nix shell nixpkgs#python3Packages.build nixpkgs#python3Packages.twine"
"--command" "sh" "-c"
"pyproject-build && twine check dist/* && twine upload dist/*"))}}}