Created
November 5, 2016 14:23
-
-
Save zehnpaard/d843b1479a2ef28d3bd9f915639f5962 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns try-cljsbuild.core) | |
(js/alert "Hello Clojurescript!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="devout/goog/base.js"></script> | |
<script src="devout/main.js"></script> | |
<script>goog.require('try_cljsbuild.core')</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="out/main.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject try-cljsbuild "0.0.1" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.293"]] | |
:plugins [[lein-cljsbuild "1.1.4"]] | |
:cljsbuild | |
{:builds | |
{:dev {:source-paths ["src"] | |
:compiler {:output-to "devout/main.js" | |
:output-dir "devout"}} | |
:prod {:source-paths ["src"] | |
:compiler {:output-to "out/main.js" | |
:output-dir "out" | |
:optimizations :advanced}}}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment