Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
dc7f335
Latest lockfile
matt-aitken Sep 14, 2023
dbd0942
Updated Astro setup docs: env import
matt-aitken Sep 14, 2023
dde51d6
Astro docs improvements
matt-aitken Sep 14, 2023
a68a912
Docs: improved the limitations
matt-aitken Sep 14, 2023
9a0e641
Bumped package versions to 2.1.3
matt-aitken Sep 14, 2023
88ebf4a
Updated the Astro docs with SSR notes
matt-aitken Sep 14, 2023
6ccb4fb
test/368/use vitest instead of jest (#470)
wesleymatosdev Sep 15, 2023
fb5f4e3
Created Temp for pull req, bugreport & feature req
visheshrwl Sep 11, 2023
5aeef12
A few teaks to the templates
ericallam Sep 15, 2023
da10ba9
Added instructions for how to do Changeset snapshots
matt-aitken Sep 15, 2023
f98c425
Redirect people to discord to ask a question
ericallam Sep 15, 2023
363c74c
Documentation Update: Added <github_username> instead of triggerdotde…
anik-bin Sep 15, 2023
40f2ee7
add fastify package
mnmt7 Sep 15, 2023
8cf791f
add fastify example
mnmt7 Sep 15, 2023
686be1c
update fastify docs
mnmt7 Sep 15, 2023
0896624
add pnpm-lock
mnmt7 Sep 15, 2023
58e719a
update readme
mnmt7 Sep 15, 2023
e5ffc3a
Added a link to the homepage from the side menu (#479)
samejr Sep 15, 2023
0545bf9
update client-adaptors for fastify
mnmt7 Sep 15, 2023
486ed20
Renamed the examples dir to references (true examples are in another …
ericallam Sep 15, 2023
241e40e
Add a references README
ericallam Sep 15, 2023
cd94d8f
Fixes broken pnpm lock file
ericallam Sep 15, 2023
cd70a29
Improve the Astro manual setup guide
ericallam Sep 15, 2023
c2ce707
Fixed cal.com link
D-K-P Sep 18, 2023
4edc711
Upgrade to the latest remix (pre v2)
ericallam Sep 18, 2023
ad14983
React status hooks (#493)
matt-aitken Sep 21, 2023
6ce87f1
Fixed dependency
matt-aitken Sep 21, 2023
f73a2a4
Revert "Upgrade to the latest remix (pre v2)"
matt-aitken Sep 21, 2023
dfe680a
Update introduction.mdx (#498)
gjohnsx Sep 21, 2023
91fc1e8
Use the bell icon for the new status Tasks
matt-aitken Sep 21, 2023
15f17d2
Going exponential with `Linear` (#478)
nicktrn Sep 21, 2023
537447e
Use absolute image paths (#490)
nicktrn Sep 21, 2023
4cc690a
Update sendevent.mdx
ericallam Sep 22, 2023
3e63a7e
fix: Fail client-side on invalid Stripe event names (#492)
nicktrn Sep 22, 2023
c0dfa80
feat: BYO Auth (#491)
ericallam Sep 22, 2023
1a49527
CLI now supports multiple frameworks (with tests) (#480)
matt-aitken Sep 22, 2023
886d6fd
Tweaked the Linear scopes
matt-aitken Sep 22, 2023
5681ebc
Latest lockfile
matt-aitken Sep 22, 2023
b5e37bf
Fix for getPathAlias typecheck failure
matt-aitken Sep 22, 2023
dcc807d
Linear getAll type error (weirdly not in VSCode…) and removed the pag…
matt-aitken Sep 22, 2023
42022b6
Add BYO auth for oauth options
ericallam Sep 22, 2023
24465c9
Add back in Job.toJSON to fix the testing package
ericallam Sep 22, 2023
7b29a92
Removed dynamicTrigger @internal from toJSON
matt-aitken Sep 22, 2023
2a42942
The CLI now checks for a dev server API key in init and dev commands
matt-aitken Sep 22, 2023
3703f98
Remix onboarding now uses the CLI init command
matt-aitken Sep 22, 2023
50137a6
Decouple zod (#500)
ericallam Sep 22, 2023
2fdf42d
chore: Update version for release (#481)
github-actions[bot] Sep 22, 2023
2843240
Latest lockfile
matt-aitken Sep 22, 2023
df24cd5
feat: Basic usage dashboard to show run volume (#501)
ericallam Sep 23, 2023
eb4ca0c
Fixed duplicate end month
ericallam Sep 23, 2023
8fb9ea1
hotfix
ericallam Sep 24, 2023
8b25e57
hotfix 2
ericallam Sep 24, 2023
4578f6b
Astro CLI support (#506)
matt-aitken Sep 26, 2023
44cb28c
chore: Update version for release (#508)
github-actions[bot] Sep 26, 2023
0ecb512
Fix for incorrectly named Next.js package in manual setup
matt-aitken Sep 26, 2023
03db131
Latest lockfile
matt-aitken Sep 26, 2023
813ec74
Increased the intervalTrigger max from 1 day to 30 days
matt-aitken Sep 26, 2023
35d0c2a
Implement the task output redacting to prevent redacted values from s…
ericallam Sep 27, 2023
2397fcb
Express frameworks docs + CLI (#512)
matt-aitken Sep 27, 2023
6e11ab9
chore: Update version for release (#513)
github-actions[bot] Sep 27, 2023
bc757c8
Latest lockfile
matt-aitken Sep 27, 2023
a42e94c
Add the STAGING environment by default
ericallam Sep 27, 2023
a12c7c3
Fixed sparodically failed run creations
ericallam Sep 28, 2023
618b7f2
Swapped out the Homepage link in the side menu for a link to the Chan…
samejr Sep 28, 2023
3ca4456
Youtube embedded video fits its aspect ratio instead of going full width
samejr Sep 28, 2023
7760e09
Improved CLI init Next.js middleware detection
matt-aitken Sep 29, 2023
cc016b3
CLI init: adds public key as “TRIGGER_PUBLIC_API_KEY” except for Next…
matt-aitken Sep 29, 2023
5912cdd
Updated the docs for the React hooks
matt-aitken Sep 29, 2023
2e33fcb
chore: Update version for release (#521)
github-actions[bot] Sep 29, 2023
12e73ee
Display framework logos on the onboarding setup pages (#519)
samejr Sep 29, 2023
a8a6f51
autofocus the search field on the Job page
samejr Sep 29, 2023
421c249
Add some documentation around canceling scheduled events
ericallam Sep 30, 2023
f888a49
Updated outdated lockfile
ericallam Sep 30, 2023
e350659
Updated docs README.md
matt-aitken Oct 2, 2023
ab9e4a9
Improves the performance of run resuming (#522)
ericallam Oct 3, 2023
81e886a
Add typed filters to `Linear` getAll helper (#517)
nicktrn Oct 3, 2023
6a992a1
`Replicate` integration and remote callbacks (#507)
nicktrn Oct 4, 2023
5e651d8
Update pnpm lock file
ericallam Oct 4, 2023
b9ed7e2
Allow blank issues
ericallam Oct 4, 2023
28b05a8
chore: Update version for release (#538)
github-actions[bot] Oct 4, 2023
90f52de
Fix pnpm lock file
ericallam Oct 4, 2023
4e35871
feat: New Test page (#558)
matt-aitken Oct 5, 2023
c0aa663
chore: update doc title for groups (#539)
hmacr Oct 5, 2023
3e5a97c
Add instructions for triggering job runs to the job catalog readme
ericallam Oct 5, 2023
9189bdf
Updated the Test docs
matt-aitken Oct 5, 2023
914745f
Removed a console.log when a user’s file is changed that CLI dev is l…
matt-aitken Oct 5, 2023
2e9452a
feat: allow cancelling jobs from trigger-client sdk (#562)
hmacr Oct 5, 2023
9a187f9
chore: upgrade zod to 3.22.3 (#570)
hmacr Oct 5, 2023
c17faab
Stringify event payload and context before serialization
ericallam Oct 6, 2023
0df6410
Need to properly format the payload JSON
ericallam Oct 6, 2023
a847b49
NestJS framework suport (from @H4ad) (#574)
matt-aitken Oct 6, 2023
4b641b2
chore: Update version for release (#571)
github-actions[bot] Oct 6, 2023
5910339
Latest lockfile
matt-aitken Oct 6, 2023
a69a501
Removed NestJS example project tests
matt-aitken Oct 6, 2023
1f3b423
Removed testing dependencies from nestjs example
matt-aitken Oct 6, 2023
e58be93
Merge branch 'main' into fastify
mnmt7 Oct 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 1 addition & 6 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@remix-run/changelog-github",
{
"repo": "triggerdotdev/trigger.dev"
}
],
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
Expand Down
17 changes: 13 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
*.log
\*.log
.git
.github

# editor

.idea
.vscode

# dependencies

node_modules
.pnp
.pnp.js

# testing

coverage

# next.js

.next/
build

# packages

build
dist
packages/**/dist
packages/\*\*/dist

# misc

.DS_Store
*.pem
\*.pem

.turbo
.vercel
.cache
.output
apps/**/public/build
apps/\*\*/public/build

cypress/screenshots
cypress/videos
Expand All @@ -38,6 +46,7 @@ apps/**/styles/tailwind.css
packages/**/styles/tailwind.css

.changeset
references
examples
CHANGESETS.md
CONTRIBUTING.md
Expand Down
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ CLOUD_AIRTABLE_CLIENT_ID=
CLOUD_AIRTABLE_CLIENT_SECRET=
CLOUD_GITHUB_CLIENT_ID=
CLOUD_GITHUB_CLIENT_SECRET=
CLOUD_LINEAR_CLIENT_ID=
CLOUD_LINEAR_CLIENT_SECRET=
CLOUD_SLACK_APP_HOST=
CLOUD_SLACK_CLIENT_ID=
CLOUD_SLACK_CLIENT_SECRET=
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 🐞 Bug Report
description: Create a bug report to help us improve
title: "bug: "
labels: ["🐞 unconfirmed bug"]
body:
- type: textarea
attributes:
label: Provide environment information
description: |
Run this command in your project root and paste the results:
```bash
npx envinfo --system --binaries
```

validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of the bug, as well as what you expected to happen when encountering it.
validations:
required: true
- type: input
attributes:
label: Reproduction repo
description: If applicable, please provide a link to a reproduction repo or a Stackblitz / CodeSandbox project. Your issue may be closed if this is not provided and we are unable to reproduce the issue. If your bug is a docs issue, link the appropriate page.
validations:
required: true
- type: textarea
attributes:
label: To reproduce
description: Describe how to reproduce your bug. Steps, code snippets, reproduction repos etc.
validations:
required: true
- type: textarea
attributes:
label: Additional information
description: Add any other information related to the bug here, screenshots if applicable.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Ask a Question
url: https://trigger.dev/discord
about: Ask questions and discuss with other community members
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Feature Request
description: Suggest an idea for this project
title: "feat: "
labels: ["🌟 enhancement"]
body:
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like to see
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
attributes:
label: Describe alternate solutions
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
attributes:
label: Additional information
description: Add any other information related to the feature here. If your feature request is related to any issues or discussions, link them here.
12 changes: 12 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"📌 area: cli":
- any: ["cli/**/*"]

"📌 area: t3-app":
- any: ["cli/template/**/*"]

"📚 documentation":
- any: ["www/**/*"]
- any: ["**/*.md"]

"📌 area: ci":
- any: [".github/**/*"]
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Closes #<issue>

## ✅ Checklist

- [ ] I have followed every step in the [contributing guide](https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md)
- [ ] The PR title follows the convention.
- [ ] I ran and tested the code works

---

## Testing

_[Describe the steps you took to test this change]_

---

## Changelog

_[Short description of what has changed]_

---

## Screenshots

_[Screenshots]_

💯
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ jobs:
run: |
# Setup environment variables
cp ./.env.example ./.env
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local
cp ./references/nextjs-test/.env.example ./references/nextjs-test/.env.local

# Build packages
pnpm run build --filter @examples/nextjs-test^...
pnpm run build --filter @references/nextjs-test^...
pnpm --filter @trigger.dev/database generate

# Move trigger-cli bin to correct place
Expand Down
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
"name": "Chrome webapp",
"url": "http://localhost:3030",
"webRoot": "${workspaceFolder}/apps/webapp/app"
},
{
"type": "node-terminal",
"request": "launch",
"name": "Debug BYO Auth",
"command": "pnpm run byo-auth",
"envFile": "${workspaceFolder}/references/job-catalog/.env",
"cwd": "${workspaceFolder}/references/job-catalog",
"sourceMaps": true
}
]
}
9 changes: 9 additions & 0 deletions CHANGESETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,12 @@ Please follow the best-practice of adding changesets in the same commit as the c
3. Create version `pnpm run changeset:version`
4. Release `pnpm run changeset:release`
5. Switch back to normal mode by running `pnpm run changeset:normal`

## Snapshot instructions

!MAKE SURE TO UPDATE THE TAG IN THE INSTRUCTIONS BELOW!

1. Add changesets as usual `pnpm run changeset:add`
2. Create a snapshot version (replace "dev" with your tag) `pnpm exec changeset version --snapshot dev`
3. Build the packages: `pnpm run build --filter "@trigger.dev/*"`
4. Publish the snapshot (replace "dev" with your tag) `pnpm exec changeset publish --no-git-tag --snapshot --tag dev`
34 changes: 21 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ branch are tagged into a release monthly.
1. Clone the repo into a public GitHub repository or [fork the repo](https://github.com/triggerdotdev/trigger.dev/fork). If you plan to distribute the code, keep the source code public to comply with the [Apache Licence 2.0](https://github.com/triggerdotdev/trigger.dev/blob/main/LICENSE).

```
git clone https://github.com/triggerdotdev/trigger.dev.git
git clone https://github.com/<github_username>/trigger.dev.git
```

> If you are on windows, run the following command on gitbash with admin privileges:
> `git clone -c core.symlinks=true https://github.com/triggerdotdev/trigger.dev.git`
> `git clone -c core.symlinks=true https://github.com/<github_username>/trigger.dev.git`

2. Navigate to the project folder
```
Expand Down Expand Up @@ -133,10 +133,10 @@ pnpm run dev

2. Open a new Terminal window and run the webapp locally and then create a new project in the dashboard. Copy out the dev API key.

3. Create a new temporary Next.js app in examples directory
3. Create a new temporary Next.js app in references directory

```sh
cd ./examples
cd ./references
pnpm create next-app@latest test-cli --ts --no-eslint --tailwind --app --src-dir --import-alias "@/*"
```

Expand All @@ -149,7 +149,7 @@ pnpm create next-app@latest test-cli --ts --no-eslint --tailwind --app --src-dir
}
```

5. Back in the terminal, navigate into the example, and initialize the CLI. When prompted, select `self-hosted` and enter `localhost:3030` if you are testing against the local instance of Trigger.dev, or you can just use the Trigger.dev cloud. When asked for an API key, use the key you copied earlier.
5. Back in the terminal, navigate into the reference, and initialize the CLI. When prompted, select `self-hosted` and enter `localhost:3030` if you are testing against the local instance of Trigger.dev, or you can just use the Trigger.dev cloud. When asked for an API key, use the key you copied earlier.

```sh
cd ./test-cli
Expand Down Expand Up @@ -179,14 +179,14 @@ To run the end-to-end tests, follow the steps below:

```sh
cp ./.env.example ./.env
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local
cp ./references/nextjs-test/.env.example ./references/nextjs-test/.env.local
```

2. Set up dependencies

```sh
# Build packages
pnpm run build --filter @examples/nextjs-test^...
pnpm run build --filter @references/nextjs-test^...
pnpm --filter @trigger.dev/database generate

# Move trigger-cli bin to correct place
Expand Down Expand Up @@ -221,11 +221,11 @@ pnpm run db:studio

## Add sample jobs

The [examples/jobs-starter](./examples/jobs-starter/) project defines simple jobs you can get started with.
The [references/job-catalog](./references/job-catalog/) project defines simple jobs you can get started with.

1. `cd` into `examples/jobs-starter`
2. Create a `.env.local` file with the following content,
replacing `[TRIGGER_DEV_API_KEY]` with an actual key:
1. `cd` into `references/job-catalog`
2. Create a `.env` file with the following content,
replacing `<TRIGGER_DEV_API_KEY>` with an actual key:

```env
TRIGGER_API_KEY=[TRIGGER_DEV_API_KEY]
Expand All @@ -235,12 +235,20 @@ TRIGGER_API_URL=http://localhost:3030
`TRIGGER_API_URL` is used to configure the URL for your Trigger.dev instance,
where the jobs will be registered.

3. Run the `jobs-starter` app:
3. Run one of the the `job-catalog` files:

```sh
pnpm dev
pnpm run events
```

This will open up a local server using `express` on port 8080. Then in a new terminal window you can run the trigger-cli dev command:

```sh
pnpm run dev:trigger
```

See the [Job Catalog](./references/job-catalog/README.md) file for more.

4. Navigate to your trigger.dev instance ([http://localhost:3030](http://localhost:3030/)), to see the jobs.
You can use the test feature to trigger them.

Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/components/SetupCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function TriggerDevStep() {
</Paragraph>
<TriggerDevCommand />
<Paragraph spacing variant="small">
If you’re not running on port 3000 you can specify the port by adding{" "}
If you’re not running on the default you can specify the port by adding{" "}
<InlineCode variant="extra-small">--port 3001</InlineCode> to the end.
</Paragraph>
<Paragraph spacing variant="small">
Expand Down
44 changes: 44 additions & 0 deletions apps/webapp/app/components/code/InstallPackages.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import {
ClientTabs,
ClientTabsList,
ClientTabsTrigger,
ClientTabsContent,
} from "../primitives/ClientTabs";
import { ClipboardField } from "../primitives/ClipboardField";

type InstallPackagesProps = {
packages: string[];
};

export function InstallPackages({ packages }: InstallPackagesProps) {
return (
<ClientTabs defaultValue="npm">
<ClientTabsList>
<ClientTabsTrigger value={"npm"}>npm</ClientTabsTrigger>
<ClientTabsTrigger value={"pnpm"}>pnpm</ClientTabsTrigger>
<ClientTabsTrigger value={"yarn"}>yarn</ClientTabsTrigger>
</ClientTabsList>
<ClientTabsContent value={"npm"}>
<ClipboardField
variant="primary/medium"
className="mb-4"
value={`npm install ${packages.join(" ")}`}
/>
</ClientTabsContent>
<ClientTabsContent value={"pnpm"}>
<ClipboardField
variant="primary/medium"
className="mb-4"
value={`pnpm install ${packages.join(" ")}`}
/>
</ClientTabsContent>
<ClientTabsContent value={"yarn"}>
<ClipboardField
variant="primary/medium"
className="mb-4"
value={`yarn add ${packages.join(" ")}`}
/>
</ClientTabsContent>
</ClientTabs>
);
}
Loading