From ca45d22111ffdf98c709f6f7040a9869147e019c Mon Sep 17 00:00:00 2001 From: anatoly Date: Sun, 20 Dec 2015 01:28:34 -0500 Subject: [PATCH] making mount boot'iful... [the beginning] --- .gitignore | 2 +- build.boot | 56 +++++++++++++++++++++++++++++++++++++++++++ dev/{ => clj}/dev.clj | 11 +-------- project.clj | 2 +- 4 files changed, 59 insertions(+), 12 deletions(-) create mode 100644 build.boot rename dev/{ => clj}/dev.clj (66%) diff --git a/.gitignore b/.gitignore index a215468..68279ea 100644 --- a/.gitignore +++ b/.gitignore @@ -15,5 +15,5 @@ doo-index.html *.iml /.idea /.lein-repl-history - +/.nrepl-history diff --git a/build.boot b/build.boot new file mode 100644 index 0000000..5f92dd3 --- /dev/null +++ b/build.boot @@ -0,0 +1,56 @@ +(set-env! + :source-paths #{"src"} + :dependencies '[;; dev / examples / test + [org.clojure/clojure "1.7.0" :scope "provided"] + [org.clojure/clojurescript "1.7.170" :scope "provided"] + [datascript "0.13.3" :scope "provided"] + [compojure "1.4.0" :scope "provided"] + [ring/ring-jetty-adapter "1.1.0" :scope "provided"] + [cheshire "5.5.0" :scope "provided"] + [hiccups "0.3.0" :scope "provided"] + [com.andrewmcveigh/cljs-time "0.3.14" :scope "provided"] + [ch.qos.logback/logback-classic "1.1.3" :scope "provided"] + [org.clojure/tools.logging "0.3.1" :scope "provided"] + [robert/hooke "1.3.0" :scope "provided"] + [org.clojure/tools.namespace "0.2.11" :scope "provided"] + [org.clojure/tools.nrepl "0.2.11" :scope "provided"] + [com.datomic/datomic-free "0.9.5327" :scope "provided" :exclusions [joda-time]] + + ;; boot + [boot/core "2.5.1" :scope "provided"] + [adzerk/bootlaces "0.1.13" :scope "test"] + [adzerk/boot-test "1.0.6" :scope "test"]]) + +(require '[adzerk.bootlaces :refer :all] + '[adzerk.boot-test :as bt]) + +(def +version+ "0.1.7-SNAPSHOT") + +(bootlaces! +version+) + +(deftask dev [] + + (set-env! :source-paths #(conj % "dev/clj")) + + (defn in [] + (load-data-readers!) + (require 'dev) + (in-ns 'dev)) + + (comp + (watch) + (repl)) + identity) + +(deftask test [] + (set-env! :source-paths #(conj % "test" "test/clj")) ;; (!) :source-paths must not overlap. + (bt/test)) + +(task-options! + pom {:project 'mount + :version +version+ + :description "managing Clojure and ClojureScript app state since (reset)" + :url "https://github.com/tolitius/mount" + :scm {:url "https://github.com/tolitius/mount"} + :license {"Eclipse Public License" + "http://www.eclipse.org/legal/epl-v10.html"}}) diff --git a/dev/dev.clj b/dev/clj/dev.clj similarity index 66% rename from dev/dev.clj rename to dev/clj/dev.clj index f2facf1..69eb5c6 100644 --- a/dev/dev.clj +++ b/dev/clj/dev.clj @@ -1,14 +1,5 @@ (ns dev - "Tools for interactive development with the REPL. This file should - not be included in a production build of the application." - (:require [clojure.java.io :as io] - [clojure.java.javadoc :refer [javadoc]] - [clojure.pprint :refer [pprint]] - [clojure.reflect :refer [reflect]] - [clojure.repl :refer [apropos dir doc find-doc pst source]] - [clojure.set :as set] - [clojure.string :as str] - [clojure.test :as test] + (:require [clojure.pprint :refer [pprint]] [clojure.tools.namespace.repl :as tn] [mount.core :as mount] [app.utils.logging :refer [with-logging-status]] diff --git a/project.clj b/project.clj index 5cad57a..691833c 100644 --- a/project.clj +++ b/project.clj @@ -1,5 +1,5 @@ (defproject mount "0.1.7-SNAPSHOT" - :description "managing Clojure app state since (reset)" + :description "managing Clojure and ClojureScript app state since (reset)" :url "https://github.com/tolitius/mount" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"}