My project.clj is a the end of this post, but when I build the javascript,
my main file does not have this line:
goog.addDependency("../cljs/core.js", ['cljs.core'], ['goog.string',
'goog.object', 'goog.string.StringBuffer', 'goog.array']);
I am running clojurescript 0.0-2277 and my project.clj looks like this:
(defproject podcaster "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [
[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2277" :scope "provided"]
[org.clojure/core.async "0.1.267.0-0d7780-alpha" :scope
"provided"]
[om "0.7.1"]
[sablono "0.2.21"]
[com.cemerick/piggieback "0.1.3"]
[figwheel "0.1.3-SNAPSHOT"]
]
:plugins [
[lein-cljsbuild "1.0.4-SNAPSHOT"]
[lein-figwheel "0.1.3-SNAPSHOT"]
]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:source-paths ["src"]
:cljsbuild {
:test-commands {"unit-tests" ["runners/phantomjs.js" :runner
"test/polyfills/bind.js"
"test/polyfills/requestanimationframe.js"
"target/test/ical-test.js"]}
:builds [
{:id "dev"
:source-paths ["src/cljs"]
:compiler
{:preamble ["react/react.min.js"]
:optimizations :none
:output-to "resources/public/js/podcaster.js"
:output-dir "resources/public/js/"
:pretty-print true
:source-map true}}
{:id "test"
:source-paths ["src/cljs"
"test/cljs"]
:compiler {
:pretty-print true
:preamble ["react/react.min.js"]
:externs ["react/react.min.js"]
:output-dir "target/test"
:output-to "target/test/podcaster-test.js"
:optimizations :simple}}]}
:figwheel {
:http-server-root "public" ;; this will be in resources/
:port 3449 ;; default
;; CSS reloading
;; :css-dirs has no default value
;; if :css-dirs is set figwheel will detect css file changes and
;; send them to the browser
:css-dirs ["resources/public/css"]}
:aliases {"fig" ["do" "clean," "figwheel"]
"auto-test" ["do" "clean," "cljsbuild" "auto" "test"]})
Cheers
Paul Cowan
Cutting-Edge Solutions (Scotland)
blog: http://thesoftwaresimpleton.com/
website: http://www.cuttingedgesolutionsscotland.com/
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.