Skip to content

Instantly share code, notes, and snippets.

@yayitswei
Last active December 11, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yayitswei/4659442 to your computer and use it in GitHub Desktop.
Save yayitswei/4659442 to your computer and use it in GitHub Desktop.
(defproject testtest "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
[jayq "2.0.0"]
[compojure "1.1.5"]
[yayitswei/yonder "0.0.1-SNAPSHOT"]
[ring-middleware-format "0.2.4"]
[org.clojure/clojurescript "0.0-1576"]
[org.clojure/google-closure-library-third-party "0.0-2029"]
]
:plugins [[lein-cljsbuild "0.2.10"]
[lein-ring "0.8.2"]]
:ring {:handler versaltest.core/site}
:cljsbuild {:builds
{:test
{
:source-path "src/cljs"
:compiler
{:output-to "resources/private/test.js"
:optimizations :simple
:pretty-print true
}}
}
:test-commands
{"unit" ["phantomjs"
"phantom/unit-test.js"
"resources/private/html/test.html"]}
})
(ns cljs.test
(:require [clojure.browser.repl :as repl]))
(set! (.-onload js/window) #(repl/connect "http://localhost:9000/repl"))
<html>
<head>
</head>
<body>
<script src="test.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment