-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated lein-conjure to work with leiningen 2.
- Loading branch information
1 parent
34a1cdf
commit e3252b0
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ lib | |
classes | ||
/.lein-failures | ||
/.lein-deps-sum | ||
log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
(defproject lein-conjure "0.8.9-SNAPSHOT" | ||
(defproject org.conjure/lein-conjure "0.9.0-SNAPSHOT" | ||
:description "A leiningen plugin for Conjure. Conjure is a full stack web framework written entirely in Clojure." | ||
:dependencies [[conjure-core "0.8.9-SNAPSHOT"] | ||
[conjure-script "0.8.9-SNAPSHOT"]] | ||
:dependencies [[org.conjure/conjure-script-core "0.9.0-SNAPSHOT"] | ||
[org.conjure/conjure-script-plugin "0.9.0-SNAPSHOT"] | ||
[org.conjure/conjure-script-scaffold "0.9.0-SNAPSHOT"] | ||
[org.conjure/conjure-util "0.9.0-SNAPSHOT"]] | ||
|
||
:profiles { :dev { :dependencies [[org.drift-db/drift-db-h2 "1.1.2"]] } } | ||
|
||
:eval-in-leiningen true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
(ns leiningen.conjure | ||
(require [conjure.core.execute :as conjure-execute] | ||
[leiningen.compile :as lein-compile])) | ||
(require [conjure.execute :as conjure-execute] | ||
[leiningen.core.eval :as lein-eval])) | ||
|
||
(defn | ||
^ {:doc "A Leiningen plugin to do common conjure tasks."} | ||
conjure [project & args] | ||
(lein-compile/eval-in-project project | ||
`(apply conjure.core.execute/-main '~args) | ||
nil nil '(require 'conjure.core.execute))) | ||
(lein-eval/eval-in-project project | ||
`(apply conjure.execute/-main '~args) | ||
'(require 'conjure.execute))) |