scripts
This commit is contained in:
parent
7dd4af2ef4
commit
8ea7d4995d
2 changed files with 11 additions and 11 deletions
|
|
@ -4,19 +4,19 @@
|
||||||
'[babashka.tasks :refer [shell]]
|
'[babashka.tasks :refer [shell]]
|
||||||
'[clojure.string :as str])
|
'[clojure.string :as str])
|
||||||
|
|
||||||
;; (fs/copy "resources/public/index.html" "gh-pages"
|
(fs/copy "resources/public/index.html" "gh-pages"
|
||||||
;; {:replace-existing true})
|
{:replace-existing true})
|
||||||
;; (shell "clojure -M:dev -m shadow.cljs.devtools.cli release main")
|
(shell "clojure -M:dev -m shadow.cljs.devtools.cli release main")
|
||||||
;; (def index-file (fs/file "gh-pages" "index.html"))
|
(def index-file (fs/file "gh-pages" "index.html"))
|
||||||
;; (spit index-file (str/replace (slurp index-file) "main.js" "sci_script_tag.js"))
|
(spit index-file (str/replace (slurp index-file) "main.js" "sci_script_tag.js"))
|
||||||
;; (fs/create-dirs (fs/file "gh-pages" "js"))
|
(fs/create-dirs (fs/file "gh-pages" "js"))
|
||||||
;; (fs/copy (fs/file "resources" "public" "js" "main.js")
|
(fs/copy (fs/file "resources" "public" "js" "main.js")
|
||||||
;; (fs/file "gh-pages" "js" "sci_script_tag.js")
|
(fs/file "gh-pages" "js" "sci_script_tag.js")
|
||||||
;; {:replace-existing true})
|
{:replace-existing true})
|
||||||
|
|
||||||
(def with-gh-pages (partial shell {:dir "gh-pages"}))
|
(def with-gh-pages (partial shell {:dir "gh-pages"}))
|
||||||
#_(with-gh-pages "git add .")
|
(with-gh-pages "git add .")
|
||||||
#_(with-gh-pages "git commit -m 'update build'")
|
(with-gh-pages "git commit -m 'update build'")
|
||||||
(with-gh-pages "git push origin gh-pages")
|
(with-gh-pages "git push origin gh-pages")
|
||||||
|
|
||||||
nil
|
nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue