-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deeb8e0
commit 057869c
Showing
13 changed files
with
93 additions
and
82 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
(load-file "./build.util.clj") | ||
(require '[build.util :as build]) | ||
|
||
(set-env! | ||
:name 'bardo | ||
:version "0.1.0-SNAPSHOT" | ||
:description "A clojure(script) library to assist with transitions between dimensions" | ||
:url "http://github.com/pleasetrythisathome/bardo" | ||
:dependencies (build/deps) | ||
:src-paths #{"src"} | ||
:rsc-paths #{"resources"}) | ||
|
||
(require | ||
'[adzerk.boot-cljs :refer [cljs]] | ||
'[adzerk.boot-cljs-repl :refer [cljs-repl]] | ||
'[adzerk.boot-reload :refer [reload]] | ||
'[deraen.boot-cljx :refer [cljx]] | ||
'[pandeiro.http :refer [serve]] | ||
'[clojure.tools.namespace.repl :refer [set-refresh-dirs]]) | ||
|
||
(deftask development | ||
"watch and compile cljx, css, cljs, init cljs-repl and push changes to browser" | ||
[] | ||
(let [src (:src-paths (get-env))] | ||
(set-env! :src-paths (conj src "dev"))) | ||
(apply set-refresh-dirs (get-env :src-paths)) | ||
(comp (serve :dir "target") | ||
(watch) | ||
(cljx) | ||
(cljs-repl) | ||
(cljs :output-to "main.js" | ||
:optimizations :none | ||
:unified true | ||
:source-map true | ||
:pretty-print true) | ||
(reload :port 3449))) | ||
|
||
(defn dev | ||
[] | ||
(require 'dev) | ||
(in-ns 'dev)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(ns build.util | ||
(:require | ||
[clojure.java.io :as io] | ||
[clojure.string :as str])) | ||
|
||
(defn deps [] | ||
(->> "deps" | ||
io/file | ||
file-seq | ||
(filter #(.isFile %)) | ||
(filter (comp (partial = "edn") last #(str/split % #"\.") #(.getName %))) | ||
(sort-by #(.getName %)) | ||
(map (comp read-string slurp)) | ||
(reduce into []))) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[adzerk/boot-cljs "0.0-2371-27" :scope "test"] | ||
[adzerk/boot-cljs-repl "0.1.6" :scope "test"] | ||
[adzerk/boot-reload "0.1.8" :scope "test"] | ||
[deraen/boot-cljx "0.1.0" :scope "test"] | ||
[pandeiro/boot-http "0.2.0" :scope "test"]] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[[org.clojure/clojure "1.7.0-alpha4"] | ||
[org.clojure/clojurescript "0.0-2411"] | ||
[org.clojure/core.async "0.1.346.0-17112a-alpha"] | ||
[org.clojure/core.match "0.2.2"]] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[[spellhouse/clairvoyant "0.0-48-gf5e59d3"] | ||
[shodan "0.4.1"] | ||
[clojure-complete "0.2.4"] | ||
[org.clojure/tools.namespace "0.2.7"]] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[[clj-time "0.8.0"] | ||
[com.andrewmcveigh/cljs-time "0.2.4"]] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(ns dev | ||
(:require [clojure.java.io :as io] | ||
[clojure.string :as str] | ||
[clojure.pprint :refer [pprint]] | ||
[clojure.repl :refer :all] | ||
[clojure.test :as test] | ||
[clojure.tools.namespace.repl :refer [refresh refresh-all]] | ||
|
||
[bardo.core :refer :all] | ||
[bardo.ease :refer :all] | ||
[bardo.interpolate :refer :all])) | ||
|
||
(defn reset [] | ||
(refresh)) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!doctype html> | ||
<html> | ||
<body> | ||
<script type="text/javascript" src="main.js"></script> | ||
</body> | ||
</html> |