Created
September 29, 2015 18:53
-
-
Save kennyjwilli/b063fb9e827a5eb3b21c to your computer and use it in GitHub Desktop.
build.boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-env! | |
:source-paths #{"src" "test"} | |
:resource-paths #{"src" "test" "sass"} | |
:wagons '[[s3-wagon-private "1.1.2"]] | |
:repositories [["clojars" "http://clojars.org/repo/"] | |
["maven-central" "http://repo1.maven.org/maven2/"] | |
["releases" {:url "http://archiva:8080/repository/internal" | |
:username (System/getenv "ARCHIVA_USERNAME") | |
:password (System/getenv "ARCHIVA_PASSWORD")}] | |
["my.datomic.com" {:url "https://my.datomic.com/repo" | |
:username (System/getenv "DATOMIC_USERNAME") | |
:password (System/getenv "DATOMIC_PASSWORD")}]] | |
:dependencies '[[adzerk/boot-cljs "0.0-3308-0" :scope "test"] | |
[adzerk/boot-cljs-repl "0.2.0" :scope "test"] | |
[adzerk/boot-reload "0.3.1" :scope "test"] | |
[pandeiro/boot-http "0.6.2" :scope "test"] | |
[cljsjs/boot-cljsjs "0.5.0" :scope "test"] | |
[allgress/boot-tasks "0.2.2" :scope "test"] | |
[mathias/boot-sassc "0.1.5"]]) | |
(require | |
'[adzerk.boot-cljs :refer :all] | |
'[adzerk.boot-cljs-repl :refer :all] | |
'[adzerk.boot-reload :refer :all] | |
'[allgress.boot-tasks :refer :all] | |
'[pandeiro.boot-http :refer :all] | |
'[cljsjs.boot-cljsjs :refer :all] | |
'[mathias.boot-sassc :refer :all]) | |
(set-project-deps!) | |
(default-task-options!) | |
(task-options! | |
reload {:on-jsload 'allgress.cereus.core/on-jsload}) | |
(deftask web-dev | |
"Developer workflow for web-component UX." | |
[] | |
(comp | |
(asset-paths :asset-paths #{"html" "styles" "bower_components"}) | |
(serve :dir "target/") | |
(watch) | |
#_(checkout :dependencies [['allgress/cereus "0.9.4"] | |
['freactive "0.3.0"]]) | |
(speak) | |
(reload) | |
(sass :sass-file "main.scss" | |
:output-dir "styles" | |
:line-numbers true | |
:source-maps true) | |
(cljs))) | |
(deftask cljs-content | |
"" | |
[] | |
(comp | |
(asset-paths :asset-paths #{"html" "styles" "bower_components"}) | |
(sass :sass-file "main.scss" | |
:output-dir "styles" | |
:line-numbers true | |
:source-maps true) | |
(cljs-build))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment