,,\\\\\\,,
,\\\\\\\\\\\
▲▲▲▲▲▲\\\\\\\\ FIX THE STATUS QUO
▲▲▲▲▲▲▲▲\\\\\\` PROCA SERVER v3
▼▼▼▼▼▼▼▼\\\\\`
▼▼▼▼▼▼\\\^`` https://proca.app
the vast majority of this repo is the elixir server. However, we have put as well some client api code that often needs to stay in sync with the server.
Monorepo for Proca server
SDK libraries in Typescript and Javascript, and common microservices (Managed by Lerna, JS monorepo manager)
Included packages:
To add a new repository into this one, use lerna import
tool. It will import all the commit history. Recommended way is:
yarn lerna import --flatten --dest service ../path/to/service-repo-on-disk
Make sure the dir name of repo is the same as one you want to be created under service/
Proca server is an Elixir project and tasks for it are run using mix
tool. It contains package.json
so lerna will treat it as a project; however, it is set to private and will not be published to npm repositories.
You need to use Yarn and not NPM, as this is our choice and Yarn devs did not bother to implement lifecycle events in the same way as NPM ¯\_(ツ)_/¯
. We are using yarn.
Word of warning: NPM 7 changed the lifecycle evens most notably splitting the prepublish
into prepare
and prepareOnly
. However, Yarn and Lerna differ. Lerna uses two lifecycle events: bootstrap
and publish
. Yarn uses a simpler events model so install
runs preinstall
, install
, postinstall
, prepublish
, prepare
.
yarn lerna bootstrap
- installs, inter-links and compiles dependencies in all projectsyarn lerna publish
- publishes all packages (and bumps versions)yarn test
runs testsyarn lerna bootstrap
runs