some minor adjustments to generated project.clj
This commit is contained in:
parent
2b7bb08034
commit
ce87e5640e
|
@ -2,106 +2,106 @@
|
||||||
(def figwheel-version "0.5.8")
|
(def figwheel-version "0.5.8")
|
||||||
|
|
||||||
(defproject {{name}} "0.1.0-SNAPSHOT"
|
(defproject {{name}} "0.1.0-SNAPSHOT"
|
||||||
:description "FIXME: write description"
|
:description "FIXME: write description"
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "MIT License"
|
:license {:name "MIT License"
|
||||||
:url "http://opensource.org/licenses/MIT"}
|
:url "http://opensource.org/licenses/MIT"}
|
||||||
|
|
||||||
:dependencies [[cljsjs/bootstrap "3.3.6-1"]
|
:dependencies [[cljsjs/bootstrap "3.3.6-1"]
|
||||||
[figwheel ~figwheel-version]
|
[figwheel ~figwheel-version]
|
||||||
[org.clojure/clojure "1.8.0"]
|
[org.clojure/clojure "1.8.0"]
|
||||||
[org.clojure/clojurescript "1.9.293"]
|
[org.clojure/clojurescript "1.9.293"]
|
||||||
[org.webjars/bootstrap "3.3.6"]
|
[org.webjars/bootstrap "3.3.6"]
|
||||||
[reagent "0.6.0"]
|
[reagent "0.6.0"]
|
||||||
[ring/ring-core "1.5.0"]]
|
[ring/ring-core "1.5.0"]]
|
||||||
|
|
||||||
:plugins [[lein-cljsbuild "1.1.4"]
|
:plugins [[lein-cljsbuild "1.1.4"]
|
||||||
[lein-externs "0.1.6"]
|
[lein-externs "0.1.6"]
|
||||||
[lein-figwheel ~figwheel-version]
|
[lein-figwheel ~figwheel-version]
|
||||||
[lein-npm "0.6.2"]
|
[lein-npm "0.6.2"]
|
||||||
[lein-shell "0.5.0"]]
|
[lein-shell "0.5.0"]]
|
||||||
|
|
||||||
:npm {:devDependencies [[electron-prebuilt ~electron-version]
|
:npm {:devDependencies [[electron-prebuilt ~electron-version]
|
||||||
[electron-packager "^8.3.0"]
|
[electron-packager "^8.3.0"]
|
||||||
[closurecompiler-externs "^1.0.4"]
|
[closurecompiler-externs "^1.0.4"]
|
||||||
[ws "^1.1.1"]]}
|
[ws "^1.1.1"]]}
|
||||||
|
|
||||||
:source-paths ["src"]
|
:source-paths ["src"]
|
||||||
|
:resource-paths ["app"]
|
||||||
|
|
||||||
:clean-targets ^{:protect false} [:target-path
|
:clean-targets ^{:protect false} [:target-path
|
||||||
"releases"
|
"releases"
|
||||||
[:cljsbuild :builds :main :compiler :output-to]
|
[:cljsbuild :builds :main :compiler :output-to]
|
||||||
[:cljsbuild :builds :main :compiler :output-dir]
|
[:cljsbuild :builds :main :compiler :output-dir]
|
||||||
[:cljsbuild :builds :front :compiler :output-to]
|
[:cljsbuild :builds :front :compiler :output-to]
|
||||||
[:cljsbuild :builds :front :compiler :output-dir]
|
[:cljsbuild :builds :front :compiler :output-dir]
|
||||||
"app/js/externs_main.js"
|
"app/js/externs_main.js"
|
||||||
"app/js/externs_front.js"]
|
"app/js/externs_front.js"]
|
||||||
|
|
||||||
:figwheel {:nrepl-port 7888
|
:figwheel {:nrepl-port 7888
|
||||||
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
|
||||||
:builds-to-start [:front]}
|
:builds-to-start [:front]}
|
||||||
|
|
||||||
:cljsbuild {:builds
|
:cljsbuild {:builds
|
||||||
{:main
|
{:main
|
||||||
{:source-paths ["src" "src_main"]
|
{:source-paths ["src" "src_main"]
|
||||||
:figwheel {:on-jsload {{root-ns}}.main.init/on-figwheel-reload!}
|
:figwheel {:on-jsload {{root-ns}}.main.init/on-figwheel-reload!}
|
||||||
:compiler {:main {{root-ns}}.main.init
|
:compiler {:main {{root-ns}}.main.init
|
||||||
:output-to "app/js/main.js"
|
:output-to "app/js/main.js"
|
||||||
:output-dir "app/js/out_main"
|
:output-dir "app/js/out_main"
|
||||||
:asset-path "app/js/out_main"
|
:asset-path "app/js/out_main"
|
||||||
:externs ["app/js/externs_main.js"]
|
:externs ["app/js/externs_main.js"]
|
||||||
:target :nodejs
|
:target :nodejs
|
||||||
:optimizations :none}}
|
:optimizations :none}}
|
||||||
:front
|
:front
|
||||||
{:source-paths ["src" "src_front"]
|
{:source-paths ["src" "src_front"]
|
||||||
:figwheel {:on-jsload {{root-ns}}.init/start-front!}
|
:figwheel {:on-jsload {{root-ns}}.init/start-front!}
|
||||||
:compiler {:main {{root-ns}}.init
|
:compiler {:main {{root-ns}}.init
|
||||||
:output-to "app/js/front.js"
|
:output-to "app/js/front.js"
|
||||||
:output-dir "app/js/out_front"
|
:output-dir "app/js/out_front"
|
||||||
:asset-path "js/out_front"
|
:asset-path "js/out_front"
|
||||||
:externs ["app/js/externs_front.js"]
|
:externs ["app/js/externs_front.js"]
|
||||||
:optimizations :none}}}}
|
:optimizations :none}}}}
|
||||||
|
|
||||||
:profiles {:dev {:source-paths ["env/dev/src"]
|
:profiles {:dev {:source-paths ["env/dev/src"]
|
||||||
:dependencies [[com.cemerick/piggieback "0.2.1"]
|
:dependencies [[com.cemerick/piggieback "0.2.1"]
|
||||||
[figwheel-sidecar ~figwheel-version]]
|
[figwheel-sidecar ~figwheel-version]]
|
||||||
:cljsbuild {:builds
|
:cljsbuild {:builds
|
||||||
{:main {:source-paths ["env/dev/src" "env/dev/src_main"]}
|
{:main {:source-paths ["env/dev/src" "env/dev/src_main"]}
|
||||||
:front {:source-paths ["env/dev/src" "env/dev/src_front"]}}}}
|
:front {:source-paths ["env/dev/src" "env/dev/src_front"]}}}}
|
||||||
|
|
||||||
:prod {:source-paths ["env/prod/src"]
|
:prod {:source-paths ["env/prod/src"]
|
||||||
:cljsbuild {:builds
|
:cljsbuild {:builds
|
||||||
{:main {:source-paths ["env/prod/src" "env/prod/src_main"]
|
{:main {:source-paths ["env/prod/src" "env/prod/src_main"]
|
||||||
:compiler ^:replace
|
:compiler ^:replace
|
||||||
{:output-to "app/js/main.js"
|
{:output-to "app/js/main.js"
|
||||||
:externs ["app/js/externs_main.js"]
|
:externs ["app/js/externs_main.js"]
|
||||||
:optimizations :advanced
|
:optimizations :advanced
|
||||||
:target :nodejs
|
:target :nodejs
|
||||||
:pretty-print false}}
|
:pretty-print false}}
|
||||||
:front {:source-paths ["env/prod/src" "env/prod/src_front"]
|
:front {:source-paths ["env/prod/src" "env/prod/src_front"]
|
||||||
:compiler ^:replace
|
:compiler ^:replace
|
||||||
{:output-to "app/js/front.js"
|
{:output-to "app/js/front.js"
|
||||||
:externs ["app/js/externs_front.js"]
|
:externs ["app/js/externs_front.js"]
|
||||||
:optimizations :advanced
|
:optimizations :advanced
|
||||||
:pretty-print false}}}}}}
|
:pretty-print false}}}}}}
|
||||||
|
|
||||||
|
|
||||||
:aliases {"build-main" ["do"
|
:aliases {"build-main" ["do"
|
||||||
["externs" "main" "app/js/externs_main.js"]
|
["externs" "main" "app/js/externs_main.js"]
|
||||||
["cljsbuild" "once" "main"]]
|
["cljsbuild" "once" "main"]]
|
||||||
"build-front" ["do"
|
"build-front" ["do"
|
||||||
["externs" "front" "app/js/externs_front.js"]
|
["externs" "front" "app/js/externs_front.js"]
|
||||||
["cljsbuild" "once" "front"]]
|
["cljsbuild" "once" "front"]]
|
||||||
"build" ["do" "build-main" "build-front"]
|
"build" ["do" "build-main" "build-front"]
|
||||||
"run" ["do"
|
"run" ["do"
|
||||||
["shell" "./node_modules/.bin/electron" "app"]]
|
["shell" "./node_modules/.bin/electron" "app"]]
|
||||||
"package" ["do"
|
"package" ["do"
|
||||||
"clean"
|
"clean"
|
||||||
["with-profile" "prod" "build"]
|
["with-profile" "prod" "build"]
|
||||||
["with-profile" "prod" "shell" "./node_modules/.bin/electron-packager"
|
["with-profile" "prod" "shell" "./node_modules/.bin/electron-packager"
|
||||||
"app" :project/name
|
"app" :project/name ~(str "--version=" electron-version)
|
||||||
~(str "--version=" electron-version)
|
"--asar"
|
||||||
"--asar"
|
"--out=releases"
|
||||||
"--out=releases"
|
"--overwrite"]]}
|
||||||
"--overwrite"]]}
|
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue