This file contains hidden or 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
| version: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| nodejs: 14.x | |
| commands: | |
| - npm install -g typescript | |
| - npm install | |
| pre_build: | |
| commands: |
This file contains hidden or 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
| import { Edge } from 'edge.js' | |
| import path from 'path' | |
| import { LooseObject } from '../types' | |
| export default class ViewService { | |
| public constructor( | |
| public view: string, | |
| private data: LooseObject | null = null | |
| ) {} | |
| public get path(): string { |
This file contains hidden or 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
| import nodemailer from 'nodemailer' | |
| import ViewService from './view' // https://gist.github.com/ndiecodes/6e964e716a2b5b2aa22438912da2b3f3 | |
| import Mailgun from 'mailgun.js' | |
| import FormData from 'form-data' | |
| import { MailgunMessageData } from 'mailgun.js/interfaces/Messages' | |
| interface LooseObject { | |
| [key: string]: any | |
| } |
OlderNewer