Compare commits

...

8 Commits

Author SHA1 Message Date
Matt Aitken dc7f335beb Latest lockfile 2023-09-14 09:22:05 +01:00
github-actions[bot] 454cad69b4 chore: Update version for release (#473)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-13 18:07:22 +01:00
Matt Aitken f86117f92b Some improvements to the docs platforms section 2023-09-13 18:05:34 +01:00
Matt Aitken b4c67984bc Latest lockfile 2023-09-13 17:57:22 +01:00
Chigala 1b4db79885 Feat/astro support (#466)
* updated the @trigger.dev/astro package to support typescript

* set up a example astro project

* docs: manual setup of Trigger.dev in an Astro project

* doc: updated the manual setup docs for astro

* updated the webapp onboarding for astro

* cleaned up the example astro project

* removed next from dependency 😅

* updated the readme

* moved trigger.ts file and job folder to src directory

* created a .env.example file

* updated tsconfig

* updated to use aliases

* updated package.json

* updated the astro onboarding page

* updated the manual installation guide for astro

* updated to use alias

* added astro as  a dev dependency

* Remove extra comma I left in

* Changed Object.create() to a Record, so we have some type safety

* Added the localhost URL to the API in the Astro example

* Added the TRIGGER_API_URL to the trigger client in the example

* Added the CLI dev dependency to the Astro example

* Update the running instructions to be closer to Remix's

* Create friendly-carpets-collect.md

* Fix bad package name for Astro

---------

Co-authored-by: Matt Aitken <matt@mattaitken.com>
2023-09-13 17:55:33 +01:00
Matt Aitken e1e60499b2 Fix for incorrect remix package name in docs
🚀 Publish Trigger.dev Docker / ʦ TypeScript (push) Has been cancelled
🚀 Publish Trigger.dev Docker / Unit Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / e2e Tests (push) Has been cancelled
🚀 Publish Trigger.dev Docker / publish (push) Has been cancelled
2023-09-13 15:41:24 +01:00
Matt Aitken 4eb2439d64 Don’t check for the page title in verify jobs e2e test 2023-09-13 13:57:35 +01:00
Matt Aitken 2895ad52fd Re-run the publish workflow when the test have been updated 2023-09-13 13:56:44 +01:00
75 changed files with 3237 additions and 709 deletions
+1
View File
@@ -23,6 +23,7 @@ on:
- "turbo.json"
- "docker/Dockerfile"
- "docker/scripts/**"
- "tests/**"
permissions:
id-token: write
@@ -60,7 +60,7 @@ export function FrameworkSelector() {
<FrameworkLink to={projectSetupRedwoodPath(organization, project)}>
<RedwoodLogo className="w-44" />
</FrameworkLink>
<FrameworkLink to={projectSetupAstroPath(organization, project)}>
<FrameworkLink to={projectSetupAstroPath(organization, project)} supported>
<AstroLogo className="w-32" />
</FrameworkLink>
<FrameworkLink to={projectSetupNuxtPath(organization, project)}>
@@ -1,21 +1,119 @@
import { AstroLogo } from "~/assets/logos/AstroLogo";
import { FrameworkComingSoon } from "~/components/frameworks/FrameworkComingSoon";
import { ChatBubbleLeftRightIcon, Squares2X2Icon } from "@heroicons/react/20/solid";
import invariant from "tiny-invariant";
import { Feedback } from "~/components/Feedback";
import { PageGradient } from "~/components/PageGradient";
import { InitCommand, RunDevCommand, TriggerDevStep } from "~/components/SetupCommands";
import { StepContentContainer } from "~/components/StepContentContainer";
import { InlineCode } from "~/components/code/InlineCode";
import { BreadcrumbLink } from "~/components/navigation/NavBar";
import { Button, LinkButton } from "~/components/primitives/Buttons";
import {
ClientTabs,
ClientTabsContent,
ClientTabsList,
ClientTabsTrigger,
} from "~/components/primitives/ClientTabs";
import { ClipboardField } from "~/components/primitives/ClipboardField";
import { Header1 } from "~/components/primitives/Headers";
import { NamedIcon } from "~/components/primitives/NamedIcon";
import { Paragraph } from "~/components/primitives/Paragraph";
import { StepNumber } from "~/components/primitives/StepNumber";
import { useAppOrigin } from "~/hooks/useAppOrigin";
import { useProjectSetupComplete } from "~/hooks/useProjectSetupComplete";
import { useDevEnvironment } from "~/hooks/useEnvironments";
import { useOrganization } from "~/hooks/useOrganizations";
import { useProject } from "~/hooks/useProject";
import { Handle } from "~/utils/handle";
import { trimTrailingSlash } from "~/utils/pathBuilder";
import { projectSetupPath, trimTrailingSlash } from "~/utils/pathBuilder";
import { Callout } from "~/components/primitives/Callout";
import { Badge } from "~/components/primitives/Badge";
export const handle: Handle = {
breadcrumb: (match) => <BreadcrumbLink to={trimTrailingSlash(match.pathname)} title="Astro" />,
};
export default function Page() {
export default function SetUpAstro() {
const organization = useOrganization();
const project = useProject();
useProjectSetupComplete();
const devEnvironment = useDevEnvironment();
invariant(devEnvironment, "Dev environment must be defined");
return (
<FrameworkComingSoon
frameworkName="Astro"
githubIssueUrl="https://github.com/triggerdotdev/trigger.dev/issues/452"
githubIssueNumber={452}
>
<AstroLogo className="w-56" />
</FrameworkComingSoon>
<PageGradient>
<div className="mx-auto max-w-3xl">
<div className="flex items-center justify-between">
<Header1 spacing className="text-bright">
Get setup in 5 minutes
</Header1>
<div className="flex items-center gap-2">
<LinkButton
to={projectSetupPath(organization, project)}
variant="tertiary/small"
LeadingIcon={Squares2X2Icon}
>
Choose a different framework
</LinkButton>
<Feedback
button={
<Button variant="tertiary/small" LeadingIcon={ChatBubbleLeftRightIcon}>
I'm stuck!
</Button>
}
defaultValue="help"
/>
</div>
</div>
<div>
<Callout
variant={"info"}
to="https://github.com/triggerdotdev/trigger.dev/discussions/430"
className="mb-8"
>
Trigger.dev has full support for serverless. We will be adding support for long-running
servers soon.
</Callout>
<div>
<StepNumber
stepNumber="1"
title="Follow the steps from the Astro manual installation guide"
/>
<StepContentContainer className="flex flex-col gap-2">
<Paragraph className="mt-2">Copy your server API Key to your clipboard:</Paragraph>
<div className="mb-2 flex w-full items-center justify-between">
<ClipboardField
secure
className="w-fit"
value={devEnvironment.apiKey}
variant={"secondary/medium"}
icon={<Badge variant="outline">Server</Badge>}
/>
</div>
<Paragraph>Now follow this guide:</Paragraph>
<LinkButton
to="https://trigger.dev/docs/documentation/guides/manual/astro"
variant="primary/medium"
TrailingIcon="external-link"
>
Manual installation guide
</LinkButton>
<div className="flex items-start justify-start gap-2"></div>
</StepContentContainer>
<StepNumber stepNumber="2" title="Run your Astro app" />
<StepContentContainer>
<RunDevCommand />
</StepContentContainer>
<StepNumber stepNumber="3" title="Run the CLI 'dev' command" />
<StepContentContainer>
<TriggerDevStep />
</StepContentContainer>
<StepNumber stepNumber="6" title="Wait for Jobs" displaySpinner />
<StepContentContainer>
<Paragraph>This page will automatically refresh.</Paragraph>
</StepContentContainer>
</div>
</div>
</div>
</PageGradient>
);
}
@@ -0,0 +1,4 @@
<Info>
Trigger.dev lets you create long-running jobs in serverless environments. Support for long-running
servers is [coming soon](https://github.com/triggerdotdev/trigger.dev/discussions/430).
</Info>
+248 -1
View File
@@ -1 +1,248 @@
We're in the process of building support for the Astro framework. You can follow along with progress or contribute via [this GitHub issue](https://github.com/triggerdotdev/trigger.dev/issues).
## Install Required Packages
To begin, install the necessary packages in your Astro project directory. You can choose one of the following package managers:
<CodeGroup>
```bash npm
npm i @trigger.dev/sdk @trigger.dev/astro
```
```bash pnpm
pnpm install @trigger.dev/sdk @trigger.dev/astro
```
```bash yarn
yarn add @trigger.dev/sdk @trigger.dev/astro
```
</CodeGroup>
## Obtaining the Development API Key
To locate your development API key, login to the [Trigger.dev
dashboard](https://cloud.trigger.dev) and select the Project you want to
connect to. Then click on the Environments & API Keys tab in the left menu.
You can copy your development API Key from the field at the top of this page.
(Your development key will start with `tr_dev_`).
## Adding Environment Variables
Create a `.env` file at the root of your project and include your Trigger API key and URL like this:
```bash
TRIGGER_API_KEY=ENTER_YOUR_DEVELOPMENT_API_KEY_HERE
TRIGGER_API_URL=https://cloud.trigger.dev
```
Replace `ENTER_YOUR_DEVELOPMENT_API_KEY_HERE` with the actual API key obtained from the previous step.
## Configuring the Trigger Client
To set up the Trigger Client for your project, follow these steps:
1. **Create Configuration File:**
In your project directory, create a configuration file named `trigger.ts` or `trigger.js`, depending on whether your project uses TypeScript (`.ts`) or JavaScript (`.js`).
2. **Choose Directory:**
Depending on your project structure, choose the appropriate directory for the configuration file. If your project uses a `src` directory, create the file within it or Otherwise, create it directly in the project root.
3. **Add Configuration Code:**
Open the configuration file you created and add the following code:
```typescript src/trigger.(ts/js)
// trigger.ts (for TypeScript) or trigger.js (for JavaScript)
import { TriggerClient } from "@trigger.dev/sdk";
export const client = new TriggerClient({
id: "my-app",
apiKey: process.env.TRIGGER_API_KEY,
apiUrl: process.env.TRIGGER_API_URL,
});
```
Replace **"my-app"** with an appropriate identifier for your project. The **apiKey** and **apiUrl** are obtained from the environment variables you set earlier.
4. **File Location:**
- You can save the file within the **src** directory or in the project rooot.
**Example Directory Structure with src:**
```
project-root/
├── src/
├── trigger.ts
├── other files...
```
**Example Directory Structure without src:**
```
project-root/
├── trigger.ts
├── other files...
```
By following these steps, you'll configure the Trigger Client to work with your project, regardless of whether you have a separate **src** directory and whether you're using TypeScript or JavaScript files.
## update the astro.config file to enable ssr
- You need to enable ssr to use API endpoints that would be in the `pages/api` folder
```typescript astro.config.mjs
import { defineConfig } from "astro/config";
export default defineConfig({
output: "server",
});
```
## Creating the API Route
To establish an API route for interacting with Trigger.dev, follow these steps based on your project's file type and structure
1. Create a new file named `trigger.(ts/js)` within the `pages/api/` directory.
2. Add the following code to `trigger.(ts/js)`:
```typescript api/trigger.ts/js
import { createAstroRoute } from "@trigger.dev/astro";
import { client } from "@/trigger";
//import your jobs
import "@/jobs";
export const { POST } = createAstroRoute(client);
```
## Creating the Example Job
1. Create a folder named `Jobs` alongside your `pages` directory
2. Inside the `Jobs` folder, add two files named `example.(ts/js)` and `index.(ts/js)`.
<CodeGroup>
```typescript example.(ts/js)
import { eventTrigger } from "@trigger.dev/sdk";
import { client } from "@/trigger";
// your first job
client.defineJob({
id: "example-job",
name: "Example Job",
version: "0.0.1",
trigger: eventTrigger({
name: "example.event",
}),
run: async (payload, io, ctx) => {
await io.logger.info("Hello world!", { payload });
return {
message: "Hello world!",
};
},
});
```
```typescript index.ts/index.(ts/js)
// import all your job files here
export * from "./examples";
```
</CodeGroup>
## Additonal Job Definitions
You can define more job definitions by creating additional files in the `Jobs` folder and exporting them in `index` file.
For example, in `index.(ts/js)`, you can export other job files like this:
```typescript
// import all your job files here
export * from "./examples";
export * from "./other-job-file";
```
## Adding Configuration to `package.json`
Inside the `package.json` file, add the following configuration under the root object:
```json
"trigger.dev": {
"endpointId": "my-app"
}
```
Your `package.json` file might look something like this:
```json
{
"name": "my-app",
"version": "1.0.0",
"dependencies": {
// ... other dependencies
},
"trigger.dev": {
"endpointId": "my-app"
}
}
```
Replace **"my-app"** with the appropriate identifier you used during the step for creating the Trigger Client.
## Running
### Run your Astro app
Run your Astro app locally, like you normally would. For example:
<CodeGroup>
```bash npm
npm run dev
```
```bash pnpm
pnpm run dev
```
```bash yarn
yarn run dev
```
</CodeGroup>
### Run the CLI 'dev' command
In a **_separate terminal window or tab_** run:
<CodeGroup>
```bash npm
npx @trigger.dev/cli@latest dev
```
```bash pnpm
pnpm dlx @trigger.dev/cli@latest dev
```
```bash yarn
yarn dlx @trigger.dev/cli@latest dev
```
</CodeGroup>
<br />
<Note>
You can optionally pass the port if you're not running on 3000 by adding
`--port 4321` to the end
</Note>
<Note>
You can optionally pass the hostname if you're not running on localhost by adding
`--hostname <host>`. Example, in case your Astro app is running on 0.0.0.0: `--hostname 0.0.0.0`.
</Note>
+3 -3
View File
@@ -5,15 +5,15 @@ To begin, install the necessary packages in your Remix project directory. You ca
<CodeGroup>
```bash npm
npm i @trigger.dev/sdk @trigger-dev/remix
npm i @trigger.dev/sdk @trigger.dev/remix
```
```bash pnpm
pnpm install @trigger.dev/sdk @trigger-dev/remix
pnpm install @trigger.dev/sdk @trigger.dev/remix
```
```bash yarn
yarn add @trigger.dev/sdk @trigger-dev/remix
yarn add @trigger.dev/sdk @trigger.dev/remix
```
</CodeGroup>
@@ -28,5 +28,6 @@ Each platform has one or more adaptors, see the guides below:
| ------------------------------------------------- | -------------------- |
| [Next.js](/documentation/guides/platforms/nextjs) | `createPagesRoute()` |
| [Next.js](/documentation/guides/platforms/nextjs) | `createAppRoute()` |
| [Astro](/documentation/guides/platforms/astro) | `createAstroRoute()` |
| [Remix](/documentation/guides/platforms/remix) | `createRemixRoute()` |
| Express | Coming soon |
+13 -1
View File
@@ -4,4 +4,16 @@ sidebarTitle: "Astro"
description: "How to get setup and deploy Jobs for your Astro project"
---
<Snippet file="manual-setup-astro.mdx" />
<Snippet file="long-running-coming-soon.mdx" />
## Initial setup
View our [Quick start guide](/documentation/quickstarts/astro) to get setup.
## Writing Jobs
View our [guide for writing Jobs](/documentation/guides/create-a-job).
## Deployment
View our [deployment guide](/documentation/guides/deployment) to learn how to deploy your Jobs.
@@ -3,15 +3,11 @@ title: "Next.js"
description: "How to get setup and deploy Jobs for your Next.js project"
---
You can write Jobs in your Next.js codebase and deploy to both serverless platforms and long-running servers.
## Supported platforms
We support all platforms because under-the-hood an API endpoint is used to run your Jobs.
<Snippet file="long-running-coming-soon.mdx" />
## Initial setup
View our [Quick start guide](/documentation/quickstart) to get setup.
View our [Quick start guide](/documentation/quickstarts/nextjs) to get setup. Or [manual setup](/documentation/guides/manual/nextjs) if you'd prefer.
## Writing Jobs
@@ -93,7 +89,6 @@ export const config = {
};
```
### Known issues
* ` Module parse failed: Identifier 'NextResponse' has already been declared . ` This error is caused by version 13.4.4. For further information, please [visit](https://github.com/nextauthjs/next-auth/issues/7660 )
- `Module parse failed: Identifier 'NextResponse' has already been declared .` This error is caused by version 13.4.4. For further information, please [visit](https://github.com/nextauthjs/next-auth/issues/7660)
+13 -1
View File
@@ -3,4 +3,16 @@ title: "Remix"
description: "How to get setup and deploy Jobs for your Remix project"
---
<Snippet file="manual-setup-remix.mdx" />
<Snippet file="long-running-coming-soon.mdx" />
## Initial setup
View our [Quick start guide](/documentation/quickstarts/remix) to get setup.
## Writing Jobs
View our [guide for writing Jobs](/documentation/guides/create-a-job).
## Deployment
View our [deployment guide](/documentation/guides/deployment) to learn how to deploy your Jobs.
@@ -3,10 +3,7 @@ title: "Introduction"
sidebarTitle: "Introduction"
---
<Info>
Trigger.dev lets you create long-running jobs in serverless environments. Support for long-running
servers is [coming soon](https://github.com/triggerdotdev/trigger.dev/discussions/430).
</Info>
<Snippet file="long-running-coming-soon.mdx" />
## Select a framework to get started…
+2
View File
@@ -0,0 +1,2 @@
TRIGGER_API_KEY=
TRIGGER_API_URL=http://localhost:3030
+21
View File
@@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
+4
View File
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
+11
View File
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
+54
View File
@@ -0,0 +1,54 @@
# Astro Starter Kit: Basics
```
npm create astro@latest -- --template basics
```
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ └── Card.astro
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
@@ -1,4 +1,6 @@
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({});
export default defineConfig({
output: "server",
});
+28
View File
@@ -0,0 +1,28 @@
{
"name": "astro-example",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^6.0.0",
"@trigger.dev/astro": "workspace:*",
"@trigger.dev/sdk": "workspace:*",
"astro": "^3.0.12"
},
"trigger.dev": {
"endpointId": "astro-test"
},
"engines": {
"node": ">=18.14.1"
},
"devDependencies": {
"@trigger.dev/cli": "workspace:*"
}
}
@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
<style>
path { fill: #000; }
@media (prefers-color-scheme: dark) {
path { fill: #FFF; }
}
</style>
</svg>

After

Width:  |  Height:  |  Size: 749 B

@@ -0,0 +1,61 @@
---
interface Props {
title: string;
body: string;
href: string;
}
const { href, title, body } = Astro.props;
---
<li class="link-card">
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
{body}
</p>
</a>
</li>
<style>
.link-card {
list-style: none;
display: flex;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
margin: 0;
font-size: 1.25rem;
transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
p {
margin-top: 0.5rem;
margin-bottom: 0;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent-light));
}
</style>
+1
View File
@@ -0,0 +1 @@
/// <reference types="astro/client" />
@@ -0,0 +1,21 @@
import { eventTrigger } from "@trigger.dev/sdk";
import {client} from "@/trigger"
// your first job
client.defineJob({
id: "astro-test",
name: "astro test Job",
version: "0.0.1",
trigger: eventTrigger({
name: "test.event",
}),
run: async (payload, io, ctx) => {
await io.wait("hold on ", 5);
await io.logger.info("Hello world!", { payload });
return {
message: "Hello world!",
};
},
});
@@ -0,0 +1,51 @@
---
interface Props {
title: string;
}
const { title } = Astro.props;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
<style is:global>
:root {
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background: #13151a;
background-size: 224px;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
</style>
@@ -0,0 +1,7 @@
import { createAstroRoute } from "@trigger.dev/astro";
import {client} from "@/trigger"
//import your jobs
import "@/jobs/example"
export const { POST } = createAstroRoute(client);
@@ -0,0 +1,123 @@
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
---
<Layout title="Welcome to Astro.">
<main>
<svg
class="astro-a"
width="495"
height="623"
viewBox="0 0 495 623"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z"
fill="url(#paint0_linear_1805_24383)"></path>
<defs>
<linearGradient
id="paint0_linear_1805_24383"
x1="247.358"
y1="0"
x2="247.358"
y2="622.479"
gradientUnits="userSpaceOnUse"
>
<stop stop-opacity="0.9"></stop>
<stop offset="1" stop-opacity="0.2"></stop>
</linearGradient>
</defs>
</svg>
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
<p class="instructions">
To get started, open the directory <code>src/pages</code> in your project.<br />
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
</p>
<ul role="list" class="link-card-grid">
<Card
href="https://docs.astro.build/"
title="Documentation"
body="Learn how Astro works and explore the official API docs."
/>
<Card
href="https://astro.build/integrations/"
title="Integrations"
body="Supercharge your project with new frameworks and libraries."
/>
<Card
href="https://astro.build/themes/"
title="Themes"
body="Explore a galaxy of community-built starter themes."
/>
<Card
href="https://astro.build/chat/"
title="Community"
body="Come say hi to our amazing Discord community. ❤️"
/>
</ul>
</main>
</Layout>
<style>
main {
margin: auto;
padding: 1rem;
width: 800px;
max-width: calc(100% - 2rem);
color: white;
font-size: 20px;
line-height: 1.6;
}
.astro-a {
position: absolute;
top: -32px;
left: 50%;
transform: translatex(-50%);
width: 220px;
height: auto;
z-index: -1;
}
h1 {
font-size: 4rem;
font-weight: 700;
line-height: 1;
text-align: center;
margin-bottom: 1em;
}
.text-gradient {
background-image: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400%;
background-position: 0%;
}
.instructions {
margin-bottom: 2rem;
border: 1px solid rgba(var(--accent-light), 25%);
background: linear-gradient(rgba(var(--accent-dark), 66%), rgba(var(--accent-dark), 33%));
padding: 1.5rem;
border-radius: 8px;
}
.instructions code {
font-size: 0.8em;
font-weight: bold;
background: rgba(var(--accent-light), 12%);
color: rgb(var(--accent-light));
border-radius: 4px;
padding: 0.3em 0.4em;
}
.instructions strong {
color: rgb(var(--accent-light));
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 2rem;
padding: 0;
}
</style>
+7
View File
@@ -0,0 +1,7 @@
import { TriggerClient } from "@trigger.dev/sdk";
export const client = new TriggerClient({
id: "astro-test",
apiUrl: import.meta.env.TRIGGER_API_URL,
apiKey: import.meta.env.TRIGGER_API_KEY,
});
+17
View File
@@ -0,0 +1,17 @@
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"@/jobs/*": ["./src/jobs/*"],
"@/trigger": ["./src/trigger"],
"@trigger.dev/sdk": ["../../packages/trigger-sdk/src/index"],
"@trigger.dev/sdk/*": ["../../packages/trigger-sdk/src/*"],
"@trigger.dev/core": ["../../packages/core/src/index"],
"@trigger.dev/core/*": ["../../packages/core/src/*"],
"@trigger.dev/astro": ["../../packages/astro/src/index"],
"@trigger.dev/astro/*": ["../../packages/astro/src/*"]
},
},
}
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/airtable
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/airtable",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev integration for airtable",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -26,8 +26,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"@trigger.dev/sdk": "workspace:^2.1.2",
"airtable": "^0.12.1",
"zod": "3.21.4"
},
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/github
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/github",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official GitHub integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -29,8 +29,8 @@
"@octokit/request": "^6.2.5",
"@octokit/request-error": "^4.0.1",
"@octokit/webhooks": "^10.4.0",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.2",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"octokit": "^2.0.14",
"zod": "3.21.4"
},
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/slack
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/openai",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official OpenAI integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -25,8 +25,8 @@
},
"dependencies": {
"openai": "^4.2.0",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.1"
"@trigger.dev/sdk": "workspace:^2.1.2",
"@trigger.dev/integration-kit": "workspace:^2.1.2"
},
"engines": {
"node": ">=16.8.0"
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/plain
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/plain",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official Plain.com integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -24,8 +24,8 @@
"build:tsup": "tsup"
},
"dependencies": {
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"@trigger.dev/sdk": "workspace:^2.1.2",
"@team-plain/typescript-sdk": "^2.7.0"
},
"engines": {
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/resend
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/resend",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official Resend.com integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -24,8 +24,8 @@
"build:tsup": "tsup"
},
"dependencies": {
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"@trigger.dev/sdk": "workspace:^2.1.2",
"resend": "^1.0.0"
},
"engines": {
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/sendgrid
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/sendgrid",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev integration for @sendgrid/mail",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -27,8 +27,8 @@
},
"dependencies": {
"@sendgrid/mail": "^7.7.0",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.1"
"@trigger.dev/sdk": "workspace:^2.1.2",
"@trigger.dev/integration-kit": "workspace:^2.1.2"
},
"engines": {
"node": ">=16.8.0"
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/slack
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/slack",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official Slack integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -25,7 +25,7 @@
},
"dependencies": {
"@slack/web-api": "^6.8.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.2",
"zod": "3.21.4"
},
"engines": {
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/stripe
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/stripe",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev integration for stripe",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -26,8 +26,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"@trigger.dev/sdk": "workspace:^2.1.2",
"stripe": "^12.14.0",
"zod": "3.21.4"
},
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/supabase
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/supabase",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev integration for @supabase/supabase-js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -27,8 +27,8 @@
},
"dependencies": {
"@supabase/supabase-js": "^2.26.0",
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"@trigger.dev/sdk": "workspace:^2.1.2",
"supabase-management-js": "^0.1.4",
"zod": "3.21.4"
},
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/typeform
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/integration-kit@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/typeform",
"version": "2.1.1",
"version": "2.1.2",
"description": "The official Typeform integration for Trigger.dev",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -26,8 +26,8 @@
},
"dependencies": {
"@typeform/api-client": "^1.8.0",
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/integration-kit": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.2",
"@trigger.dev/integration-kit": "workspace:^2.1.2",
"zod": "3.21.4"
},
"engines": {
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/astro
## 2.1.2
### Patch Changes
- The first release of Astro support ([#466](https://github.com/triggerdotdev/trigger.dev/pull/466))
- Updated dependencies:
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+6 -31
View File
@@ -1,34 +1,9 @@
# Trigger.dev native integration add-on for Astro
# Astro and Trigger.dev
This Astro integration project provides a `createAstroRoute` function that can be used to create an API endpoint route in your Astro project for integration with the hosted Trigger.dev platform.
Trigger.dev has full support for the Astro framework.
## Usage
For information about using Trigger.dev in your Astro app, check out these useful docs links:
1. Install the package:
```bash
npm install --save @trigger.dev/astro
```
Note: yes, right now this package isn't published to the npm registry, so you'll need to install it from my GitHub repository if you want to experiment with it. Hopefully this soon graduates into an official npm package from the Trigger.dev team 🙏🏼
2. Import the package in a `src/pages/api/trigger.js` file and define the route endpoint as follows:
```js
import { createAstroRoute } from "triggerdev-astro-integration";
import { client } from "../../../trigger.js";
export const post = createAstroRoute(client);
```
## More information
See the [Trigger.dev Astro example project repository](https://github.com/lirantal/trigger.dev-astro-example) for a working example of this integration.
## License
MIT
## Author
(c) Liran Tal <liran@lirantal.com>
- [Quick start guide for getting set up with Trigger.dev in a Astro project](https://trigger.dev/docs/documentation/quickstarts/astro)
- [Manually set up Astro with Trigger.dev](https://trigger.dev/docs/documentation/guides/manual/astro)
- [Using Trigger.dev with Astro, handling middleware, and more](https://trigger.dev/docs/documentation/guides/platforms/astro)
+34 -8
View File
@@ -1,16 +1,39 @@
{
"name": "@trigger.dev/astro",
"description": "An Astro-native integration for Trigger.dev background jobs platform",
"version": "2.1.1",
"type": "module",
"main": "main.js",
"scripts": {},
"version": "2.1.2",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && npm run build:tsup",
"build:tsup": "tsup"
},
"peerDependencies": {
"@trigger.dev/sdk": "workspace:^2.1.1",
"astro": "^2.10.7"
"@trigger.dev/sdk": "workspace:^2.1.2"
},
"devDependencies": {
"astro": "^3.0.12",
"@trigger.dev/tsconfig": "workspace:*",
"@types/debug": "^4.1.7",
"@types/ws": "^8.5.3",
"rimraf": "^3.0.2",
"tsup": "^6.5.0",
"tsx": "^3.12.1",
"typescript": "^4.8.4"
},
"engines": {
"node": ">=18.0.0"
"node": ">=16.8.0"
},
"license": "MIT",
"publishConfig": {
@@ -23,5 +46,8 @@
"bugs": {
"url": "https://github.com/triggerdev/trigger.dev/issues"
},
"homepage": "https://github.com/triggerdev/trigger.dev#readme"
"homepage": "https://github.com/triggerdev/trigger.dev#readme",
"dependencies": {
"debug": "^4.3.4"
}
}
@@ -1,5 +1,8 @@
export function createAstroRoute(client) {
return async function astroRoute(ctx) {
import type { TriggerClient } from "@trigger.dev/sdk";
import type { APIRoute } from "astro";
export function createAstroRoute(client: TriggerClient) {
const POST: APIRoute = async (ctx) => {
if (ctx.request.method === "HEAD") {
return new Response(null, { status: 200 });
}
@@ -8,7 +11,7 @@ export function createAstroRoute(client) {
// Prepare the request to be a fetch-compatible Request object:
const requestHeaders = ctx.request.headers;
const requestMethod = ctx.request.method;
const responseHeaders = Object.create(null);
const responseHeaders: Record<string, string> = {};
for (const [headerName, headerValue] of requestHeaders.entries()) {
responseHeaders[headerName] = headerValue;
@@ -20,7 +23,8 @@ export function createAstroRoute(client) {
const request = new Request("https://express.js/api/trigger", {
headers: responseHeaders,
method: requestMethod,
body: ctx.request.body ? ctx.request.body : ctx.request,
body: ctx.request.body,
// @ts-ignore
duplex: "half",
});
@@ -45,4 +49,8 @@ export function createAstroRoute(client) {
});
}
};
return {
POST,
};
}
+17
View File
@@ -0,0 +1,17 @@
{
"extends": "@trigger.dev/tsconfig/node18.json",
"include": ["./src/**/*.ts", "tsup.config.ts"],
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declaration": false,
"declarationMap": false,
"lib": ["DOM", "DOM.Iterable"],
"paths": {
"@trigger.dev/sdk": ["../trigger-sdk/src/index"],
"@trigger.dev/sdk/*": ["../trigger-sdk/src/*"],
}
},
"exclude": ["node_modules"]
}
+19
View File
@@ -0,0 +1,19 @@
import { defineConfig } from "tsup";
export default defineConfig([
{
name: "main",
entry: ["./src/index.ts"],
outDir: "./dist",
platform: "node",
format: ["cjs"],
legacyOutput: true,
sourcemap: true,
clean: true,
bundle: true,
splitting: false,
dts: true,
external: ["http", "https", "util", "events", "tty", "os", "timers"],
esbuildPlugins: [],
},
]);
+2
View File
@@ -1,5 +1,7 @@
# create-trigger
## 2.1.2
## 2.1.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/cli",
"version": "2.1.1",
"version": "2.1.2",
"description": "The Trigger.dev CLI",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
+2
View File
@@ -1,5 +1,7 @@
# internal-platform
## 2.1.2
## 2.1.1
## 2.1.0
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/core",
"version": "2.1.1",
"version": "2.1.2",
"description": "Core code used across the Trigger.dev SDK and platform",
"license": "MIT",
"main": "./dist/index.js",
+2
View File
@@ -1,5 +1,7 @@
# @trigger.dev/eslint-plugin
## 2.1.2
## 2.1.1
## 2.1.0
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/eslint-plugin",
"version": "2.1.1",
"version": "2.1.2",
"description": "ESLint plugin with trigger.dev best practices",
"keywords": [
"eslint",
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/express
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/express",
"version": "2.1.1",
"version": "2.1.2",
"description": "Official Express adapter for Trigger.dev",
"license": "MIT",
"main": "./dist/index.js",
@@ -19,7 +19,7 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.2",
"@trigger.dev/tsconfig": "workspace:*",
"@types/debug": "^4.1.7",
"@types/express": "^4.17.13",
@@ -33,7 +33,7 @@
"build:tsup": "tsup"
},
"peerDependencies": {
"@trigger.dev/sdk": "workspace:^2.1.1"
"@trigger.dev/sdk": "workspace:^2.1.2"
},
"dependencies": {
"@remix-run/web-fetch": "^4.3.5",
+2
View File
@@ -1,5 +1,7 @@
# @trigger.dev/integration-kit
## 2.1.2
## 2.1.1
## 2.1.0
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/integration-kit",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev Integration Kit has helpers to make creating integrations easier",
"license": "MIT",
"main": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/nextjs
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/nextjs",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev Next.js integration",
"license": "MIT",
"main": "./dist/index.js",
@@ -34,7 +34,7 @@
"build:tsup": "tsup"
},
"peerDependencies": {
"@trigger.dev/sdk": "workspace:^2.1.1",
"@trigger.dev/sdk": "workspace:^2.1.2",
"next": ">=12.0.0 <14.0.0"
},
"dependencies": {
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/react
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/core@2.1.2`
## 2.1.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/react",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev React SDK",
"license": "MIT",
"types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
},
"dependencies": {
"@tanstack/react-query": "5.0.0-beta.2",
"@trigger.dev/core": "workspace:^2.1.1",
"@trigger.dev/core": "workspace:^2.1.2",
"debug": "^4.3.4",
"zod": "3.21.4"
},
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/remix
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/remix",
"version": "2.1.1",
"version": "2.1.2",
"description": "Trigger.dev Remix integration",
"license": "MIT",
"main": "./dist/index.js",
@@ -34,7 +34,7 @@
"build:tsup": "tsup"
},
"peerDependencies": {
"@trigger.dev/sdk": "workspace:^2.1.1"
"@trigger.dev/sdk": "workspace:^2.1.2"
},
"dependencies": {
"debug": "^4.3.4"
+8
View File
@@ -1,5 +1,13 @@
# @trigger.dev/testing
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/core@2.1.2`
- `@trigger.dev/sdk@2.1.2`
## 2.1.1
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@trigger.dev/testing",
"description": "A collection of useful tools to write tests for Trigger.dev.",
"version": "2.1.1",
"version": "2.1.2",
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
+7
View File
@@ -1,5 +1,12 @@
# @trigger.dev/sdk
## 2.1.2
### Patch Changes
- Updated dependencies:
- `@trigger.dev/core@2.1.2`
## 2.1.1
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/sdk",
"version": "2.1.1",
"version": "2.1.2",
"description": "trigger.dev Node.JS SDK",
"license": "MIT",
"main": "./dist/index.js",
@@ -25,7 +25,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@trigger.dev/core": "workspace:^2.1.1",
"@trigger.dev/core": "workspace:^2.1.2",
"chalk": "^5.2.0",
"cronstrue": "^2.21.0",
"debug": "^4.3.4",
+2150 -588
View File
File diff suppressed because it is too large Load Diff
-3
View File
@@ -28,9 +28,6 @@ test("Verify jobs from the test nextjs project", async ({ page }) => {
await page.getByRole("button", { name: "Send a magic link" }).click();
await page.getByRole("link", { name: /Test Project/ }).click();
await expect(
page.locator("h1").filter({ hasText: /^Choose a framework to get started/ })
).toBeVisible();
await page.getByRole("link", { name: "Environments & API Keys" }).click();
await expect(page.locator("h1").filter({ hasText: "Environments & API Keys" })).toBeVisible();