-
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.
* sync ts to js template files on commit * generate js templates * generate js templates * test precommit hook * test precommit hook * revert precommit test * add newline * add eslint rule * add newlines after imports * commit * save
- Loading branch information
1 parent
0a2995f
commit ba09450
Showing
25 changed files
with
69 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
**/dist/** | ||
**/generated/** | ||
**/runs/** | ||
.mailing |
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 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx}": "eslint --fix", | ||
"*.rb": "rubocop --autocorrect" | ||
"*.rb": "rubocop --autocorrect", | ||
"packages/cli/src/generator_templates/ts/**/*.{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
3 changes: 2 additions & 1 deletion
3
packages/cli/src/commands/preview/server/templates/feModuleManifest.template.ejs
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,5 @@ | ||
import config from "../../mailing.config.json"; | ||
export { config }; | ||
|
||
const feManifest = { config }; | ||
export { config }; | ||
export default feManifest; |
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 |
---|---|---|
|
@@ -18,5 +18,4 @@ const BulletedList = ({ items }) => { | |
</> | ||
); | ||
}; | ||
|
||
export default BulletedList; |
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 |
---|---|---|
|
@@ -16,5 +16,4 @@ const Header = ({ loose }) => { | |
</MjmlSection> | ||
); | ||
}; | ||
|
||
export default Header; |
4 changes: 1 addition & 3 deletions
4
packages/cli/src/generator_templates/js/emails/components/theme.js
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,16 +1,14 @@ | ||
// Colors | ||
export const black = "#000"; | ||
export const gold = "#fadf98"; | ||
export const grayDark = "#777"; | ||
export const grayDark = "#888"; | ||
export const grayLight = "#f5f5f5"; | ||
|
||
// Typography | ||
export const textSm = 14; | ||
export const textBase = 16; | ||
export const textLg = 24; | ||
export const textXl = 30; | ||
export const leadingTight = "120%"; | ||
export const leadingRelaxed = "160%"; | ||
|
||
// Borders | ||
export const borderBase = 100; |
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 |
---|---|---|
|
@@ -5,17 +5,15 @@ const transport = nodemailer.createTransport({ | |
pool: true, | ||
host: "smtp.example.com", | ||
port: 465, | ||
secure: true, // use TLS | ||
secure: true, | ||
auth: { | ||
user: "username", | ||
pass: "password", | ||
}, | ||
}); | ||
|
||
const sendMail = buildSendMail({ | ||
transport, | ||
defaultFrom: "[email protected]", | ||
configPath: "./mailing.config.json", | ||
}); | ||
|
||
export default sendMail; |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
npx tsc \ | ||
--allowSyntheticDefaultImports true \ | ||
--moduleResolution node \ | ||
--jsx preserve \ | ||
--target es2020 \ | ||
--outDir packages/cli/src/generator_templates/js/emails \ | ||
--noEmit false \ | ||
packages/cli/src/generator_templates/ts/emails/**/*.tsx packages/cli/src/generator_templates/ts/emails/*.ts | ||
|
||
npx prettier --write packages/cli/src/generator_templates/js/* | ||
yarn eslint --fix --ext .jsx,.js packages/cli/src/generator_templates/js/* | ||
|
||
git add packages/cli/src/generator_templates/js/* |
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
ba09450
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
demo.mailing.run
mailing-dynamic-demo-git-main-sofn.vercel.app
mailing-dynamic-demo-sofn.vercel.app
ba09450
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
mailing-web.vercel.app
web-emails-sofn.vercel.app
web-emails-git-main-sofn.vercel.app
emails.mailing.run