Created
November 5, 2016 00:26
-
-
Save zehnpaard/396b82f11d4850908e253e6f9ca2e648 to your computer and use it in GitHub Desktop.
Nearly Minimal Clojurescript Compilation with cljsbuild
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 min-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="./out/goog/base.js"></script> | |
<script src="./out/main.js"></script> | |
<script>goog.require('min_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
(defproject min-cljsbuild "0.0.3" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.293"]] | |
:plugins [[lein-cljsbuild "1.1.4"]] | |
:cljsbuild {:builds [{:source-paths ["src"] | |
:compiler {:output-to "out/main.js" | |
:output-dir "out"}}]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment