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"
|
||||
: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"}}}})
|
||||
|
|
Loading…
Reference in New Issue