we-dance / platform

Community platform for dancers
https://wedance.vip
GNU General Public License v3.0
46 stars 55 forks source link

feat: weekly newsletter with upcoming events #331

Open iiio2 opened 1 year ago

iiio2 commented 1 year ago

Closes #232

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

weeky

razbakov commented 1 year ago

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'
}