Skip to content

Commit

Permalink
Update figwheel and simplify doc app configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
holmsand committed May 27, 2016
1 parent baf2107 commit d3ee4a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -23,7 +23,7 @@ runpack: target/webpack/bundle.js

# development build with figwheel, but no tests
runnotest:
@$(MAKE) run PROF=+dev-notest,$(PROF)
@$(MAKE) run PROF=dev-notest,$(PROF)

# production build with auto-rebuild
runprod: clean
Expand Down
2 changes: 1 addition & 1 deletion demo/reagentdemo/core.cljs
Expand Up @@ -41,4 +41,4 @@
:css-infiles ["site/public/css/examples.css"
"site/public/css/main.css"]}))

(defonce inited (init!))
(init!)
18 changes: 7 additions & 11 deletions project.clj
Expand Up @@ -21,18 +21,16 @@
:compiler
{:main "reagenttest.runtests"}}}}}

:dev [:test
{:dependencies [[figwheel "0.5.2"]]
:plugins [[lein-figwheel "0.5.2"]]
:fig [{:dependencies [[figwheel "0.5.3-2"]]
:plugins [[lein-figwheel "0.5.3-2"]]
:source-paths ["demo"] ;; for lighttable
:resource-paths ["site" "outsite"]
:figwheel {:css-dirs ["site/public/css"]}
:cljsbuild
{:builds
{:client
{:figwheel {:on-jsload "reagenttest.runtests/reload"}
{:figwheel true
:compiler {:source-map true
:source-map-timestamp true
:optimizations :none
;; :recompile-dependents false
:output-dir "outsite/public/js/out"
Expand All @@ -50,7 +48,6 @@
{:compiler {:optimizations :advanced
:elide-asserts true
:pretty-print false
:main "reagentdemo.core"
;; :pseudo-names true
:output-dir "target/client"}}}}}]

Expand All @@ -67,11 +64,9 @@

:prod-test [:prod :test]

:dev-notest [:dev
{:cljsbuild
{:builds {:client
{:compiler {:load-tests false}}}}
:figwheel {:validate-config false}}]}
:dev [:fig :test]

:dev-notest [:fig]}

:clean-targets ^{:protect false} [:target-path :compile-path
"outsite/public/js"
Expand All @@ -88,6 +83,7 @@
"examples/simple/src"
"examples/geometry/src"]
:compiler {:parallel-build true
:main "reagentdemo.core"
:output-to "outsite/public/js/main.js"}}}}

:figwheel {:http-server-root "public" ;; assumes "resources"
Expand Down
3 changes: 0 additions & 3 deletions test/reagenttest/runtests.cljs
Expand Up @@ -54,7 +54,4 @@
(reset! demo/test-results [#'test-output-mini])
(run-tests)))

(defn reload []
(demo/init!))

(init!)

0 comments on commit d3ee4a7

Please sign in to comment.