Skip to content

Commit

Permalink
Reorganize the :uses and :requires.
Browse files Browse the repository at this point in the history
  • Loading branch information
emezeske committed Jan 19, 2012
1 parent bbd5ca0 commit a8c38be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/cljsbuild/core.clj
@@ -1,10 +1,11 @@
(ns cljsbuild.core
(:use
[clojure.java.io :only [resource]]
[clj-stacktrace.repl :only [pst+]]
[cljs.closure :only [build]])
(:require
[clojure.string :as string]
[clojure.set :as cset]
[clj-stacktrace.repl :as st]
[fs :as fs]
[cljs.closure :as cljsc]))
[fs :as fs]))

(defn- filter-cljs [files types]
(let [ext #(last (string/split % #"\."))]
Expand Down Expand Up @@ -34,11 +35,11 @@
(fs/mkdirs output-dir ))
(let [started-at (. System (nanoTime))]
(try
(cljsc/build cljs-path compiler-options)
(build cljs-path compiler-options)
(println (str " Done in " (elapsed started-at) "."))
(catch Throwable e
(println " Failed!")
(st/pst+ e))))))
(pst+ e))))))

(defn- is-macro-file? [file]
(not (neg? (.indexOf (slurp file) ";*CLJSBUILD-MACRO-FILE*;"))))
Expand Down

0 comments on commit a8c38be

Please sign in to comment.