- Apps and @mancala/core depend on the packages in this repo through link: dependencies instead of the npm releases, so changes no longer need a publish - Root package.json gets a build:packages script that installs and builds both packages - Backend and frontend Docker images are built from the repo root so they can include the packages; compose builds them that way - Metro watches the packages folder and resolves their imports from the app's node_modules
21 lines
630 B
Markdown
21 lines
630 B
Markdown
### Mancala
|
|
|
|
Mancala is an open source application for playing mancala game online.
|
|
|
|
## Development
|
|
|
|
The apps use the local `packages/mancala.js` and `packages/core` through `link:` dependencies, so build those first:
|
|
|
|
```sh
|
|
yarn build:packages # from the repo root
|
|
```
|
|
|
|
After changing a package, rebuild it (or run `yarn dev` in it to rebuild on change); the apps pick up the new `dist`.
|
|
|
|
Docker images for the backend and frontend are built from the repo root:
|
|
|
|
```sh
|
|
docker build -f apps/backend/Dockerfile -t jhalitaksoy/mancala-backend .
|
|
docker build -f apps/frontend/Dockerfile -t jhalitaksoy/mancala-frontend .
|
|
```
|