   
   ;; optimize a project
   (println (->> (-compile "samples/hello/src" {})
-                (apply add-dependencies)
+                (apply add-dependencies {})
                 (apply optimize {:optimizations :simple :flags #{:pretty-print}})))
   )
 

;; If inputs are optimized then the output string will be the complete
;; application with all dependencies included.
;;
;; For unoptimized output the string will be a Closure deps file
;; describing where the JavaScript files are on disk and their
;; dependencies. All JavaScript files will be located in the working
;; directory, including any dependencies from the Closure library.

  (build '[(ns hello.core)
           (defn ^{:export greet} greet [n] (str "Hola " n))
           (defn ^:export sum [xs] 42)]
         {:output-dir "samples/hello/out" :output-to "samples/hello/hello.js"})
  ;; open 'samples/hello/hello-dev.html' to see the result in action
  )
