Update and simplify todomvc example

This commit is contained in:
Dan Holmsand 2015-07-31 17:17:18 +02:00
parent 0de01ee420
commit 76de698e56
2 changed files with 17 additions and 25 deletions

View File

@ -1,6 +0,0 @@
(ns todomvc.dev
(:require [todomvc.core :as example]
[figwheel.client :as fw]))
(fw/start {:on-jsload example/run
:websocket-url "ws://localhost:3449/figwheel-ws"})

View File

@ -1,31 +1,29 @@
(defproject todomvc-reagent "0.5.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2816"]
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "0.0-3308"]
[reagent "0.5.0"]
[figwheel "0.2.3-SNAPSHOT"]]
[figwheel "0.3.7"]]
:plugins [[lein-cljsbuild "1.0.4"]
[lein-figwheel "0.2.3-SNAPSHOT"]]
:plugins [[lein-cljsbuild "1.0.6"]
[lein-figwheel "0.3.7"]]
:hooks [leiningen.cljsbuild]
:profiles {:dev {:cljsbuild
{:builds {:client {:source-paths ["devsrc"]
:compiler
{:main todomvc.dev
:optimizations :none
:source-map true
:source-map-timestamp true}}}}}
{:builds {:client
{:figwheel {:on-jsload "todomvc.core/run"}
:compiler {:main "todomvc.core"
:optimizations :none}}}}}
:prod {:cljsbuild
{:builds {:client {:compiler
{:optimizations :advanced
:elide-asserts true
:pretty-print false}}}}}}
{:builds {:client
{:compiler {:optimizations :advanced
:elide-asserts true
:pretty-print false}}}}}}
:figwheel {:repl false}
:cljsbuild {:builds {:client {:source-paths ["src"]
:compiler
{:output-dir "target/client"
:output-to "target/client.js"}}}})
:cljsbuild {:builds {:client
{:source-paths ["src"]
:compiler {:output-dir "target/client"
:output-to "target/client.js"}}}})