-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
153 lines (133 loc) · 6.82 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
(defproject clchess "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:year 2017
:key "mit"}
:min-lein-version "2.6.1"
:dependencies [[org.clojure/clojure "1.9.0-alpha14" :scope "provided"]
[org.clojure/clojurescript "1.9.473" :scope "provided"]
[org.clojure/test.check "0.9.0"]
[org.clojure/core.async "0.2.395"]
[reagent "0.6.0"]
[reagent-forms "0.5.28"]
[reagent-utils "0.2.0"]
[re-frame "0.9.2"]
[secretary "1.2.3"]
[prone "1.1.4"]
[com.taoensso/timbre "4.8.0"]
[garden "1.3.2"]
[jamesmacaulay/cljs-promises "0.1.0"]
[com.cognitect/transit-cljs "0.8.239"]
[cljsjs/chessground "4.4.0-0"]
[cljsjs/chess.js "0.10.2-0"]
;; dev dependencies
[re-frisk "0.3.2"]]
:plugins [[lein-cljsbuild "1.1.5" :exclusions [org.apache.commons/commons-compress]]
[lein-garden "0.3.0"]
[lein-node-webkit-build "0.1.8" :exclusions [com.fasterxml.jackson.core/jackson-annotations]]
[lein-license "0.1.6"]]
;; :doo {:build "test"}
:node-webkit-build {
:root "resources/public" ; your node-webkit app root directory
;; :name nil ; use this to override the application name
;; :version nil ; use this to override the application version
;; :osx {
;; :icon nil ; point to an .icns icon file to be used on the generated mac osx build
;; }
:platforms #{
;; :osx
;; :osx64
;; :win
;; :linux32
:linux64
} ; select which platforms to generate the build
:nw-version "0.20.0" ; the node-webkit version to be used :latest for latest
:output "releases" ; output directory for the generated builds
:disable-developer-toolbar true ; this will update your package.json to remove the developer toolbar
:use-lein-project-version true ; update the project version using your leiningen project version
;; :tmp-path (path-join "tmp" "nw-build") ; temporary path to place intermediate build files
}
:clean-targets ^{:protect false}
["resources/public/js/compiled"
"resources/public/css/compiled"
"target"]
:resource-paths ["resources/public"]
:profiles {:dev
{:dependencies [[binaryage/devtools "0.9.1"]
[figwheel-sidecar "0.5.9"]
[com.cemerick/piggieback "0.2.1"]
[lein-doo "0.1.7"]]
:source-paths ["src/node"]
:plugins [[lein-figwheel "0.5.9"]
[lein-doo "0.1.7"]]
}}
:cljsbuild {:builds
[{:id "dev"
:source-paths ["src/cljs" "src/node" "env/dev/cljs"]
:compiler {:main "clchess.dev"
:output-to "resources/public/js/compiled/clchess.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:optimizations :none
:pretty-print true
:source-map true
;; :source-map-timestamp true
:preloads [devtools.preload]
:external-config {:devtools/config {:features-to-install :all}}}}
{:id "test"
:source-paths ["src/cljs" "test/cljs"]
:compiler
{:output-dir "resources/public/js/compiled/out-test"
:output-to "resources/public/js/compiled/out/testable.js"
:main clchess.test-runner
:optimizations :none}}
{:id "web"
:source-paths ["src/cljs" "src/web" "env/dev/cljs"]
:compiler {:main "clchess.dev"
:output-to "resources/public/js/compiled/clchess_web.js"
:output-dir "resources/public/js/compiled/out-web"
:asset-path "js/compiled/out-web"
:optimizations :none
:pretty-print true
:source-map true}}
{:id "prod"
:source-paths ["src/cljs" "src/node" "env/prod/cljs"]
:compiler {:main "clchess.prod"
:output-to "resources/public/js/compiled/clchess.js"
:output-dir "resources/public/js/compiled/out-prod"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false}}]}
:garden {:builds
[{:id "clchess"
:source-paths ["src/garden"]
:stylesheet clchess.css/clchess
:compiler {:output-to "resources/public/css/compiled/clchess.css"
:pretty-print? true}}]}
:figwheel {;; :http-server-root "public" ;; default and assumes "resources"
;; :server-port 3449 ;; default
;; :server-ip "127.0.0.1"
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
;; :nrepl-port 7888
;; :nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl"]
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :)
;; :ring-handler hello_world.server/handler
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
:open-file-command "figwheel_edit"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
})