trigger.dev
trigger.dev copied to clipboard
[TRI-1400] Create a Gadget adapter
@edlaver has written up a detailed guide on how to use Trigger.dev with Gadget.dev that we should use to create an official adapter package at @trigger.dev/gadget.
https://gist.github.com/edlaver/e9e0f9bf48e2b5674659c2eb091b6f7b
Please make sure to use Typescript for all code
Task 1 - Gadget.dev Adaptor
- [ ] Create a new folder in
packagescalledgadget - [ ] Create the adaptor for Gadget following the gist above
- [ ] Create a basic Gadget.dev project that uses the adaptor in
references/gadgetfolder. Include a basic Job in Trigger.dev, e.g. a simple Job that just does a delay inside it. Screen grab the full Run dashboard page showing it successfully worked. Here are examples of how to do cross-project references in package.json and tsconfig.json. - [ ] Provide a screen grab of your terminal showing the Adaptor is working
Task 2 – Add a README.md file
- [ ] Create a new README.md file inside the
packages/gadgetfolder and copy in the contents frompackages/nextjs/README.md. Adjust the wording to reference gadget.dev where needed, including updating the the URLs.
Task 3 – Write the documentation
- [ ] Create the
manual-setup-gadget.mdxfile in/docs/_snippets/. Use this file to write your documentation. Follow the structure of this Next.js example for reference when writing yours. - [ ] Update the table at the bottom of the
client-adaptors.mdxpage with the framework you’ve worked on.