Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Created December 24, 2015 18:57
Show Gist options
  • Save noisesmith/8127c7e3540c6333f9f3 to your computer and use it in GitHub Desktop.
Save noisesmith/8127c7e3540c6333f9f3 to your computer and use it in GitHub Desktop.
(ns client (:require [world :refer [map->World]]))
(map->World {})
$ rlwrap java -cp ~/bin/cljs.jar:. clojure.main
Clojure 1.7.0
user=> (require 'cljs.build.api)
nil
user=> (cljs.build.api/build "." {})
"goog.addDependency(\"base.js\", ['goog'], []);\ngoog.addDependency(\"../cljs/core.js\", ['cljs.core'], ['goog.string', 'goog.object', 'goog.string.StringBuffer', 'goog.array']);\ngoog.addDependency(\"../world.js\", ['world'], ['cljs.core']);\ngoog.addDependency(\"../client.js\", ['client'], ['cljs.core', 'world']);\n"
user=>
(ns world)
(defrecord World [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment