-
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.
* stop linking emails * remove more files * re-add emails * stop eslinting for now * fix * cleanup * get greens * generate js instead * fix link, exclude root emails directory * Update packages/cli/src/util/generators.ts Co-authored-by: Peter Sugihara <[email protected]> * Apply suggestions from code review Co-authored-by: Peter Sugihara <[email protected]> Co-authored-by: Peter Sugihara <[email protected]>
- Loading branch information
1 parent
a24ebe5
commit 1b1a2b0
Showing
50 changed files
with
51 additions
and
54 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,6 +1,4 @@ | ||
#!/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": "eslint --fix", | ||
"*.rb": "rubocop --autocorrect", | ||
"packages/cli/src/generator_templates/ts/**/*.{ts,tsx}": "scripts/build-js-templates" | ||
"packages/cli/src/emails/**/*.{ts,tsx}": "scripts/build-js-templates" | ||
} |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Generate JS templates from TS Templates | ||
npx tsc \ | ||
--allowSyntheticDefaultImports true \ | ||
--moduleResolution node \ | ||
--jsx preserve \ | ||
--target es2020 \ | ||
--outDir packages/cli/src/emails-js \ | ||
--noEmit false \ | ||
packages/cli/src/emails/**/*.tsx \ | ||
packages/cli/src/emails/*.tsx \ | ||
packages/cli/src/emails/*.ts | ||
|
||
# Format the generated JS templates | ||
npx prettier --write packages/cli/src/emails-js/* | ||
yarn eslint --fix --ext .jsx,.js packages/cli/src/emails-js/* | ||
|
||
# Add the generated JS templates to git | ||
git add packages/cli/src/emails-js/* |
1b1a2b0
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-sofn.vercel.app
mailing-dynamic-demo.vercel.app
mailing-dynamic-demo-git-main-sofn.vercel.app
demo.mailing.run
1b1a2b0
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-git-main-sofn.vercel.app
web-rho-puce.vercel.app
web-sofn.vercel.app
mailing.run
www.mailing.run
1b1a2b0
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
mailing-web.vercel.app
web-emails-sofn.vercel.app
emails.mailing.run