Skip to content

Commit

Permalink
Fix #30 by rendering empty .keep file in resources folder
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jan 26, 2017
1 parent 0196e9c commit ded8062
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.boot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(set-env! :resource-paths #{"src"})

(def version "0.5.0")
(def version "0.5.1")

(task-options!
pom {:project 'boot/new
Expand Down
2 changes: 1 addition & 1 deletion src/boot/new/app.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
["test/{{nested-dirs}}_test.clj" (render "test.clj" data)]
["LICENSE" (render "LICENSE" data)]
["CHANGELOG.md" (render "CHANGELOG.md" data)]
"resources")))
"resources/.keep" "")))
2 changes: 1 addition & 1 deletion src/boot/new/default.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Accepts a group id in the project name: `boot new -n foo.bar/baz`"
["test/{{nested-dirs}}_test.clj" (render "test.clj" data)]
["LICENSE" (render "LICENSE" data)]
["CHANGELOG.md" (render "CHANGELOG.md" data)]
"resources")))
"resources/.keep" "")))
6 changes: 3 additions & 3 deletions src/boot/new/templates.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
The additional segment defaults to \"core\"."
([s] (multi-segment s "core"))
([s final-segment]
(if (.contains s ".")
s
(format "%s.%s" s final-segment))))
(if (.contains s ".")
s
(format "%s.%s" s final-segment))))

(defn name-to-path
"Constructs directory structure from fully qualified artifact name:
Expand Down

0 comments on commit ded8062

Please sign in to comment.