PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/project.clj

https://gitlab.com/snoonan99/map18xx
Clojure | 106 lines | 44 code | 24 blank | 38 comment | 0 complexity | f28bf7b3455e1ad77fa5bbb136af1283 MD5 | raw file
  1. (defproject map18xx "0.1.0"
  2. :description "18xx interactive map"
  3. :url "http://tbearsiberians.com/18xx"
  4. :license {:name "Eclipse Public License"
  5. :url "http://www.eclipse.org/legal/epl-v10.html"}
  6. :min-lein-version "2.6.1"
  7. :dependencies [[org.clojure/clojure "1.8.0"]
  8. [org.clojure/clojurescript "1.8.51"]
  9. [org.omcljs/om "1.0.0-alpha41"]
  10. [cljs-ajax "0.5.8"]]
  11. :plugins [[lein-figwheel "0.5.4-7"]
  12. [lein-cljsbuild "1.1.3" :exclusions [[org.clojure/clojure]]]]
  13. :source-paths ["src"]
  14. :clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
  15. :cljsbuild {:builds
  16. [{:id "dev"
  17. :source-paths ["src"]
  18. ;; the presence of a :figwheel configuration here
  19. ;; will cause figwheel to inject the figwheel client
  20. ;; into your build
  21. :figwheel {:on-jsload "map18xx.core/on-js-reload"
  22. ;; :open-urls will pop open your application
  23. ;; in the default browser once Figwheel has
  24. ;; started and complied your application.
  25. ;; Comment this out once it no longer serves you.
  26. :open-urls ["http://localhost:3449/index.html"]}
  27. :compiler {:main map18xx.core
  28. :externs ["externs.js"]
  29. :asset-path "js/compiled/out"
  30. :output-to "resources/public/js/map18xx.js"
  31. :output-dir "resources/public/js/compiled/out"
  32. :source-map-timestamp true}}
  33. ;; This next build is an compressed minified build for
  34. ;; production. You can build this with:
  35. ;; lein cljsbuild once min
  36. {:id "min"
  37. :source-paths ["src"]
  38. :compiler {:output-to "resources/public/js/map18xx.js"
  39. :externs ["resources/public/js/extern.js"]
  40. :main map18xx.core
  41. :optimizations :advanced
  42. :pretty-print false}}]}
  43. :figwheel {;; :http-server-root "public" ;; default and assumes "resources"
  44. ;; :server-port 3449 ;; default
  45. ;; :server-ip "127.0.0.1"
  46. :server-ip "0.0.0.0" ;; default is "localhost"
  47. :css-dirs ["resources/public/css"] ;; watch and update CSS
  48. ;; Start an nREPL server into the running figwheel process
  49. :nrepl-port 7888
  50. ;; Server Ring Handler (optional)
  51. ;; if you want to embed a ring handler into the figwheel http-kit
  52. ;; server, this is for simple ring servers, if this
  53. ;; doesn't work for you just run your own server :) (see lien-ring)
  54. ;; :ring-handler hello_world.server/handler
  55. ;; To be able to open files in your editor from the heads up display
  56. ;; you will need to put a script on your path.
  57. ;; that script will have to take a file path and a line number
  58. ;; ie. in ~/bin/myfile-opener
  59. ;; #! /bin/sh
  60. ;; emacsclient -n +$2 $1
  61. ;;
  62. ;; :open-file-command "myfile-opener"
  63. ;; if you are using emacsclient you can just use
  64. ;; :open-file-command "emacsclient"
  65. ;; if you want to disable the REPL
  66. ;; :repl false
  67. ;; to configure a different figwheel logfile path
  68. ;; :server-logfile "tmp/logs/figwheel-logfile.log"
  69. }
  70. ;; setting up nREPL for Figwheel and ClojureScript dev
  71. ;; Please see:
  72. ;; https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
  73. :profiles {:dev {:dependencies [[figwheel-sidecar "0.5.4-7"]
  74. [com.cemerick/piggieback "0.2.1"]]
  75. ;; need to add dev source path here to get user.clj loaded
  76. :source-paths ["src" "dev"]
  77. ;; for CIDER
  78. ;; :plugins [[cider/cider-nrepl "0.12.0"]]
  79. :repl-options {; for nREPL dev you really need to limit output
  80. :init (set! *print-length* 50)
  81. :nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
  82. )