Merge pull request #318 from status-im/fix/remove-build-contracts-from-dev

Do not invoke build-contracts when running lein dev profile
This commit is contained in:
Vitaliy Vlasov 2018-02-21 18:01:22 +02:00 committed by GitHub
commit 1c774e6053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -106,6 +106,12 @@ Launch the following command in a separate shell:
lein less auto
```
### Solidity compilation
Invoke `build-contracts` Leiningen task to compile Solidity files into Java classes:
```
lein build-contracts
```
### Clojure app without REPL
Launch following commands each in its own shell:
@ -146,7 +152,10 @@ To create a standalone uberjar:
lein uberjar
```
This creates `target/uberjar/commiteth-<git-sha>.jar`
This creates `target/uberjar/commiteth.jar`. You can run it with the following command from within project root:
```
java -Dconf=<path_to_config.edn> -jar target/uberjar/commiteth.jar
```
## Testing

View File

@ -83,14 +83,13 @@
:uberjar-exclusions [#"public/README.md" #"public/cards.html"]
:clean-targets ^{:protect false}
[:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
[:target-path :java-source-paths [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
:figwheel
{:http-server-root "public"
:nrepl-port 7002
:css-dirs ["resources/public/css"]
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:profiles
{:uberjar {:jvm-opts ["-server" "-Dconf=config-prod.edn"]
:omit-source true
@ -143,7 +142,6 @@
:optimizations :none
:pretty-print true}}]}
:prep-tasks ["build-contracts" "javac"]
:doo {:build "test"}
:source-paths ["env/dev/clj" "test/clj"]
:resource-paths ["env/dev/resources"]