project.clj 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. (defproject hello "0.1.0-SNAPSHOT"
  2. :description "FIXME: write this!"
  3. :url "http://example.com/FIXME"
  4. :dependencies [[bidi "2.0.16"]
  5. [com.cemerick/piggieback "0.2.1"]
  6. [com.taoensso/timbre "4.8.0"]
  7. [hiccups "0.3.0"]
  8. [macchiato/core "0.1.6"]
  9. [macchiato/env "0.0.5"]
  10. [javax.xml.bind/jaxb-api "2.2.12"]
  11. [mount "0.1.11"]
  12. [org.clojure/clojure "1.8.0"]
  13. [org.clojure/clojurescript "1.9.518"]]
  14. :jvm-opts ^:replace ["-Xmx1g" "-server"]
  15. :plugins [[lein-doo "0.1.7"]
  16. [macchiato/lein-npm "0.6.3"]
  17. [lein-figwheel "0.5.10"]
  18. [lein-cljsbuild "1.1.5"]]
  19. :npm {:dependencies [[pg "6.1.5"]
  20. [sequelize "3.30.4"]
  21. [source-map-support "0.4.6"]]
  22. :write-package-json true}
  23. :source-paths ["src" "target/classes"]
  24. :clean-targets ["target"]
  25. :target-path "target"
  26. :profiles
  27. {:dev
  28. {:npm {:package {:main "target/out/hello.js"
  29. :scripts {:start "node target/out/hello.js"}}}
  30. :cljsbuild
  31. {:builds {:dev
  32. {:source-paths ["env/dev" "src"]
  33. :figwheel true
  34. :compiler {:main hello.app
  35. :output-to "target/out/hello.js"
  36. :output-dir "target/out"
  37. :target :nodejs
  38. :optimizations :none
  39. :pretty-print true
  40. :source-map true
  41. :source-map-timestamp false}}}}
  42. :figwheel
  43. {:http-server-root "public"
  44. :nrepl-port 7000
  45. :reload-clj-files {:clj false :cljc true}
  46. :nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
  47. :source-paths ["env/dev"]
  48. :repl-options {:init-ns user}}
  49. :test
  50. {:cljsbuild
  51. {:builds
  52. {:test
  53. {:source-paths ["env/test" "src" "test"]
  54. :compiler {:main hello.app
  55. :output-to "target/test/hello.js"
  56. :target :nodejs
  57. :optimizations :none
  58. :pretty-print true
  59. :source-map true}}}}
  60. :doo {:build "test"}}
  61. :release
  62. {:npm {:package {:main "target/release/hello.js"
  63. :scripts {:start "node target/release/hello.js"}}}
  64. :cljsbuild
  65. {:builds
  66. {:release
  67. {:source-paths ["env/prod" "src"]
  68. :compiler {:main hello.app
  69. :output-to "target/release/hello.js"
  70. :language-in :ecmascript5
  71. ;:output-dir "target/release"
  72. :target :nodejs
  73. :optimizations :simple ;:none
  74. :pretty-print false}}}}}}
  75. :aliases
  76. {"build" ["do"
  77. ["clean"]
  78. ["npm" "install"]
  79. ["figwheel" "dev"]]
  80. "package" ["do"
  81. ["clean"]
  82. ["npm" "install"]
  83. ["with-profile" "release" "npm" "init" "-y"]
  84. ["with-profile" "release" "cljsbuild" "once"]]
  85. "test" ["do"
  86. ["npm" "install"]
  87. ["with-profile" "test" "doo" "node"]]})