Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move "out" directory to "target" #29

Closed
jmreidy opened this issue Oct 16, 2014 · 3 comments · Fixed by #30
Closed

Move "out" directory to "target" #29

jmreidy opened this issue Oct 16, 2014 · 3 comments · Fixed by #30

Comments

@jmreidy
Copy link
Contributor

jmreidy commented Oct 16, 2014

First of all, thank you for Weasel. It's excellent, useful, and highly readable even to a Clojure newb such as myself.

I've noticed that running the Weasel repl creates a new "out" directory in my project. I'm hoping that Weasel could be updated to put this "out" dir in a "target" dir, or something customizable. Please see a similar discussion for Austin here: cemerick/austin#14

I'll continue poking at this on my own, but as I'm new with Clojure it could take me awhile. :)

@gberenfield
Copy link

Reopen? Seeing this in 0.7.0

@tomjakubowski
Copy link
Collaborator

Any chance you could post the project.clj?

@gberenfield
Copy link

Sure

(defproject pol "0.1.0-SNAPSHOT"
  :description "POL in clojure"
  :dependencies [[org.clojure/clojure "1.7.0"]
                 [org.clojure/tools.reader "0.9.2"]
                 [org.clojure/tools.nrepl "0.2.10"]
                 [org.immutant/web "2.1.0"]
                 [compojure "1.4.0"]
                 [ring "1.4.0" :exclusions [ring/ring-jetty-adapter]]
                 [ring/ring-defaults "0.1.5"]
                 [ring/ring-session-timeout "0.1.0"]
                 [ring-ttl-session "0.1.1"]
                 [metosin/ring-middleware-format "0.6.0"]
                 [metosin/ring-http-response "0.6.5"]
                 [buddy "0.6.2"]
                 [ring-webjars "0.1.1"]
                 [hiccup "1.0.5"]
                 [selmer "0.9.1"]
                 [bouncer "0.3.3"]
                 [com.taoensso/timbre "4.1.1"]
                 [markdown-clj "0.9.71"]
                 [org.clojure/java.jdbc "0.4.1"]
                 [java-jdbc/dsl "0.1.3"]
                 [honeysql "0.6.1"]
                 [ring-wicked-pdf "0.4.2"]
                 [clojure-csv/clojure-csv "2.0.1"]
                 [circleci/clj-yaml "0.5.4"]
                 [clj-time "0.11.0"]
                 [clj-pdf "2.1.1"]
                 [cheshire "5.5.0"]
                 [clj-http "2.0.0"]
                 [prone "0.8.2"]
                 [im.chit/hara "2.2.11"]
                 [im.chit/cronj "1.4.3"]
                 [mysql/mysql-connector-java "5.1.36"]
                 [yesql "0.5.0"]
                 [net.sourceforge.jtds/jtds "1.3.1"]
                 [com.microsoft/sqljdbc4 "3.0"]
                 [digest "1.4.4"]
                 [environ "1.0.0"]
                 ;; cljs below
                 [org.clojure/clojurescript "1.7.122" :scope "provided"]
                 [domina "1.0.3"]
                 [im.chit/purnam "0.5.2"]
                 [jayq "2.5.4"]
                 [cljs-ajax "0.3.14"]
                 [org.clojure/core.async "0.1.346.0-17112a-alpha"]
                 [cljsjs/react "0.13.3-1"]
                 [cljsjs/jquery "2.1.4-0"]
                 [cljsjs/jquery-ui "1.11.3-1"]
                 [cljsjs/bootstrap "3.3.5-0"]
                 [cljsjs/jqgrid "5.0.0-0"]
                 [reagent "0.5.1-rc3"]
                 [re-frame "0.4.1"]
                 [reagent-utils "0.1.5"]
                 [re-com "0.6.2"]
                 [secretary "1.2.3"]
                 [com.andrewmcveigh/cljs-time "0.3.13"]
                 [weasel "0.7.0" :exclusions [org.clojure/clojurescript]]
                 [org.omcljs/om "0.9.0"]
                 [prismatic/om-tools "0.3.12"]
                 [racehub/om-bootstrap "0.5.3" :exclusions [org.clojure/clojure]]]
  ;; :cache-analysis true ; disabling 2015-03-10 per http://dev.clojure.org/jira/browse/CLJS-1103 and https://groups.google.com/forum/#!topic/clojurescript/fdT3f1HxJzM
  :jvm-opts ["-server"]
  :main pol.core
  :aot [pol.core]
  :repl-options {;:init-ns pol.repl
                 :init (do
                         (require 'weasel.repl.websocket)
                         (defn start-weasel [& opts]
                           (cemerick.piggieback/cljs-repl
                            (apply weasel.repl.websocket/repl-env opts))))}
  :clean-targets ^{:protect false} [:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
  :plugins [[lein-environ "1.0.0"]
            [lein-ancient "0.6.5"]
            [migratus-lein "0.1.5"]
            [lein-cljsbuild "1.0.6"]]
  :ring {:handler pol.handler/app
         :init    pol.handler/init
         :destroy pol.handler/destroy}
  :cljsbuild
  {:builds
   {:app
    {:source-paths ["src-cljs"],
     :compiler
     {:output-to "resources/public/js/app.js",
      :output-dir "resources/public/js/out",
      :externs ["react/externs/react.js"]
      :optimizations :none,
      :pretty-print true}}}}
  :profiles
  {:uberjar       [:project/uberjar :profiles/uberjar]
   :dev           [:project/dev :profiles/dev]
   :test          [:project/test :profiles/test]
   :project/uberjar {:omit-source true
                     :env {:production true}
                     :hooks [leiningen.cljsbuild]
                     :cljsbuild
                     {:jar true
                      :builds
                      {:app
                       {:source-paths ["env/prod/cljs"]
                        :compiler {:optimizations :advanced :pretty-print false}}}}
                     :aot [pol.core]}
   :project/dev  {:dependencies [[ring/ring-mock "0.2.0"]
                                 [ring/ring-devel "1.4.0"]
                                 [pjstadig/humane-test-output "0.7.0"]
                                 [org.clojure/tools.nrepl "0.2.10"]
                                 [com.cemerick/piggieback "0.2.1"]
                                 [lein-figwheel "0.3.9"]
                                 [mvxcvi/puget "0.8.1"]]
                  :plugins [[lein-figwheel "0.3.9"]]
                  :cljsbuild
                  {:builds
                   {:app
                    {:source-paths ["env/dev/cljs"] :compiler {:source-map true}}}}
                  :figwheel
                  {:http-server-root "public"
                   :server-port 3449
                   :nrepl-port 7002
                   :css-dirs ["resources/public/css"]
                   :ring-handler pol.handler/app}
                  :repl-options {:init-ns pol.core ;; DOUBLE-CHECK THIS LINE... auto-compile/load js here I think
                                 :nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]} ;; needed for weasel
                  :injections [(require 'pjstadig.humane-test-output)
                               (pjstadig.humane-test-output/activate!)]
                  ;;when :nrepl-port is set the application starts the nREPL server on load
                  :env {:dev        true
                        :port       3000
                        :nrepl-port 7000}}
   :project/test {:env {:test       true
                        :port       3001
                        :nrepl-port 7001}}
   :profiles/dev {}
   :profiles/test {}}

  :aliases {"build" ^{:doc "Make jars for standalone running"} ["do" "clean" ["with-profile" "uberjar" "ring" "uberjar"]]}
  :min-lein-version "2.0.0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants