Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to shadow-cljs & deps.edn #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ pom.xml.asc
/tests-output/
/district-ui-graphql.iml
package-lock.json
# shadow-cljs & deps migration ignores
out
.cpcache
.shadow-cljs
38 changes: 38 additions & 0 deletions deps.edn
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
{org.clojure/clojure {:mvn/version "1.11.1"},
thheller/shadow-cljs {:mvn/version "2.19.3"},
mount/mount {:mvn/version "0.1.16"},
re-frame/re-frame {:mvn/version "1.3.0"}
day8.re-frame/test {:mvn/version "0.1.5"},
district0x/bignumber {:mvn/version "1.0.3"}
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.1"}
cljsjs/apollo-fetch {:mvn/version "0.7.0-0"}
cljsjs/dataloader {:mvn/version "1.4.0-0"}
com.andrewmcveigh/cljs-time {:mvn/version "0.5.2"}
day8.re-frame/forward-events-fx {:mvn/version "0.0.6"}
day8.re-frame/http-fx {:mvn/version "0.1.6"}
district0x/district-cljs-utils {:mvn/version "1.0.4"}
district0x/district-graphql-utils {:mvn/version "1.0.11"}
district0x/graphql-query {:mvn/version "1.0.6"}
district0x/contextual {:mvn/version "0.2.0"}},
:install-deps true,
:aliases
{: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/district-ui-graphql-0.1.15-SNAPSHOT"}},
:local-deps {:override-deps {}},
:shadow-cljs
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.19.8"}},
:main-opts ["-m" "shadow.cljs.devtools.cli"]}}}
17 changes: 17 additions & 0 deletions karma.conf.js
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
}
})
};
4 changes: 4 additions & 0 deletions lib_version.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns lib-version)

(def lib 'district0x/district-ui-component-active-account) ; ends up as <group-id>/<artifact-id> in pom.xml
(def version "1.1.0-SNAPSHOT")
Loading