- Change working directory to patronum sources
cd patronum
- Install dependencies for patronum via pnpm:
pnpm install
- Build patronum with specific name:
LIBRARY_NAME=@effector/patronum pnpm build
- Remove all dependencies:
rm -rf node_modules
- Go to the integration directory (cra or custom):
cd integration/cra
- Install dependencies for this package:
pnpm install
- Add prebuilt patronum to local package:
pnpm add ../../dist
- Run tests
pnpm test
Note: be careful NOT to commit
babel-plugin-factories.json
with changed library name@effector/patronum
When work is done, please remove @effector/patronum
from integration packages via pnpm remove @effector/patronum
, else CI can be broken.
All the documentation source code placed in ./documentation
. It is uses astro and starlight on top of it.
Documentation for operators placed right in the operator directory:
./src/
├── and/
│ ├── and.fork.test.ts
│ ├── and.test.ts
│ ├── index.ts
│ └── readme.md
├── combine-events/
│ ├── combine-events.fork.test.ts
│ ├── combine-events.test.ts
│ ├── index.ts
│ └── readme.md
...
Documentation uses Content Layer API. You may want to read this discussion.