2017-12-12 08:02:11 +00:00
|
|
|
(defproject status-desktop "0.0.1-SNAPSHOT"
|
|
|
|
:description "Status Desktop (React Native Web and Electron)"
|
|
|
|
:url "https://github.com/status-im/status-electron"
|
|
|
|
:license {:name "Mozilla Public License v2.0"
|
|
|
|
:url "https://github.com/status-im/status-react/blob/develop/LICENSE.md"}
|
2017-11-10 16:36:23 +00:00
|
|
|
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
|
|
|
|
[org.clojure/clojurescript "1.9.908"]
|
|
|
|
[org.clojure/core.async "0.3.443"]
|
2017-11-10 19:36:21 +00:00
|
|
|
[reagent "0.7.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server cljsjs/create-react-class]]
|
2017-11-10 16:36:23 +00:00
|
|
|
[re-frame "0.10.1"]
|
2017-12-08 09:55:14 +00:00
|
|
|
[alandipert/storage-atom "2.0.1"]
|
2017-11-10 16:36:23 +00:00
|
|
|
[com.andrewmcveigh/cljs-time "0.5.0"]
|
|
|
|
[com.taoensso/timbre "4.10.0"]
|
|
|
|
[ring/ring-core "1.5.1"]
|
|
|
|
[figwheel "0.5.14"]
|
|
|
|
[hickory "0.7.1"]
|
2017-12-08 09:55:14 +00:00
|
|
|
[re-frisk-remote "0.5.3"]]
|
|
|
|
:plugins [[lein-re-frisk "0.5.5"]
|
2017-11-10 16:36:23 +00:00
|
|
|
[lein-cljsbuild "1.1.5"]
|
|
|
|
[lein-externs "0.1.6"]
|
|
|
|
[lein-shell "0.5.0"]
|
|
|
|
[lein-figwheel "0.5.14" :exclusions [org.clojure/core.cache]]]
|
|
|
|
:source-paths ["src_tools"]
|
2017-12-12 08:02:11 +00:00
|
|
|
:aliases {"desktop-figwheel" ["trampoline" "figwheel" "dev-front"]
|
|
|
|
"desktop-once" ["do"
|
2017-11-10 16:36:23 +00:00
|
|
|
["cljsbuild" "once" "dev-main"]
|
2017-11-14 10:33:01 +00:00
|
|
|
["cljsbuild" "once" "dev-front"]]
|
2017-12-12 08:02:11 +00:00
|
|
|
"desktop-prod" ["do"
|
|
|
|
["cljsbuild" "once" "prod-main"]
|
|
|
|
["cljsbuild" "once" "prod-front"]]
|
|
|
|
|
2017-11-10 16:36:23 +00:00
|
|
|
;; electron packager for production
|
2017-12-12 08:02:11 +00:00
|
|
|
"desktop-app-osx" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=darwin" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
|
|
|
|
"desktop-app-store" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=mas" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
|
|
|
|
"desktop-app-linux" ["shell" "electron-packager" "./app/prod" "status-desktop" "--platform=linux" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
|
|
|
|
"desktop-app-win64" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "status-desktop" "--platform=win32" "--arch=x64" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]
|
|
|
|
"desktop-app-win32" ["shell" "cmd.exe" "/c" "electron-packager" "./app/prod" "status-desktop" "--platform=win32" "--arch=ia32" "--electron-version=1.8.2-beta.3" "--extraResource=./node_modules"]}
|
2017-11-10 16:36:23 +00:00
|
|
|
|
|
|
|
: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"
|
|
|
|
:warnings true
|
|
|
|
:elide-asserts true
|
|
|
|
:target :nodejs
|
|
|
|
|
|
|
|
;; no optimize compile (dev)
|
2017-11-10 20:35:40 +00:00
|
|
|
;;:optimizations :none
|
2017-11-10 16:36:23 +00:00
|
|
|
:output-dir "app/dev/js/out_main"
|
|
|
|
|
|
|
|
;; simple compile (dev)
|
2017-11-10 20:35:40 +00:00
|
|
|
:optimizations :simple
|
2017-11-10 16:36:23 +00:00
|
|
|
|
|
|
|
;; advanced compile (prod)
|
|
|
|
;;:optimizations :advanced
|
|
|
|
|
|
|
|
;;:source-map "app/dev/js/test.js.map"
|
|
|
|
:pretty-print true
|
|
|
|
:output-wrapper true}}
|
2017-12-08 09:55:14 +00:00
|
|
|
:dev-front {:source-paths ["src_front" "src_front_profile/dev"
|
2017-11-10 16:36:23 +00:00
|
|
|
"../status-react/src"]
|
|
|
|
:incremental true
|
|
|
|
:jar true
|
|
|
|
:assert true
|
|
|
|
:compiler {:output-to "app/dev/js/front.js"
|
|
|
|
:warnings true
|
|
|
|
:elide-asserts true
|
|
|
|
|
|
|
|
;; 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"
|
|
|
|
:warnings true
|
|
|
|
:elide-asserts true
|
|
|
|
:target :nodejs
|
|
|
|
|
|
|
|
;; no optimize compile (dev)
|
2017-11-10 20:35:40 +00:00
|
|
|
;;:optimizations :none
|
2017-11-10 16:36:23 +00:00
|
|
|
:output-dir "app/prod/js/out_main"
|
|
|
|
;; simple compile (dev)
|
2017-11-10 20:35:40 +00:00
|
|
|
:optimizations :simple
|
2017-11-10 16:36:23 +00:00
|
|
|
|
|
|
|
;; advanced compile (prod)
|
|
|
|
;;:optimizations :advanced
|
|
|
|
|
|
|
|
;;:source-map "app/prod/js/test.js.map"
|
|
|
|
:pretty-print true
|
|
|
|
:output-wrapper true}}
|
2017-12-08 09:55:14 +00:00
|
|
|
:prod-front {:source-paths ["src_front" "src_front_profile/prod"
|
2017-11-10 19:36:21 +00:00
|
|
|
"../status-react/src"]
|
2017-11-10 16:36:23 +00:00
|
|
|
:incremental true
|
|
|
|
:jar true
|
|
|
|
:assert true
|
|
|
|
:compiler {:output-to "app/prod/js/front.js"
|
2017-12-08 09:55:14 +00:00
|
|
|
:warnings true
|
2017-11-10 16:36:23 +00:00
|
|
|
:elide-asserts true
|
|
|
|
;; :target :nodejs
|
|
|
|
|
|
|
|
;; no optimize compile (dev)
|
2017-12-08 09:55:14 +00:00
|
|
|
:optimizations :none
|
2017-11-10 16:36:23 +00:00
|
|
|
:output-dir "app/prod/js/out_front"
|
|
|
|
|
|
|
|
;; simple compile (dev)
|
2017-12-08 09:55:14 +00:00
|
|
|
;;:optimizations :simple
|
2017-11-10 16:36:23 +00:00
|
|
|
|
|
|
|
;; 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})
|