Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e01b9605cf
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (34 sloc) 1.314 kb
(ns one.sample.launchpad
"The starting namespace for the project. This is the namespace that
users will land in when they start a Clojure REPL. It exists both to
process commands passed on the command line (such as 'build') and to
provide convenience functions like 'go'."
(:use [clojure.repl])
(:require [one.sample.config :as config]
[ :as tools]
[ :as dev]
[ :as prod]
[ :as io]
[ :as browse]))
(defn go
"Start a browser-connected REPL and launch a browser to talk to it."
(future (Thread/sleep 3000)
(browse/browse-url "http://localhost:8080/development"))
(defmulti command (fn [args] (first args)))
(defmethod command "build" [_]
(println "Creating out/public...")
(.mkdir (io/file "out"))
(tools/copy-recursive-into "public" "out")
(tools/delete "out/public/index.html"
(.mkdir (io/file "out/public/javascripts"))
(println "Create advanced compiled JavaScript...")
(tools/build-project config/config))
(defmethod command nil [_]
(defn -main [& args]
(command args))
Jump to Line
Something went wrong with that request. Please try again.