Skip to content

Commit

Permalink
release task
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesloetzsch committed Sep 5, 2019
1 parent 25ea6de commit 3d771cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/leiningen/termide.clj
Expand Up @@ -40,6 +40,11 @@
(-> pb .environment (.put "CHROME_BIN" chromium-bin))
(-> pb .inheritIO .start .waitFor)))

(defn release
"Compile productive build"
[project args]
(-> (ProcessBuilder. ["./node_modules/.bin/shadow-cljs" "release" ":app"]) .inheritIO .start .waitFor))

(defn dev
"Like the dev-alias provided by re-frame template, but with additional buildHook and termide in dependencies"
[project args]
Expand Down Expand Up @@ -96,7 +101,7 @@

(defn termide
"Terminal IDE for re-frame/shadow-cljs projects"
{:subtasks [#'setup #'test #'dev #'vim #'tmux #'clj-eval #'cljs-eval]}
{:subtasks [#'setup #'test #'release #'dev #'vim #'tmux #'clj-eval #'cljs-eval]}
[project & args]
(let [sub-name (first args)
sub-args (rest args)]
Expand All @@ -105,6 +110,8 @@
(setup project sub-args)
"test"
(test project sub-args)
"release"
(release project sub-args)
"dev"
(dev project sub-args)
"vim"
Expand Down

0 comments on commit 3d771cd

Please sign in to comment.