Skip to content

[TRI-1250] Framework: support for Nuxt #447

@samejr

Description

@samejr

Build support for Nuxt into Trigger.dev

Please make sure to use Typescript for all code

Task 1 - Nuxt Adaptor

  • Create a new folder in packages called nuxt
  • Create the adaptor for Nuxt. Use this Next.js adaptor code as reference when creating yours. Include all setup configurations to fully support the framework, e.g. Next.js requires adaptor support for both App and Pages routers.
  • Create a basic Nuxt project that uses the adaptor in examples/nuxt folder. 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/nuxt folder and copy in the contents from packages/nextjs/README.md. Adjust the wording to reference Nuxt where needed, including updating the the URLs.

Task 3 – Write the documentation

  • Locate the manual-setup-nuxt.mdx folder in /docs/_snippets/. Use this file to write your documentation, overwriting any contents of that file. Follow the structure of this Next.js example for reference when writing yours.
  • Update the table at the bottom of the client-adaptors.mdx page with the framework you’ve worked on.

Task 4 – Update the webapp onboarding

  • In the route.tsx page located in _app.orgs.$organizationSlug.projects.$projectParam.setup.nuxt replace the <FrameworkComingSoon/> component with your new onboarding steps. Follow the same structure as the Next.js example when creating your own. Ignore the very top step for adding this framework to a new project, just focus on the steps to add it to an existing project (so don’t include the <RadioGroup/> toggle selector at the top). Make sure you also include the useProjectSetupComplete(); hook at the top of the page – this triggers a particle effect when the new job is successfully created and redirects to the Jobs list 🥳 .
  • In the FrameworkSelector.tsx file, add “supported” to the framework you’ve worked on.

From SyncLinear.com | TRI-1250

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions