-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b12d637
commit 2a46d72
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# OpenCRVS toolkit | ||
|
||
OpenCRVS toolkit for building country configurations. | ||
|
||
## File structure | ||
|
||
``` | ||
src/ | ||
events/ # re-exports events module from commons package | ||
lib.ts # standard library. currently empty | ||
``` | ||
|
||
## Getting started | ||
|
||
### Development using yarn link | ||
|
||
``` | ||
# tsconfig.json references commons. when `tsc --build` is run, both are built. | ||
> yarn build | ||
# If you miss this part you might face issues with types. | ||
> cd dist | ||
> yarn link | ||
``` | ||
|
||
### Releasing and buiding | ||
|
||
#### While developing | ||
|
||
1. Update version number in `package.json` | ||
2. `yarn build` | ||
3. `npm publish` | ||
|
||
#### Through version control | ||
|
||
1. Update version number in `package.json` | ||
2. Create a pull request | ||
3. Once merged, github action will get triggered. | ||
|
||
#### Gotchas, good to know | ||
|
||
- Package is published and should be used without knowledge of rest of the monorepo | ||
- Package exposes `/events` directory, with types, from `packages/commons` through the library, others are excluded. |