Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cljsbuild error when :output-to is outside of module root #903

Closed
davidbalbert opened this issue May 26, 2015 · 0 comments
Closed

Cljsbuild error when :output-to is outside of module root #903

davidbalbert opened this issue May 26, 2015 · 0 comments
Milestone

Comments

@davidbalbert
Copy link

We have a Rails app with a ClojureScript front-end (the source is available on GitHub). We building the CLJS client with Leiningen and lein-cljsbuild.

The root of the CLJS project is ./client. The root of the Rails project is ./. In order to integrate with the Rails asset pipeline, we have lein-cljsbuild write the compiled output files to directories outside the root of the CLJS project. This works fine with Leiningen on the command line, but in Cursive, the following error is thrown:

3:15:47 PM Throwable: The file '/Users/david/Development/community/client/../app/assets/javascripts' is not under content entry root '/Users/david/Development/community/client'

I would expect this to work in Cursive, but I am new to Cursive and IntelliJ and not quite sure what I should expect to happen.

Please let me know if there are any questions I can answer or any other things you need from me.

Here is our project.clj:

(defproject community "0.1.0-SNAPSHOT"
  :dependencies [[org.clojure/clojure "1.7.0-beta1"]
                 [org.clojure/clojurescript "0.0-3196"]
                 [org.clojure/core.async "0.1.346.0-17112a-alpha"]

                 [org.omcljs/om "0.8.8"]
                 [sablono "0.3.4"]
                 [prismatic/om-tools "0.3.11"]]

  :jvm-opts ^:replace ["-Xmx512m" "-server"]

  :plugins [[lein-cljsbuild "1.0.5"]]

  :profiles {:dev {:source-paths ["src"]}}

  :cljsbuild {:builds [{:id "dev"
                        :source-paths ["src"]
                        :compiler {:output-to "../public/client/client-dev.js"
                                   :output-dir "../public/client/client-dev"
                                   :optimizations :none
                                   :pretty-print true
                                   :source-map "../public/client/client-dev.js.map"}}
                       {:id "test"
                        :source-paths ["src" "test"]
                        :compiler {:output-to "../public/client/client-test.js"
                                   :output-dir "../public/client/client-test"
                                   :optimizations :whitespace
                                   :pretty-print true}}
                       {:id "prod"
                        :source-paths ["src"]
                        :compiler {:output-to "../app/assets/javascripts/client-prod.js"
                                   :optimizations :advanced
                                   :pretty-print false
                                   :externs ["marked-externs.js" "highlight-externs.js" "bootstrap-tooltip-externs.js"]}}]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants