【问题标题】:use specific lein-cljsbuild config in repl-launch?在 repl-launch 中使用特定的 lein-cljsbuild 配置?
【发布时间】:2014-01-12 08:40:20
【问题描述】:

有没有办法通过 repl-launch 指定只构建特定的构建配置?

可能是这样的:

lein trampoline cljsbuild <build_config_id> repl-launch chrome

我希望我的 :dev 和 :prod 构建配置输出到同一个文件,这样我就不必担心包含 cljsoutput-dev.js 等的 index-dev.html。

目前我用

启动我的服务器
lein ring server-headless 3000

【问题讨论】:

  • 嗨@Core,我的回答现在适合你的问题吗?

标签: clojure clojurescript leiningen


【解决方案1】:

我认为您可以在 lein-cljsbuild repl-support 页面上找到解决方案,https://github.com/emezeske/lein-cljsbuild/blob/1.0.1/doc/REPL.md#repl-launch

您可以将 repl-launch-commands 指定为 cljs-build 属性

(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)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-14
    • 1970-01-01
    • 2017-08-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多