You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4KB

  1. (def project 'b-spline)
  2. (def version "0.1.0-SNAPSHOT")
  3. (set-env! :resource-paths #{"resources" "src"}
  4. :source-paths #{"test"}
  5. :dependencies '[[org.clojure/clojure "RELEASE"]
  6. [adzerk/boot-test "RELEASE" :scope "test"]
  7. [nightlight "RELEASE" :scope "test"]])
  8. (task-options!
  9. aot {:namespace #{'b-spline.core}}
  10. pom {:project project
  11. :version version
  12. :description "FIXME: write description"
  13. :url "http://example/FIXME"
  14. :scm {:url "https://github.com/yourname/b-spline"}
  15. :license {"Eclipse Public License"
  16. "http://www.eclipse.org/legal/epl-v10.html"}}
  17. repl {:init-ns 'b-spline.core}
  18. jar {:main 'b-spline.core
  19. :file (str "b-spline-" version "-standalone.jar")})
  20. (require '[nightlight.boot :refer [nightlight]])
  21. (deftask build
  22. "Build the project locally as a JAR."
  23. [d dir PATH #{str} "the set of directories to write to (target)."]
  24. (let [dir (if (seq dir) dir #{"target"})]
  25. (comp (aot) (pom) (uber) (jar) (target :dir dir))))
  26. ;;(deftask run
  27. ;; "Run the project."
  28. ;; [a args ARG [str] "the arguments for the application."]
  29. ;; (with-pass-thru fs
  30. ;; (require '[b-spline.core :as app])
  31. ;; (apply (resolve 'app/-main) args)))
  32. (deftask run [] (comp (wait) (nightlight :port 4000)))
  33. (require '[adzerk.boot-test :refer [test]])