Permalink
Browse files

Make the examples work with both lein1 and lein2.

  • Loading branch information...
1 parent b28439e commit b15d7122ef525934ddf092f54a00308394d567bc @emezeske committed Aug 23, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 example-projects/advanced/project.clj
  2. +3 −0 example-projects/simple/project.clj
@@ -1,6 +1,9 @@
(defproject cljsbuild-example-advanced "0.2.6"
:description "An advanced example of how to use lein-cljsbuild"
+ ; Source path for Leiningen 1.x:
:source-path "src-clj"
+ ; Source paths for Leiningen 2.x:
+ :source-paths ["src-clj"]
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.0.4"]
[hiccup "1.0.0"]]
@@ -1,6 +1,9 @@
(defproject cljsbuild-example-simple "0.2.6"
:description "A simple example of how to use lein-cljsbuild"
+ ; Source path for Leiningen 1.x:
:source-path "src-clj"
+ ; Source paths for Leiningen 2.x:
+ :source-paths ["src-clj"]
:dependencies [[org.clojure/clojure "1.4.0"]
[compojure "1.0.4"]
[hiccup "1.0.0"]]

0 comments on commit b15d712

Please sign in to comment.