Skip to content

Commit

Permalink
Add output-dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
micha committed Oct 22, 2014
1 parent b873c08 commit 25d223b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.boot
Expand Up @@ -6,7 +6,7 @@

(require '[tailrecursion.boot-useful :refer :all])

(def +version+ "0.0-2371-11")
(def +version+ "0.0-2371-12")

(useful! +version+)

Expand Down
5 changes: 3 additions & 2 deletions src/tailrecursion/boot_cljs.clj
Expand Up @@ -49,7 +49,8 @@
s source-map bool "Create source map for compiled JS."
W no-warnings bool "Suppress compiler warnings."]

(let [output-path (or output-path "main.js")
(let [output-dir (or output-dir "out")
output-path (or output-path "main.js")
inc-dir (core/mksrcdir!)
lib-dir (core/mksrcdir!)
ext-dir (core/mksrcdir!)
Expand All @@ -61,7 +62,7 @@
keep-out? (or source-map (= :none optimizations))
out-dir (if-not keep-out?
(core/mktmpdir!)
(apply io/file tgt-dir (remove empty? [js-parent "out"])))
(apply io/file tgt-dir (remove empty? [js-parent output-dir])))
base-opts {:libs []
:externs []
:preamble []
Expand Down

0 comments on commit 25d223b

Please sign in to comment.