To install the base criteria dependency, run the following command:
composer require codelytv/criteria
Then, install the preferred criteria transformer. You can transform in two directions:
Create a Criteria from:
Convert a Criteria to:
Also, you can use Plug&Play transformer for your preferred framework:
To facilitate the testing of the criteria, you can use the provided object mothers:
composer require codelytv/criteria-test-mother --dev
We have another implementation in TypeScript with converters for Next.js and URL. 🙌
- Don't add the dependency with the command
composer require
, but modify thecomposer.json
file directly. - Don't touch the root
composer.json
file, but thepackages/*/composer.json
one. - After adding a new dependency, execute
vendor/bin/monorepo-builder merge && composer update
to add automatically the changes to the generalcomposer.json
.
This project is using monorepo-builder to manage the monorepo.
To release a new version you should execute:
patch
version release:make release-patch
minor
version release:make release-minor
major
version release:make release-major
This will trigger a GitHub Workflow that would propagate the new version to all the packages in their own GitHub repos.