forked from day8/re-frame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
88 lines (75 loc) · 4.54 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
(defproject re-frame "0.11.0-rc2-SNAPSHOT"
:description "A Clojurescript MVC-like Framework For Writing SPAs Using Reagent."
:url "https://github.com/Day8/re-frame.git"
:license {:name "MIT"}
:dependencies [[org.clojure/clojure "1.10.1" :scope "provided"]
[org.clojure/clojurescript "1.10.520" :scope "provided"
:exclusions [com.google.javascript/closure-compiler-unshaded
org.clojure/google-closure-library]]
[thheller/shadow-cljs "2.8.52" :scope "provided"]
[reagent "0.9.0-rc1"]
[net.cgrand/macrovich "0.2.1"]
[org.clojure/tools.logging "0.4.1"]]
:plugins [[lein-shadow "0.1.5"]]
:profiles {:debug {:debug true}
:dev {:dependencies [[binaryage/devtools "0.9.10"]]
:plugins [[lein-ancient "0.6.15"]
[lein-shell "0.5.0"]]}}
:clean-targets [:target-path "run/compiled"]
:resource-paths ["run/resources"]
:jvm-opts ["-Xmx1g"]
:source-paths ["src"]
:test-paths ["test"]
:shell {:commands {"open" {:windows ["cmd" "/c" "start"]
:macosx "open"
:linux "xdg-open"}}}
:deploy-repositories [["clojars" {:sign-releases false
:url "https://clojars.org/repo"
:username :env/CLOJARS_USERNAME
:password :env/CLOJARS_PASSWORD}]]
:release-tasks [["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag" "v" "--no-sign"]
["deploy" "clojars"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:shadow-cljs {:nrepl {:port 8777}
:builds {:browser-test
{:target :browser-test
:ns-regexp "re-frame\\..*-test$"
:test-dir "run/compiled/browser/test"
:compiler-options {:pretty-print true
:external-config {:devtools/config {:features-to-install [:formatters :hints]}}}
:devtools {:http-port 3449
:http-root "run/compiled/browser/test"
:preloads [devtools.preload]}}
:karma-test
{:target :karma
:ns-regexp "re-frame\\..*-test$"
:output-to "run/compiled/karma/test/test.js"
:compiler-options {:pretty-print true
:closure-defines {re-frame.trace.trace-enabled? true}}}}}
:aliases {"test-once" ["do" "clean," "shadow" "compile" "browser-test," "shell" "open" "run/compiled/browser/test/index.html"]
"test-auto" ["do" "clean," "shadow" "watch" "browser-test,"]
"karma-once" ["do" "clean," "shadow" "compile" "karma-test,"]
"karma-auto" ["do" "clean," "shadow" "watch" "karma-test,"]
;; NOTE: In order to compile docs you would need to install
;; gitbook-cli(2.3.2) utility globaly using npm or yarn
"docs-serve" ^{:doc "Runs the development server of docs with live reloading"} ["shell" "gitbook" "serve" "./" "./build/re-frame/"]
"docs-build" ^{:doc "Builds the HTML version of docs"} ["shell" "gitbook" "build" "./" "./build/re-frame/"]
;; NOTE: Calibre and svgexport(0.3.2) are needed to build below
;; formats of docs. Install svgexpor3t using npm or yarn.
"docs-pdf" ^{:doc "Builds the PDF version of docs"}
["do"
["shell" "mkdir" "-p" "./build/"]
["shell" "gitbook" "pdf" "./" "./build/re-frame.pdf"]]
"docs-mobi" ^{:doc "Builds the MOBI version of docs"}
["do"
["shell" "mkdir" "-p" "./build/"]
["shell" "gitbook" "mobi" "./" "./build/re-frame.mobi"]]
"docs-epub" ^{:doc "Builds the EPUB version of docs"}
["do"
["shell" "mkdir" "-p" "./build/"]
["shell" "gitbook" "epub" "./" "./build/re-frame.epub"]]})