Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Created December 24, 2015 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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