Skip to content

tomasd/depify.monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

depify.monorepo

Utilies for converting lein monorepo into deps.edn monorepo

Project description

Project consists of following utilities:

  • depify.projects Recursively visit all subprojects within current directory and generates deps.edn as a result of converting project.clj

  • depify.generate-overrides Generate :override-deps section of deps.edn where all subproject references are overriden with :local/root.

  • depify.cljsbuild Generates figwheel build files for all project.clj containing :cljsbuild configurations.

Usage

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

About

Converts lein monorepo into deps.edn monorepo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published