forked from mrowl/lein-nailgun
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a826782
Showing
3 changed files
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
A leiningen plugin to launch a vimclojure nailgun server | ||
|
||
To install, add | ||
|
||
[org.clojars.brandonw/lein-nailgun "1.0.0"] | ||
|
||
to :dev-dependencies in project.clj | ||
|
||
The current version of vimclojure specified as a dep requires clojure 1.1 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(defproject org.clojars.brandonw/lein-nailgun "1.0.0" | ||
:description "A leiningen plugin to launch a vimclojure nailgun server." | ||
:dependencies [[org.clojars.gilbertl/vimclojure "2.1.2"] | ||
[org.apache.maven/maven-ant-tasks "2.0.10"]] | ||
:dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]] | ||
:repositories [["clojars" "http://clojars.org/repo"]]) | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(ns leiningen.nailgun | ||
(:use [leiningen.compile :only [eval-in-project]])) | ||
|
||
(defn nailgun | ||
"Launch nailgun server." | ||
([project addr-port] | ||
(eval-in-project | ||
project | ||
`(do (try (~'com.martiansoftware.nailgun.NGServer/main | ||
(into-array String [~addr-port])) | ||
(catch Exception e# | ||
(println e#) | ||
(println "Make sure nailgun is added as a" | ||
"dev-dependency in your" | ||
"project.clj.")))))) | ||
([project] (nailgun project "127.0.0.1"))) |