88 lines
3.4 KiB
Clojure
88 lines
3.4 KiB
Clojure
(defproject macchiato-web3-example "0.1.0-SNAPSHOT"
|
|
:description "FIXME: write this!"
|
|
:url "http://example.com/FIXME"
|
|
:dependencies [[bidi "2.1.2"]
|
|
[com.cemerick/piggieback "0.2.2"]
|
|
[com.taoensso/timbre "4.10.0"]
|
|
[macchiato/hiccups "0.4.1"]
|
|
[macchiato/core "0.2.2"]
|
|
[macchiato/env "0.0.6"]
|
|
[mount "0.1.11"]
|
|
[cljs-web3 "0.19.0-0-7"]
|
|
[org.clojure/clojure "1.8.0"]
|
|
[org.clojure/clojurescript "1.9.908"]]
|
|
:min-lein-version "2.0.0"
|
|
:jvm-opts ^:replace ["-Xmx1g" "-server"]
|
|
:plugins [[lein-doo "0.1.7"]
|
|
[macchiato/lein-npm "0.6.3"]
|
|
[lein-figwheel "0.5.13"]
|
|
[lein-cljsbuild "1.1.5"]]
|
|
:npm {:dependencies [[source-map-support "0.4.6"]
|
|
[web3 "0.14.0"]]
|
|
:write-package-json true}
|
|
:source-paths ["src" "target/classes"]
|
|
:clean-targets ["target"]
|
|
:target-path "target"
|
|
:profiles
|
|
{:dev
|
|
{:npm {:package {:main "target/out/macchiato-web3-example.js"
|
|
:scripts {:start "node target/out/macchiato-web3-example.js"}}}
|
|
:dependencies [[figwheel-sidecar "0.5.13"]]
|
|
:cljsbuild
|
|
{:builds {:dev
|
|
{:source-paths ["env/dev" "src"]
|
|
:figwheel true
|
|
:compiler {:main macchiato-web3-example.app
|
|
:output-to "target/out/macchiato-web3-example.js"
|
|
:output-dir "target/out"
|
|
:target :nodejs
|
|
:optimizations :none
|
|
:pretty-print true
|
|
:source-map true
|
|
:source-map-timestamp false}}}}
|
|
:figwheel
|
|
{:http-server-root "public"
|
|
:nrepl-port 7000
|
|
:reload-clj-files {:clj false :cljc true}
|
|
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
|
|
:source-paths ["env/dev"]
|
|
:repl-options {:init-ns user}}
|
|
:test
|
|
{:cljsbuild
|
|
{:builds
|
|
{:test
|
|
{:source-paths ["env/test" "src" "test"]
|
|
:compiler {:main macchiato-web3-example.app
|
|
:output-to "target/test/macchiato-web3-example.js"
|
|
:target :nodejs
|
|
:optimizations :none
|
|
:pretty-print true
|
|
:source-map true}}}}
|
|
:doo {:build "test"}}
|
|
:release
|
|
{:npm {:package {:main "target/release/macchiato-web3-example.js"
|
|
:scripts {:start "node target/release/macchiato-web3-example.js"}}}
|
|
:cljsbuild
|
|
{:builds
|
|
{:release
|
|
{:source-paths ["env/prod" "src"]
|
|
:compiler {:main macchiato-web3-example.app
|
|
:output-to "target/release/macchiato-web3-example.js"
|
|
:language-in :ecmascript5
|
|
:target :nodejs
|
|
:optimizations :simple
|
|
:pretty-print false}}}}}}
|
|
:aliases
|
|
{"build" ["do"
|
|
["clean"]
|
|
["npm" "install"]
|
|
["figwheel" "dev"]]
|
|
"package" ["do"
|
|
["clean"]
|
|
["npm" "install"]
|
|
["with-profile" "release" "npm" "init" "-y"]
|
|
["with-profile" "release" "cljsbuild" "once"]]
|
|
"test" ["do"
|
|
["npm" "install"]
|
|
["with-profile" "test" "doo" "node"]]})
|