Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 1.17 KB
; Copyright (c) 2012 Fogus and Relevance Inc. All rights reserved. The
; use and distribution terms for this software are covered by the Eclipse
; Public License 1.0 (
; which can be found in the file COPYING the root of this
; distribution. By using this software in any fashion, you are
; agreeing to be bound by the terms of this license. You must not
; remove this notice, or any other, from this software.
(ns leiningen.js
(:use [leiningen.core :only [prepend-tasks]]
[leiningen.deps :only [deps]])
(:require [ :as io]))
(defn js [project]
(let [js (io/file "resources" "public" "javascript")
jquery (io/file js "jquery-1.4.2.min.js")
console (io/file js "jquery.console.js")]
(when-not (.exists jquery)
(println "Downloading jquery.")
(io/copy (io/reader "") jquery))
(when-not (.exists console)
(println "Downloading jquery-console.")
(io/copy (io/reader "")
(prepend-tasks #'deps js)
Jump to Line
Something went wrong with that request. Please try again.