What is this?
This folder contains the schema generator which resides here temporarily until Umbraco provides a proper way to generate schemas in its own repository.
How do I use it?
- Run
npm installin this folder. - Update any schema through
api.tsand then runnpm run generateto simulate a new schema. - You then need to go to the main folder and run
npm run generate:apito generate the API fetchers and interfaces.- This is the only thing that will remain in the final version.
We are using the excellent tool @airtasker/spot to decorate the schema methods. You can read more about it here.