Skip to content

Instantly share code, notes, and snippets.

@whacked
Created July 17, 2017 07:25
Show Gist options
  • Save whacked/feaccb5c25c412410e0b578296f23c56 to your computer and use it in GitHub Desktop.
Save whacked/feaccb5c25c412410e0b578296f23c56 to your computer and use it in GitHub Desktop.
bare descjop with piggieback, sidecar, refactor-nrepl for use with clj-refactor
(defproject my-app "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.473" :exclusions [org.apache.ant/ant]]
[org.clojure/core.async "0.2.395"]
[reagent "0.6.0"]
[ring/ring-core "1.5.1"]
[figwheel "0.5.11"]
[clj-http "3.6.1"]]
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.11"]
[com.cemerick/piggieback "0.2.2"]]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
:plugins [[lein-cljsbuild "1.1.5"]
[lein-externs "0.1.6"]
[lein-shell "0.5.0"]
[lein-figwheel "0.5.11" :exclusions [org.clojure/core.cache]]
[refactor-nrepl "2.3.1"]
[cider/cider-nrepl "0.14.0"]]
:source-paths ["src_tools"]
:aliases {"descjop-help" ["new" "descjop" "help"]
"descjop-version" ["new" "descjop" "version"]
"descjop-init" ["do"
["shell" "npm" "install"]
["shell" "grunt" "download-electron"]]
"descjop-init-win" ["do"
["shell" "cmd.exe" "/c" "npm" "install"]
["shell" "cmd.exe" "/c" "grunt" "download-electron"]]
"descjop-externs" ["do"
["externs" "dev-main" "app/dev/js/externs.js"]
["externs" "dev-front" "app/dev/js/externs_front.js"]
["externs" "prod-main" "app/prod/js/externs.js"]
["externs" "prod-front" "app/prod/js/externs_front.js"]]
"descjop-externs-dev" ["do"
["externs" "dev-main" "app/dev/js/externs.js"]
["externs" "dev-front" "app/dev/js/externs_front.js"]]
"descjop-externs-prod" ["do"
["externs" "prod-main" "app/prod/js/externs.js"]
["externs" "prod-front" "app/prod/js/externs_front.js"]]
"descjop-figwheel" ["trampoline" "figwheel" "dev-front"]
"descjop-once" ["do"
["cljsbuild" "once" "dev-main"]
["cljsbuild" "once" "dev-front"]
["cljsbuild" "once" "prod-main"]
["cljsbuild" "once" "prod-front"]]
"descjop-once-dev" ["do"
["cljsbuild" "once" "dev-main"]
["cljsbuild" "once" "dev-front"]]
"descjop-once-prod" ["do"
["cljsbuild" "once" "prod-main"]
["cljsbuild" "once" "prod-front"]]
;; electron packager for production
"descjop-uberapp-osx" ["shell" "electron-packager" "./app/prod" "my-app" "--platform=darwin" "--arch=x64" "--electron-version=1.6.6"]
"descjop-uberapp-app-store" ["shell" "electron-packager" "./app/prod" "my-app" "--platform=mas" "--arch=x64" "--electron-version=1.6.6"]
"descjop-uberapp-linux" ["shell" "electron-packager" "./app/prod" "my-app" "--platform=linux" "--arch=x64" "--electron-version=1.6.6"]
"descjop-uberapp-win64" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "my-app" "--platform=win32" "--arch=x64" "--electron-version=1.6.6"]
"descjop-uberapp-win32" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "my-app" "--platform=win32" "--arch=ia32" "--electron-version=1.6.6"]
}
:hooks [leiningen.cljsbuild]
:cljsbuild {:builds {:dev-main {:source-paths ["src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/dev/js/cljsbuild-main.js"
:externs ["app/dev/js/externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"]
:warnings true
:elide-asserts true
:target :nodejs
;; no optimize compile (dev)
;; :optimizations :none
:output-dir "app/dev/js/out_main"
;; simple compile (dev)
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/dev/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:dev-front {:source-paths ["src_front" "src_front_profile/my_app_front/dev"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/dev/js/front.js"
:externs ["app/dev/js/externs_front.js"]
:warnings true
:elide-asserts true
;; :target :nodejs
;; no optimize compile (dev)
:optimizations :none
:output-dir "app/dev/js/out_front"
;; simple compile (dev)
;;:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/dev/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:prod-main {:source-paths ["src"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/cljsbuild-main.js"
:externs ["app/prod/js/externs.js"
"node_modules/closurecompiler-externs/path.js"
"node_modules/closurecompiler-externs/process.js"]
:warnings true
:elide-asserts true
:target :nodejs
;; no optimize compile (dev)
;;:optimizations :none
:output-dir "app/prod/js/out_main"
;; simple compile (dev)
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/prod/js/test.js.map"
:pretty-print true
:output-wrapper true}}
:prod-front {:source-paths ["src_front" "src_front_profile/my_app_front/prod"]
:incremental true
:jar true
:assert true
:compiler {:output-to "app/prod/js/front.js"
:externs ["app/prod/js/externs_front.js"]
:warnings true
:elide-asserts true
;; :target :nodejs
;; no optimize compile (dev)
;;:optimizations :none
:output-dir "app/prod/js/out_front"
;; simple compile (dev)
:optimizations :simple
;; advanced compile (prod)
;;:optimizations :advanced
;;:source-map "app/prod/js/test.js.map"
:pretty-print true
:output-wrapper true}}}}
:figwheel {:http-server-root "public"
:ring-handler figwheel-middleware/app
:server-port 3449})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment