Skip to content

Commit

Permalink
update testing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Nolen authored and David Nolen committed Nov 20, 2012
1 parent b02383d commit 129f65e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clj/cljs/source_map.clj
Expand Up @@ -82,15 +82,16 @@
(comment
;; INSTRUCTIONS:

;; switch into samples/repl
;; switch into samples/hello
;; run repl to start clojure
;; build with

(require '[cljs.closure :as cljsc])
(cljsc/build "src" {:optimizations :simple :output-to "repl_sample.js" :source-map "repl_sample_map.json"})
(cljsc/build "src" {:optimizations :simple :output-to "hello.js" :source-map "hello.js.map"})

;; load source map
(def raw-source-map
(json/read-json (slurp (io/file "samples/repl/repl_sample_map.json"))))
(json/read-json (slurp (io/file "hello.js.map"))))

;; test it out
(first (decode raw-source-map))
Expand Down

0 comments on commit 129f65e

Please sign in to comment.