diff --git a/src/build/config.clj b/src/build/config.clj new file mode 100644 index 0000000..62610ac --- /dev/null +++ b/src/build/config.clj @@ -0,0 +1,5 @@ +(ns build.config + (:refer-clojure :exclude [name])) + +(def name "Backgammon") +(def description "Backgammon game with local multiplayer (no single player).") diff --git a/src/build/create_index.clj b/src/build/create_index.clj index b80a77a..8a4f023 100644 --- a/src/build/create_index.clj +++ b/src/build/create_index.clj @@ -1,6 +1,7 @@ (ns build.create-index (:require - [build.util :as u])) + [build.util :as u] + [build.config :as c])) (defn render [module-id->output-name] (str @@ -11,8 +12,8 @@ - - Backgammon + + " c/name " output-name) "\"> output-name) "\" type=\"image/svg+xml\"> output-name) "\"> diff --git a/src/build/create_manifest.clj b/src/build/create_manifest.clj index 3e512db..07038fc 100644 --- a/src/build/create_manifest.clj +++ b/src/build/create_manifest.clj @@ -1,12 +1,13 @@ (ns build.create-manifest (:require [jsonista.core :as j] - [build.util :as u])) + [build.util :as u] + [build.config :as c])) (defn render [module-id->output-name] (j/write-value-as-string - {:name "Backgammon" - :description "Backgammon game with local multiplayer (no single player)." + {:name c/name + :description c/description :categories ["games"] :icons [{:src (u/asset "img/icon.svg" module-id->output-name) :sizes "any"