Fix build scripts (related to webworker).

This commit is contained in:
Andrey Antukh 2016-04-11 17:31:14 +03:00
parent 94fc4d2b88
commit 8916a9b7ac
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
8 changed files with 56 additions and 46 deletions

View file

@ -7,37 +7,24 @@
(ra/start-figwheel!
{:figwheel-options {:css-dirs ["resources/public/css"]}
:build-ids ["dev" "worker"]
:build-ids ["dev"]
:all-builds
[{:id "dev"
:figwheel {:on-jsload "uxbox.ui/init"}
:source-paths ["src" "vendor"]
:compiler {:main 'uxbox.core
:asset-path "js"
:parallel-build false
:optimizations :none
:closure-defines {"uxbox.repo.core.url"
"https://test.uxbox.io/api"}
:warnings {:ns-var-clash false}
:pretty-print true
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:verbose true}}
{:id "worker"
:source-paths ["src" "vendor"]
:compiler {:main 'uxbox.worker
:asset-path "js"
:parallel-build false
:optimizations :simple
:warnings {:ns-var-clash false}
:pretty-print true
:static-fns true
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/js/worker.js"
:verbose true}}]})
:compiler
{:main 'uxbox.core
:asset-path "js"
:parallel-build false
:optimizations :none
:closure-defines {"uxbox.repo.core.url"
"https://test.uxbox.io/api"}
:warnings {:ns-var-clash false}
:pretty-print true
:language-in :ecmascript6
:language-out :ecmascript5
:output-to "resources/public/js/main.js"
:output-dir "resources/public/js"
:verbose true}}]})
(ra/cljs-repl "dev")