File tree 3 files changed +27
-6
lines changed
3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 2
2
/lib
3
3
/classes
4
4
/checkouts
5
+ node_modules
5
6
pom.xml
6
7
pom.xml.asc
7
8
* .jar
Original file line number Diff line number Diff line change 18
18
root (cljs.compiler/compile-root src-dir out-dir opts)]
19
19
(cljs.closure/compiled-file root))))))
20
20
21
+ (defn build
22
+ ([& options]
23
+ " Build Cljs src with options"
24
+ (println " Building Cljs and watching for changes ..." )
25
+ (let [start (System/nanoTime )]
26
+ (println " setting main as: " 'garden)
27
+ (cljs.build.api/build " src"
28
+ {:main 'garden
29
+ :output-to " target/build/garden.js"
30
+ :output-dir " target/build"
31
+ :optimizations :none
32
+ :source-map true
33
+ :verbose true })
34
+ (println " ... done. Elapsed" (/ (- (System/nanoTime ) start) 1e9 ) " seconds" ))))
35
+
21
36
(defn repl [main env & dirs]
22
37
(cljs.build.api/build (Dirs. (concat [" src" " test" ] dirs))
23
38
{:main main
Original file line number Diff line number Diff line change 1
- (defproject garden " 1.2.7 -SNAPSHOT"
1
+ (defproject garden " 1.3.0 -SNAPSHOT"
2
2
:description " Generate CSS from Clojure/Cljs data structures."
3
3
:url " https://github.com/noprompt/garden"
4
4
:license {:name " Eclipse Public License"
9
9
:dependencies [[org.clojure/clojure " 1.7.0" :scope " provided" ]
10
10
[org.clojure/clojurescript " 1.7.28" :scope " provided" ]]
11
11
12
- :plugins [[cider/cider-nrepl " 0.9.1" ] ; ;required for cider-0.9.1
13
- [codox " 0.8.13" ]]
12
+ :npm {:dependencies [[source-map-support " 0.3.1" ]]}
14
13
15
14
:clean-targets
16
15
^{:protect false } [" target" ]
17
16
18
17
:profiles
19
18
{:dev {:source-paths [" src" " test" " dev" ]
20
19
:dependencies [[com.yahoo.platform.yui/yuicompressor " 2.4.7" ]
21
- [criterium " 0.4.1" ]]}}
20
+ [criterium " 0.4.1" ]]
21
+ :plugins [[cider/cider-nrepl " 0.9.1" ] ; ; for cider-0.9.1
22
+ [codox " 0.8.13" ]
23
+ [lein-npm " 0.6.1" ]
24
+ [com.jakemccrary/lein-test-refresh " 0.10.0" ]]}}
22
25
23
26
:aliases
24
- {" node-repl" [" run" " -m" " user/node-repl" ]
25
- " test-all" [" run" " -m" " garden.tests/test-all" ]})
27
+ {" build-cljs" [" run" " -m" " user/build" ]
28
+ " node-repl" [" run" " -m" " user/node-repl" ]
29
+ " test-clj" [" do" " clean," " run" " -m" " user/build," " test-refresh" ]
30
+ " test-cljs" [" run" " -m" " garden.tests/test-all" ]})
You can’t perform that action at this time.
0 commit comments