How can I set up leiningen to work with multiple projects?

前端 未结 2 717
忘掉有多难
忘掉有多难 2020-12-08 15:54

I have multiple, separate leiningen projects that ostensibly could depend on one-another.

Example:

~/projects/mywebapp  (my own project)
~/projects/         


        
2条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 16:32

    Does this question from the Lein FAQ help?

    Q: I want to hack two projects in parallel, but it's annoying to switch between them.

    A: Use a feature called checkout dependencies. If you create a directory called checkouts in your project root and symlink some other project roots into it, Leiningen will allow you to hack on them in parallel. That means changes in the dependency will be visible in the main project without having to go through the whole install/switch-projects/deps/restart-repl cycle. Note that this is not a replacement for listing the project in :dependencies; it simply supplements that for tighter change cycles.

提交回复
热议问题