-
Notifications
You must be signed in to change notification settings - Fork 22
/
project.clj
54 lines (48 loc) · 2.32 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
(defproject hiccups "0.3.1"
:description "A ClojureScript port of Hiccup - a fast library for rendering HTML in ClojureScript"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo}
;; Required by cljsbuild plugin
:min-lein-version "2.2.0"
;; We need to add src/cljs too, because cljsbuild does not add its
;; source-paths to the project source-paths
:source-paths ["src/clj" "src/cljs"]
;; The libs which the project depends on.
;; Here we use the latest stable clj and cljs releases
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2069"]]
;; The plugins which the project depends on. Here we're using the
;; experimental 1.0.0-alpha2 release. Change it to the official
;; 1.0.0 as soon as it will be available
:plugins [[lein-cljsbuild "1.0.0"]]
;; Hooks the cljsbuild subtasks to the lein tasks: lein clean, lein
;; compile, lein test and lein jar
:hooks [leiningen.cljsbuild]
;; Lein-cljsbuild plugin configuration. Here we define one build
;; only: the one used for packaging any cljs sources in the jar
;; generated by lein jar command
:cljsbuild
{:builds {;; This build is only used for including any cljs source
;; in the packaged jar when you issue lein jar command and
;; any other command that depends on it
:useless
{;; The dir pathnames where cljs sources live. Do not
;; include here any cljs source which is only used during
;; development or testing
:source-paths ["src/cljs"]
;; The :jar true option is not needed to include the CLJS
;; sources in the packaged jar. This is because we added
;; the CLJS source codebase to the Leiningen
;; :source-paths
;:jar true
;; Compilation Options
:compiler
{;; The JS file pathname emitted by the compiler
:output-to "dev-resources/public/js/useless.js"
;; Compiler optimizations option set to :none to speed
;; up this useless compilation
:optimizations :none
;; No need to prettify the emitted js file
:pretty-print false}}}})