2014-01-12 18 views
0

有沒有一種方法可以指定通過repl-launch構建特定的構建配置?在repl-launch中使用特定的lein-cljsbuild配置?

也許是這樣的:

lein trampoline cljsbuild <build_config_id> repl-launch chrome 

我想我:開發和:督促建立配置,以輸出到同一個文件,這樣就不必擔心有一個索引dev.html其中包括cljsoutput-dev.js等

目前我開始我的服務器

lein ring server-headless 3000 
+0

嗨@Core,我的回答是否適合你的問題呢? – tangrammer

回答

0

我認爲你可以找到雷音-cljsbuild REPL支持頁面上的解決方案,https://github.com/emezeske/lein-cljsbuild/blob/1.0.1/doc/REPL.md#repl-launch

您可以指定REPL推出的命令爲cljs,打造性能

(defproject lein-cljsbuild-example "1.2.3" 
    :plugins [[lein-cljsbuild "1.0.1"]] 
    :cljsbuild { 
    :repl-listen-port 9000 
    :repl-launch-commands 
     {"my-launch" ["firefox" "-jsconsole" "http://localhost/my-page"]}) 

還有一個@cemerick/austin項目非常相關型號這個問題,也許可以幫助你。 (Browser-connected REPLs

相關問題