Skip to content
Browse files

Update several dependency versions in examples.

Closes #61.
  • Loading branch information...
1 parent d3d4f0a commit b99db256016531b25fb9140f246a762854e762fd @emezeske committed May 9, 2012
View
5 doc/RELEASE-NOTES.md
@@ -1,5 +1,10 @@
# Release Notes for lein-cljsbuild
+## 0.1.9
+
+1. Changed to use upstream ClojureScript version 0.0-1211.
+2. Updated example projects to use the latest Clojure, Ring, Compojure, and Hiccup versions.
+
## 0.1.8
1. Minor fix for compatibility with the latest Leiningen 2 preview.
View
15 example-projects/advanced/project.clj
@@ -1,17 +1,10 @@
(defproject cljsbuild-example-advanced "0.1.9"
:description "An advanced example of how to use lein-cljsbuild"
:source-path "src-clj"
- :dependencies [[org.clojure/clojure "1.3.0"]
- [compojure "1.0.1"]
- [hiccup "0.3.8"]
- ; NOTE: This log4j dependency is not actually used by the project;
- ; it's just here to make sure that lein-cljsbuild handles complex
- ; dependencies correctly.
- [log4j "1.2.15" :exclusions [javax.mail/mail
- javax.jms/jms
- com.sun.jdmk/jmxtools
- com.sun.jmx/jmxri]]]
- :dev-dependencies [[lein-ring "0.5.4"]]
+ :dependencies [[org.clojure/clojure "1.4.0"]
+ [compojure "1.0.4"]
+ [hiccup "1.0.0"]]
+ :dev-dependencies [[lein-ring "0.7.0"]]
:plugins [[lein-cljsbuild "0.1.9"]]
; Enable the lein hooks for: clean, compile, test, and jar.
:hooks [leiningen.cljsbuild]
View
10 example-projects/advanced/src-clj/example/views.clj
@@ -1,8 +1,10 @@
(ns example.views
(:require
- [example.crossover.shared :as shared])
- (:use
- [hiccup core page-helpers]))
+ [example.crossover.shared :as shared]
+ [hiccup
+ [page :refer [html5]]
+ [element :refer [javascript-tag]]
+ [page :refer [include-js]]]))
; When using {:optimizations :whitespace}, the Google Closure compiler combines
; its JavaScript inputs into a single file, which obviates the need for a "deps.js"
@@ -48,7 +50,7 @@ lein trampoline cljsbuild repl-listen"]
[:pre "> (js/alert \"Hello!\")
> (load-namespace 'goog.date.Date)
> (js/alert (goog.date.Date.))
-> (console.log (reduce + [1 2 3 4 5]))
+> (.log js/console (reduce + [1 2 3 4 5]))
> (load-namespace 'goog.dom)
> (goog.dom.setTextContent (goog.dom.getElement \"fun\") \"I changed something....\") "]
(run-clojurescript
View
8 example-projects/simple/project.clj
@@ -1,10 +1,10 @@
(defproject cljsbuild-example-simple "0.1.9"
:description "A simple example of how to use lein-cljsbuild"
:source-path "src-clj"
- :dependencies [[org.clojure/clojure "1.3.0"]
- [compojure "1.0.1"]
- [hiccup "0.3.8"]]
- :dev-dependencies [[lein-ring "0.5.4"]]
+ :dependencies [[org.clojure/clojure "1.4.0"]
+ [compojure "1.0.4"]
+ [hiccup "1.0.0"]]
+ :dev-dependencies [[lein-ring "0.7.0"]]
:plugins [[lein-cljsbuild "0.1.9"]]
:cljsbuild {
:builds [{:source-path "src-cljs"
View
6 example-projects/simple/src-clj/example/views.clj
@@ -1,5 +1,9 @@
(ns example.views
- (:use [hiccup core page-helpers]))
+ (:require
+ [hiccup
+ [page :refer [html5]]
+ [element :refer [javascript-tag]]
+ [page :refer [include-js]]]))
; When using {:optimizations :whitespace}, the Google Closure compiler combines
; its JavaScript inputs into a single file, which obviates the need for a "deps.js"

0 comments on commit b99db25

Please sign in to comment.
Something went wrong with that request. Please try again.