(def project 'b-spline) (def version "0.1.0-SNAPSHOT") (set-env! :resource-paths #{"resources" "src"} :source-paths #{"test"} :dependencies '[[org.clojure/clojure "RELEASE"] [adzerk/boot-test "RELEASE" :scope "test"] [nightlight "RELEASE" :scope "test"]]) (task-options! aot {:namespace #{'b-spline.core}} pom {:project project :version version :description "FIXME: write description" :url "http://example/FIXME" :scm {:url "https://github.com/yourname/b-spline"} :license {"Eclipse Public License" "http://www.eclipse.org/legal/epl-v10.html"}} repl {:init-ns 'b-spline.core} jar {:main 'b-spline.core :file (str "b-spline-" version "-standalone.jar")}) (require '[nightlight.boot :refer [nightlight]]) (deftask build "Build the project locally as a JAR." [d dir PATH #{str} "the set of directories to write to (target)."] (let [dir (if (seq dir) dir #{"target"})] (comp (aot) (pom) (uber) (jar) (target :dir dir)))) ;;(deftask run ;; "Run the project." ;; [a args ARG [str] "the arguments for the application."] ;; (with-pass-thru fs ;; (require '[b-spline.core :as app]) ;; (apply (resolve 'app/-main) args))) (deftask run [] (comp (wait) (nightlight :port 4000))) (require '[adzerk.boot-test :refer [test]])