Created
November 8, 2016 12:16
-
-
Save zehnpaard/39e4f73997f9cf46d7805aa88bfbd472 to your computer and use it in GitHub Desktop.
Minimal Figwheel Project Structure
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-figwheel.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
. | |
├── project.clj | |
├── resources | |
│ └── public | |
│ └── index.html | |
└── src | |
└── min_figwheel | |
└── core.cljs |
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="js/out/goog/base.js"></script> | |
<script src="js/main.js"></script> | |
<script>goog.require('min_figwheel.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-figwheel "0.0.1" | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[org.clojure/clojurescript "1.9.293"]] | |
:plugins [[lein-cljsbuild "1.1.4"] | |
[lein-figwheel "0.5.8"]] | |
:cljsbuild | |
{:builds | |
{:dev {:source-paths ["src"] | |
:figwheel true | |
:compiler {:output-to "resources/public/js/main.js" | |
:output-dir "resources/public/js/out/"}}}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment