Skip to content

Commit

Permalink
Project skeleton cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jun 16, 2010
1 parent f95028c commit 4a7758a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/leiningen/new.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)))))

0 comments on commit 4a7758a

Please sign in to comment.