Fork me on GitHub
#polylith
<
2023-05-02
>
andre.richards08:05:30

We currently have a git repo with both backend (clojure) and front-end code (javascript). At the top-level we have directories for backend, web (react), mobile (react-native). We want to use Polylith to structure only the backend part. However, the documentation states: Make sure you execute the command outside a git repository:

poly create workspace name:example top-ns:se.example :commit
Is it possible to create the workspace inside a directory of current git repo? Any pitfalls? Would we be better off keeping backend and front-end in separate repos?

tengstrand10:05:50

Yes, you can create workspace within an existing repo (make sure not to use :commit). You can read more about it https://polylith.gitbook.io/poly/architecture/workspace#existing-git-repository.

👍 2