To install the base criteria dependency, run the following command:
composer require codelytv/criteriaThen, 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 --devWe 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.jsonfile directly. - Don't touch the root
composer.jsonfile, but thepackages/*/composer.jsonone. - After adding a new dependency, execute
vendor/bin/monorepo-builder merge && composer updateto 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:
patchversion release:make release-patchminorversion release:make release-minormajorversion 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.