Update release script for Replicant Tictactoe case (#112)

This commit is contained in:
Jeroen van Dijk 2025-06-16 17:06:08 +03:00 committed by GitHub
parent a1b2723ef6
commit d9da6ffce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View file

@ -178,6 +178,7 @@
Babashka + scittle implementation of the Luminus guestbook. Babashka + scittle implementation of the Luminus guestbook.
</a></li> </a></li>
<li><a href="codemirror.html">Codemirror</a></li> <li><a href="codemirror.html">Codemirror</a></li>
<li><a href="replicant_tictactoe.html">Tic-tac-toe with Replicant</a></li>
</ul> </ul>
</body> </body>

View file

@ -16,7 +16,7 @@
</head> </head>
<body> <body>
<h1>Scittle tic-tac-toe</h1> <h1>Scittle tic-tac-toe built with Replicant</h1>
<h2>What is Scittle?</h2> <h2>What is Scittle?</h2>
<p>Read <a href="index.html">the main page</a> for more details.</p> <p>Read <a href="index.html">the main page</a> for more details.</p>
<h2>The game</h2> <h2>The game</h2>

View file

@ -26,6 +26,9 @@
(fs/copy "resources/public/codemirror.html" "gh-pages" (fs/copy "resources/public/codemirror.html" "gh-pages"
{:replace-existing true}) {:replace-existing true})
(fs/copy "resources/public/replicant_tictactoe.html" "gh-pages"
{:replace-existing true})
(def html-source-dir (fs/file "resources" "public" "html")) (def html-source-dir (fs/file "resources" "public" "html"))
(def html-target-dir (fs/file "gh-pages" "html")) (def html-target-dir (fs/file "gh-pages" "html"))
(fs/create-dirs html-target-dir) (fs/create-dirs html-target-dir)
@ -62,6 +65,9 @@
{:replace-existing true})) {:replace-existing true}))
(fs/glob cljs-source-dir "*.cljs")) (fs/glob cljs-source-dir "*.cljs"))
(println "Copying dir resources/public/cljs/replicant-tictactoe")
(fs/copy-tree (fs/file cljs-source-dir "replicant-tictactoe") (fs/file cljs-target-dir "replicant-tictactoe") {:replace-existing true})
(run! (fn [f] (run! (fn [f]
(println "Copying" (str f)) (println "Copying" (str f))
(fs/copy f (fs/copy f