-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Template engine class to write previews out to files
- Loading branch information
Showing
21 changed files
with
11,625 additions
and
10,894 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,44 +1,45 @@ | ||
{ | ||
"name": "docsoc-tools", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"private": true, | ||
"devDependencies": { | ||
"@monodon/rust": "^1.4.0", | ||
"@nx-tools/container-metadata": "^6.0.1", | ||
"@nx-tools/nx-container": "^6.0.1", | ||
"@nx/esbuild": "19.4.3", | ||
"@nx/eslint": "19.4.3", | ||
"@nx/eslint-plugin": "19.4.3", | ||
"@nx/jest": "19.4.3", | ||
"@nx/js": "19.4.3", | ||
"@nx/node": "^19.4.3", | ||
"@swc-node/register": "~1.9.1", | ||
"@swc/core": "~1.5.7", | ||
"@swc/helpers": "~0.5.11", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "~18.16.9", | ||
"@typescript-eslint/eslint-plugin": "^7.3.0", | ||
"@typescript-eslint/parser": "^7.3.0", | ||
"esbuild": "^0.19.2", | ||
"eslint": "~8.57.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"jest": "^29.4.1", | ||
"jest-environment-node": "^29.4.1", | ||
"nx": "19.4.3", | ||
"prettier": "^2.6.2", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "~5.4.2" | ||
}, | ||
"workspaces": [ | ||
"packages/*", | ||
"packages/**/*" | ||
], | ||
"dependencies": { | ||
"axios": "^1.6.0", | ||
"tslib": "^2.3.0" | ||
} | ||
"name": "docsoc-tools", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"private": true, | ||
"devDependencies": { | ||
"@monodon/rust": "^1.4.0", | ||
"@nx-tools/container-metadata": "^6.0.1", | ||
"@nx-tools/nx-container": "^6.0.1", | ||
"@nx/esbuild": "19.4.3", | ||
"@nx/eslint": "19.4.3", | ||
"@nx/eslint-plugin": "19.4.3", | ||
"@nx/jest": "^19.4.3", | ||
"@nx/js": "19.4.3", | ||
"@nx/node": "^19.4.3", | ||
"@swc-node/register": "~1.9.1", | ||
"@swc/core": "~1.5.7", | ||
"@swc/helpers": "~0.5.11", | ||
"@trivago/prettier-plugin-sort-imports": "^4.3.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "~18.16.9", | ||
"@typescript-eslint/eslint-plugin": "^7.3.0", | ||
"@typescript-eslint/parser": "^7.3.0", | ||
"esbuild": "^0.19.2", | ||
"eslint": "~8.57.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"jest": "^29.4.1", | ||
"jest-environment-jsdom": "^29.4.1", | ||
"jest-environment-node": "^29.4.1", | ||
"nx": "19.4.3", | ||
"prettier": "^2.6.2", | ||
"ts-jest": "^29.1.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "~5.4.2" | ||
}, | ||
"workspaces": [ | ||
"packages/*", | ||
"packages/**/*" | ||
], | ||
"dependencies": { | ||
"axios": "^1.6.0", | ||
"tslib": "^2.3.0" | ||
} | ||
} |
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,3 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
} |
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,7 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: "docsoc-mail-merge", | ||
preset: "../../../jest.preset.js", | ||
coverageDirectory: "../../../coverage/packages/email/docsoc-mail-merge", | ||
testMatch: ["<rootDir>/test/**/*.ts"], | ||
}; |
18 changes: 18 additions & 0 deletions
18
...ocsoc-mail-merge/output/previews/dual.white.amphibian/Kishan__nunjucks__Preview-HTML.html
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,18 @@ | ||
<!-- DoCSoc Mail Merge Wrapper - used to wrap results rendered from Markdown --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body> | ||
<p>Dear Kishan,</p> | ||
<p>I hope this email finds you well. <strong>I am writing</strong> to you to inform you about the upcoming event that we are hosting.</p> | ||
<p>We would like to invite you to join us and participate in the event. We believe that your presence will add value to the event and we would be honored to have you with us.</p> | ||
<p>Kind regards,<br> | ||
Kishan Sambhi (he/him)<br> | ||
DoCSoc Vice President<br> | ||
<signature /></p> | ||
|
||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
...erge/output/previews/dual.white.amphibian/Kishan__nunjucks__Preview-Markdown.md
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,10 @@ | ||
Dear Kishan, | ||
|
||
I hope this email finds you well. **I am writing** to you to inform you about the upcoming event that we are hosting. | ||
|
||
We would like to invite you to join us and participate in the event. We believe that your presence will add value to the event and we would be honored to have you with us. | ||
|
||
Kind regards, | ||
Kishan Sambhi (he/him) | ||
DoCSoc Vice President | ||
<signature /> |
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,36 +1,39 @@ | ||
{ | ||
"name": "docsoc-mail-merge", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"dotenv": "^16.4.5", | ||
"email-validator": "^2.0.4", | ||
"html-to-text": "^9.0.5", | ||
"inquirer": "^10.1.4", | ||
"markdown-it": "^14.1.0", | ||
"mkdirp": "^3.0.1", | ||
"nodemailer": "^6.9.14", | ||
"nunjucks": "^3.2.4", | ||
"tslib": "^2.3.0" | ||
}, | ||
"scripts": { | ||
"start": "ts-node src/cli.ts" | ||
}, | ||
"bin": "./dist/cli.js", | ||
"type": "commonjs", | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts", | ||
"private": true, | ||
"devDependencies": { | ||
"@types/chalk": "^2.2.0", | ||
"@types/csv-parse": "^1.2.2", | ||
"@types/dotenv": "^8.2.0", | ||
"@types/email-validator": "^1.0.6", | ||
"@types/html-to-text": "^9.0.4", | ||
"@types/markdown-it": "^14.1.1", | ||
"@types/nodemailer": "^6.4.15", | ||
"@types/nunjucks": "^3.2.6", | ||
"@types/winston": "^2.4.4", | ||
"csv-parse": "^5.5.6", | ||
"ts-node": "^10.9.2" | ||
} | ||
"name": "docsoc-mail-merge", | ||
"version": "0.0.1", | ||
"dependencies": { | ||
"dotenv": "^16.4.5", | ||
"email-validator": "^2.0.4", | ||
"html-to-text": "^9.0.5", | ||
"inquirer": "^10.1.4", | ||
"markdown-it": "^14.1.0", | ||
"mkdirp": "^3.0.1", | ||
"nodemailer": "^6.9.14", | ||
"nunjucks": "^3.2.4", | ||
"tslib": "^2.3.0", | ||
"unique-names-generator": "^4.7.1" | ||
}, | ||
"scripts": { | ||
"start": "ts-node src/cli.ts", | ||
"test": "jest" | ||
}, | ||
"bin": "./dist/cli.js", | ||
"type": "commonjs", | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts", | ||
"private": true, | ||
"devDependencies": { | ||
"@types/chalk": "^2.2.0", | ||
"@types/csv-parse": "^1.2.2", | ||
"@types/dotenv": "^8.2.0", | ||
"@types/email-validator": "^1.0.6", | ||
"@types/html-to-text": "^9.0.4", | ||
"@types/markdown-it": "^14.1.1", | ||
"@types/nodemailer": "^6.4.15", | ||
"@types/nunjucks": "^3.2.6", | ||
"@types/winston": "^2.4.4", | ||
"csv-parse": "^5.5.6", | ||
"jest-mock-extended": "^3.0.7", | ||
"ts-node": "^10.9.2" | ||
} | ||
} |
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
Oops, something went wrong.