Skip to content

Instantly share code, notes, and snippets.

@zehnpaard
Created November 8, 2016 12:16
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 zehnpaard/39e4f73997f9cf46d7805aa88bfbd472 to your computer and use it in GitHub Desktop.
Save zehnpaard/39e4f73997f9cf46d7805aa88bfbd472 to your computer and use it in GitHub Desktop.
Minimal Figwheel Project Structure
(ns min-figwheel.core)
(js/alert "Hello ClojureScript!")
.
├── project.clj
├── resources
│   └── public
│   └── index.html
└── src
└── min_figwheel
└── core.cljs
<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>
(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