Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: weekly newsletter with upcoming events #331

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

iiio2
Copy link
Member

@iiio2 iiio2 commented Jan 14, 2023

Closes #232

to use it go to services/firebase and run yarn cli newsletter

weeky

services/firebase/emails/weekly.html Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/tsconfig.json Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/firebase.ts Outdated Show resolved Hide resolved
firestore.rules Outdated Show resolved Hide resolved
firestore.indexes.json Outdated Show resolved Hide resolved
.firebaserc Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
@razbakov razbakov changed the title Email render ts Weekly newsletter with upcoming events Feb 20, 2023
@razbakov razbakov changed the title Weekly newsletter with upcoming events feat: weekly newsletter with upcoming events Feb 20, 2023
@razbakov razbakov self-requested a review February 20, 2023 16:31
@iiio2 iiio2 force-pushed the email-render-ts branch from c295c1b to e77b729 Compare March 9, 2023 15:40
services/firebase/emails/weekly.html Outdated Show resolved Hide resolved
services/firebase/src/index.ts Outdated Show resolved Hide resolved
services/firebase/src/index.ts Outdated Show resolved Hide resolved
services/firebase/src/index.ts Outdated Show resolved Hide resolved
services/firebase/src/index.ts Outdated Show resolved Hide resolved
services/firebase/src/index.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/sendEmail.ts Show resolved Hide resolved
@razbakov
Copy link
Contributor

When I run yarn cli newsletter
Then I get Error: ENOENT: no such file or directory, open '../templates/weekly.mjml'

Log:

$ yarn cli newsletter

yarn run v1.22.19
$ npm run build && node dist/cli.js newsletter

> build
> yarn clean && tsc && yarn copy-files

$ rimraf dist/
$ copyfiles -u 1 src/**/*.js src/**/*.mjml dist/
cli.js newsletter

Generate Weekly Newsletter

Options:
      --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Error: ENOENT: no such file or directory, open '../templates/weekly.mjml'
    at Object.openSync (node:fs:594:3)
    at Object.readFileSync (node:fs:462:35)
    at Object.renderEmail (/Users/razbakov/WeDance/platform-v2/services/firebase/dist/lib/digest.js:7:23)
    at Object.handler (/Users/razbakov/WeDance/platform-v2/services/firebase/dist/cli.js:88:33)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '../templates/weekly.mjml'
}

@iiio2 iiio2 requested a review from razbakov March 17, 2023 11:50
@iiio2 iiio2 self-assigned this Mar 17, 2023
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/sendEmail.ts Outdated Show resolved Hide resolved
services/firebase/templates/weekly.mjml Outdated Show resolved Hide resolved
services/firebase/.gitignore Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/emails/weekly.html Outdated Show resolved Hide resolved
services/firebase/templates/weekly.mjml Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
@iiio2 iiio2 requested a review from razbakov March 28, 2023 08:18
services/firebase/emails/weekly.html Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/sendEmail.ts Show resolved Hide resolved
@iiio2 iiio2 requested a review from razbakov March 30, 2023 17:59
@iiio2 iiio2 requested a review from razbakov March 31, 2023 09:14
services/firebase/.gitignore Show resolved Hide resolved
services/firebase/package.json Outdated Show resolved Hide resolved
services/firebase/src/lib/digest.ts Show resolved Hide resolved
services/firebase/src/lib/digest.ts Outdated Show resolved Hide resolved
services/firebase/src/lib/sendEmail.ts Show resolved Hide resolved
@iiio2 iiio2 requested a review from razbakov April 4, 2023 15:54
@we-dance we-dance locked as resolved and limited conversation to collaborators May 20, 2023
@we-dance we-dance unlocked this conversation May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

weekly newsletter with upcoming events
2 participants