Project skeleton cleanup.

This commit is contained in:
Phil Hagelberg 2010-06-15 18:59:09 -07:00
parent f95028c420
commit 4a7758a2ce

View file

@ -32,7 +32,8 @@ Neither group-id nor artifact-id may contain slashes."
(str "(ns " (str project-ns "-test")
"\n (:use [" project-ns "] :reload-all)"
"\n (:use [clojure.test]))\n\n"
"(deftest replace-me ;; FIXME: write\n (is false))\n"))
"(deftest replace-me ;; FIXME: write\n (is false "
"\"No tests have been written.\"))\n"))
(spit (file project-dir ".gitignore")
(join "\n" ["pom.xml" "*jar" "lib" "classes"]))
(spit (file project-dir "README")
@ -42,7 +43,7 @@ Neither group-id nor artifact-id may contain slashes."
"## Installation" "FIXME: write"
"## License" "Copyright (C) 2010 FIXME"
(str "Distributed under the Eclipse Public"
" License, the same as Clojure."\n)]))
" License, the same as Clojure.\n")]))
(println "Created new project in:" project-dir))))
([project-name] (leiningen.new/new project-name
(name (symbol project-name)))))