This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Web3.js 1.7, tools.build, deps.edn
- Loading branch information
Showing
17 changed files
with
8,731 additions
and
5,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,8 @@ target/ | |
tests-output/ | ||
browser-tests-output/ | ||
.lein-failures | ||
out | ||
yarn-error.log | ||
.shadow-cljs | ||
.cpcache | ||
Session.vim* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 12.22.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(ns build | ||
(:require [clojure.tools.build.api :as b] | ||
[deps-deploy.deps-deploy :as dd])) | ||
|
||
(def lib 'is.mad/cljs-web3-next) ; ends up as <group-id>/<artifact-id> in pom.xml | ||
; (def version (format "1.2.%s" (b/git-count-revs nil))) | ||
(def version "0.0.2") | ||
(def class-dir "target/classes") | ||
(def basis (b/create-basis {:project "deps.edn"})) | ||
(def jar-file (format "target/%s-%s.jar" (name lib) version)) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn jar [_] | ||
(b/write-pom {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis basis | ||
:src-dirs ["src"]}) | ||
(b/copy-dir {:src-dirs ["src" "resources"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) | ||
|
||
(defn deploy [_] | ||
(dd/deploy {:installer :remote | ||
:artifact jar-file | ||
:pom-file (b/pom-path {:lib lib :class-dir class-dir})})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{:paths ["src" "test"] | ||
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"} | ||
"clojars" {:url "https://clojars.org/repo"}} | ||
:deps | ||
{thheller/shadow-cljs {:mvn/version "2.18.0"} | ||
org.clojure/clojure {:mvn/version "1.10.3"} | ||
org.clojure/clojurescript {:mvn/version "1.11.4"} | ||
com.google.javascript/closure-compiler-unshaded {:mvn/version "v20220301"} | ||
|
||
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.0"} | ||
district0x/bignumber {:mvn/version "1.0.3"} | ||
binaryage/oops {:mvn/version "0.7.2"}} | ||
:aliases | ||
{:dev | ||
{:extra-deps | ||
{org.clojure/data.json {:mvn/version "0.2.6"}, | ||
org.clojure/clojure {:mvn/version "1.10.3"}, | ||
day8.re-frame/test {:mvn/version "0.1.5"}, | ||
day8.re-frame/http-fx {:mvn/version "0.1.4"}, | ||
day8.re-frame/async-flow-fx {:mvn/version "0.0.8"}, | ||
district0x/district-ui-smart-contracts {:mvn/version "1.0.9"}, | ||
district0x/district-ui-web3 {:mvn/version "1.0.1"}, | ||
district0x/async-helpers {:mvn/version "0.1.3"}, | ||
cljs-ajax/cljs-ajax {:mvn/version "0.7.2"}, | ||
org.clojure/tools.nrepl {:mvn/version "0.2.13"}, | ||
district0x/district-ui-web3-accounts {:mvn/version "1.0.3"}, | ||
district0x/re-frame-spec-interceptors {:mvn/version "1.0.1"}, | ||
com.cemerick/piggieback {:mvn/version "0.2.2"}, | ||
re-frame/re-frame {:mvn/version "0.10.2"}, | ||
org.clojure/core.async {:mvn/version "0.4.500"}}} | ||
|
||
:build {:deps {io.github.clojure/tools.build {:tag "v0.8.1" :sha "7d40500"} | ||
slipset/deps-deploy {:mvn/version "RELEASE"}} | ||
:ns-default build} | ||
:deploy {:replace-deps {slipset/deps-deploy {:mvn/version "RELEASE"}} | ||
:exec-fn deps-deploy.deps-deploy/deploy | ||
:exec-args {:installer :remote :artifact "target/test-lib-0.0.2.jar"}}}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = function (config) { | ||
config.set({ | ||
browsers: ['ChromeHeadless'], | ||
// The directory where the output file lives | ||
basePath: 'out', | ||
// The file itself | ||
files: ['karma-tests.js'], | ||
frameworks: ['cljs-test'], | ||
plugins: ['karma-cljs-test', 'karma-chrome-launcher'], | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
client: { | ||
args: ["shadow.test.karma.init"], | ||
singleRun: true | ||
} | ||
}) | ||
}; |
Oops, something went wrong.