Skip to content

Commit cfc48fe

Browse files
committed
Update memes-generator content and add a content guidelines section the readme
1 parent c03c915 commit cfc48fe

File tree

5 files changed

+305
-190
lines changed

5 files changed

+305
-190
lines changed

Diff for: .gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
postgres-data
4+
# dependencies
5+
node_modules
6+
.pnp
7+
.pnp.js
8+
9+
# testing
10+
coverage
11+
12+
# next.js
13+
.next/
14+
out/
15+
build
16+
dist
17+
packages/**/dist
18+
19+
# Tailwind
20+
apps/**/styles/tailwind.css
21+
packages/**/styles/tailwind.css
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
32+
# local env files
33+
.env.docker
34+
.docker/*.env
35+
.env.local
36+
.env.development.local
37+
.env.test.local
38+
.env.production.local
39+
40+
# turbo
41+
.turbo
42+
.vercel
43+
.cache
44+
.env
45+
.output
46+
apps/**/public/build
47+
.tests-container-id.txt
48+
.sentryclirc
49+
.buildt
50+
51+
**/tmp/
52+
/test-results/
53+
/playwright-report/
54+
/playwright/.cache/

Diff for: README.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# Source code for Trigger.dev blog articles
22

33
Check out [our blog](https://trigger.dev/blog) for all our articles or [follow us](https://dev.to/triggerdotdev) to be notified when new blogs are release.
4+
5+
## Content Guidelines
6+
7+
All blog post content should following the guidelines:
8+
9+
- Don't use tabs for indenting code and use 2 spaces (not 4).
10+
- Use TypeScript instead of JavaScript, unless the article is specifically about JavaScript
11+
- Favor specifying a [Zod schema](https://zod.dev/) when using `eventTrigger` [Docs here](https://trigger.dev/docs/documentation/concepts/triggers/events)
12+
- Use `io.runTask` or an integration whenever doing any communication with outside services or databases, especially when there's a possibility that runs will be resumed. See our [Resumability docs](https://trigger.dev/docs/documentation/concepts/resumability) for more.
13+
- Use Trigger.dev integrations instead of native SDKs.
14+
- When using `io.logger.info`, use the second parameter to include additional data with the log:
15+
16+
```ts
17+
await io.logger.info("This is a log message with additional data", {
18+
foo: "bar",
19+
});
20+
```
21+
22+
- `io.sendEvent` must be awaited

Diff for: memes-generator/package-lock.json

+50-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: memes-generator/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
"dependencies": {
1212
"@supabase/supabase-js": "^2.33.2",
1313
"@trigger.dev/nextjs": "^2.1.0",
14+
"@trigger.dev/openai": "^2.1.3",
15+
"@trigger.dev/resend": "^2.1.3",
1416
"@trigger.dev/sdk": "^2.1.0",
1517
"autoprefixer": "10.4.15",
1618
"eslint": "8.49.0",
1719
"eslint-config-next": "13.4.19",
1820
"next": "13.4.19",
19-
"openai": "^4.6.0",
2021
"postcss": "8.4.29",
2122
"react": "18.2.0",
2223
"react-dom": "18.2.0",
2324
"react-tag-input": "^6.8.1",
24-
"resend": "^1.0.0",
2525
"tailwindcss": "3.3.3"
2626
},
2727
"trigger.dev": {
2828
"endpointId": "novu-Zffl"
2929
}
30-
}
30+
}

0 commit comments

Comments
 (0)