 
 
 (let [engine  (create-engine)]
+  (eval-str engine "print('hello JS');")
 
-  (eval-str engine "print('hello JS');")
+  ;;(println "file " (slurp "Uglify2/uglifyjs.self.js"))
   )
+
+
+(core/deftask uglify
+  "Uglify JS code"
+  []
+  (println "task called !"))

(ns uglify2.core
  (:require [clojure.java.io :as io])
  (:import
   [java.io StringWriter]
   [javax.script ScriptEngine ScriptEngineManager ScriptException ScriptEngineFactory]))

  [context writer]
  (.setWriter context writer))

(defn find-mainfiles
  "Stolen from https://github.com/Deraen/boot-less/blob/master/src/deraen/boot_less.clj"
  [fs]
  (->> fs
       core/input-files
       (core/by-ext [".js"])))

;;;;;;;;;;;;;;;;
;; Public API ;;
;;;;;;;;;;;;;;;;
