Skip to content

Commit

Permalink
move prep-tasks into uberjar profile, #72; add 10x stubs to uberjar
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfly361 committed Sep 2, 2018
1 parent a578457 commit 28f8e13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject re-frame/lein-template "0.3.15"
(defproject re-frame/lein-template "0.3.16"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
Expand Down
19 changes: 9 additions & 10 deletions src/leiningen/new/re_frame/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@

:plugins [[lein-figwheel "0.5.16"]{{#test?}}
[lein-doo "0.1.8"]{{/test?}}]}
:prod { {{#10x?}}:dependencies [[day8.re-frame/tracing-stubs "0.5.1"]]{{/10x?}}}}
:prod {{{#10x?}}:dependencies [[day8.re-frame/tracing-stubs "0.5.1"]]{{/10x?}}}{{#handler?}}
:uberjar {:source-paths ["env/prod/clj"]{{#10x?}}
:dependencies [[day8.re-frame/tracing-stubs "0.5.1"]]{{/10x?}}
:omit-source true
:main {{ns-name}}.server
:aot [{{ns-name}}.server]
:uberjar-name "{{name}}.jar"
:prep-tasks ["compile" ["cljsbuild" "once" "min"]{{{prep-garden}}}{{{prep-less}}}]}{{/handler?}}
}

:cljsbuild
{:builds
Expand Down Expand Up @@ -91,13 +99,4 @@
:output-dir "resources/public/js/compiled/test/out"
:optimizations :none}}{{/test?}}
]}
{{#handler?}}

:main {{ns-name}}.server

:aot [{{ns-name}}.server]

:uberjar-name "{{name}}.jar"

:prep-tasks [["cljsbuild" "once" "min"]{{{prep-garden}}}{{{prep-less}}} "compile"]{{/handler?}}
)

0 comments on commit 28f8e13

Please sign in to comment.