-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* await creating the default list * for completeness: also assert organization * lint for await * ooops - put the eslint config for ts in the right place * eslint should ignore .mailing directories * add tsconfig's to parserOptions.project in @typescript-eslint/parser block * await async functions * don't ignore __test__ from tsconfig in core * linter says that this expect must be awaited * tsconfig covers all the .ts files in the root directory: jest.config.ts testSetup.integration.ts testUtilIntegration.ts jest.integration.config.ts testSetup.ts * tsconfig should include e2e/**/* * src/cli/generator_templates/**/* is not a directory in packages/cli * await some async functions * we're using plain js in e2e/mailing_tests so don't need a tsconfig * fix typo * await analytics calls * eslintignore these 2 files: packages/cli/src/generator_templates packages/cli/src/emails because they are ignored in tsconfig.json * update files attribute in package.json * don't actually want to ignore those * this is my workaround for typescript-eslint/typescript-eslint#2987 * noop? * simplify tsconfigs? * fix all the lints * oops * try void * async await * smaller change * fix server build * Revert "fix server build" This reverts commit e24e0ed. * await -> void in init * remove trailing comma in json * cypress does not actually need to reset the web db, so remove * server: try cd into .mailing and then npx next build with the current directory * pull posthog api key into its own file so it does not bloat the next build by pulling in posthog-node * import from the righ tplaÿce
- Loading branch information
1 parent
e155434
commit 4fe6211
Showing
30 changed files
with
65 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint:unlink | ||
yarn lint-staged | ||
yarn lint:link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ describe("livereload", () => { | |
done(); | ||
}); | ||
|
||
touchTemplate(); | ||
void touchTemplate(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const POSTHOG_API_KEY = process.env.POSTHOG_API_KEY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ describe("index", () => { | |
}); | ||
|
||
describe("subject", () => { | ||
it("throws an error if missing subject", () => { | ||
it("throws an error if missing subject", async () => { | ||
const sendMail = buildSendMail({ | ||
transport, | ||
defaultFrom: "[email protected]", | ||
|
@@ -50,7 +50,7 @@ describe("index", () => { | |
html: "ok", | ||
}); | ||
|
||
expect(callSendMail()).rejects.toThrowError( | ||
await expect(callSendMail()).rejects.toThrowError( | ||
"sendMail couldn't find a subject for your email" | ||
); | ||
}); | ||
|
@@ -500,7 +500,7 @@ describe("index", () => { | |
subject: "hello", | ||
}); | ||
|
||
expect(callSendMail).rejects.toThrowError( | ||
await expect(callSendMail).rejects.toThrowError( | ||
"Templates sent to a list must include an unsubscribe link. Add an unsubscribe link or remove the list parameter from your sendMail call." | ||
); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4fe6211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web-emails – ./packages/web
web-emails-git-main-sofn.vercel.app
emails.mailing.run
web-emails-sofn.vercel.app
mailing-web.vercel.app
4fe6211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web – ./packages/web
web-rho-puce.vercel.app
web-sofn.vercel.app
mailing.run
www.mailing.run
web-git-main-sofn.vercel.app
4fe6211
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mailing-dynamic-demo – ./
mailing-dynamic-demo.vercel.app
mailing-dynamic-demo-sofn.vercel.app
demo.mailing.run
mailing-dynamic-demo-git-main-sofn.vercel.app