mirror of https://github.com/status-im/reagent.git
Update and simplify todomvc example
This commit is contained in:
parent
0de01ee420
commit
76de698e56
|
@ -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"})
|
|
|
@ -1,31 +1,29 @@
|
||||||
(defproject todomvc-reagent "0.5.0"
|
(defproject todomvc-reagent "0.5.0"
|
||||||
:dependencies [[org.clojure/clojure "1.6.0"]
|
:dependencies [[org.clojure/clojure "1.7.0"]
|
||||||
[org.clojure/clojurescript "0.0-2816"]
|
[org.clojure/clojurescript "0.0-3308"]
|
||||||
[reagent "0.5.0"]
|
[reagent "0.5.0"]
|
||||||
[figwheel "0.2.3-SNAPSHOT"]]
|
[figwheel "0.3.7"]]
|
||||||
|
|
||||||
:plugins [[lein-cljsbuild "1.0.4"]
|
:plugins [[lein-cljsbuild "1.0.6"]
|
||||||
[lein-figwheel "0.2.3-SNAPSHOT"]]
|
[lein-figwheel "0.3.7"]]
|
||||||
|
|
||||||
:hooks [leiningen.cljsbuild]
|
:hooks [leiningen.cljsbuild]
|
||||||
|
|
||||||
:profiles {:dev {:cljsbuild
|
:profiles {:dev {:cljsbuild
|
||||||
{:builds {:client {:source-paths ["devsrc"]
|
{:builds {:client
|
||||||
:compiler
|
{:figwheel {:on-jsload "todomvc.core/run"}
|
||||||
{:main todomvc.dev
|
:compiler {:main "todomvc.core"
|
||||||
:optimizations :none
|
:optimizations :none}}}}}
|
||||||
:source-map true
|
|
||||||
:source-map-timestamp true}}}}}
|
|
||||||
|
|
||||||
:prod {:cljsbuild
|
:prod {:cljsbuild
|
||||||
{:builds {:client {:compiler
|
{:builds {:client
|
||||||
{:optimizations :advanced
|
{:compiler {:optimizations :advanced
|
||||||
:elide-asserts true
|
:elide-asserts true
|
||||||
:pretty-print false}}}}}}
|
:pretty-print false}}}}}}
|
||||||
|
|
||||||
:figwheel {:repl false}
|
:figwheel {:repl false}
|
||||||
|
|
||||||
:cljsbuild {:builds {:client {:source-paths ["src"]
|
:cljsbuild {:builds {:client
|
||||||
:compiler
|
{:source-paths ["src"]
|
||||||
{:output-dir "target/client"
|
:compiler {:output-dir "target/client"
|
||||||
:output-to "target/client.js"}}}})
|
:output-to "target/client.js"}}}})
|
||||||
|
|
Loading…
Reference in New Issue