Utilies for converting lein monorepo into deps.edn monorepo
Project consists of following utilities:
-
depify.projects
Recursively visit all subprojects within current directory and generatesdeps.edn
as a result of convertingproject.clj
-
depify.generate-overrides
Generate:override-deps
section ofdeps.edn
where all subproject references are overriden with:local/root
. -
depify.cljsbuild
Generates figwheel build files for allproject.clj
containing:cljsbuild
configurations.
Create an alias in your ~/.clojure/deps.edn
map:
:depify.monorepo {:extra-deps {depify.monorepo {:git/url "https://github.com/tomasd/depify.monorepo"
:sha "6062f9057d7369163571b35df22896341077f176"}}}
Then, invoke depify.monorepo alias in root folder of your monorepo project with one of the utilities.
Examples:
Generate deps.edn for all monorepo subprojects:
clojure -A:depify.monorepo -m depify.projects
Genereate overrides for local development:
clojure -A:depify.monorepo -m depify.generate-overrides
Generate figwheel clojurescript builds:
clojure -A:depify.monorepo -m depify.cljsbuild