yarn add --dev \
@babel/core \
@babel/cli \
@babel/preset-env \
@babel/preset-typescript \
typescript
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
# 1st Stage for installing dependencies | |
FROM node:10.16.3 AS build-deps | |
COPY package*.json /build/ | |
WORKDIR /build | |
RUN npm install | |
# 2nd Stage for compiling typescript | |
FROM node:10.16.3 AS compile-env | |
RUN mkdir /compile | |
COPY --from=build-deps /build /compile |
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
const mjml = require('mjml'); | |
const { readFile, writeFile } = require('fs'); | |
const glob = require('glob'); | |
const { promisify } = require('util'); | |
const chalk = require('chalk'); | |
const readFileAsync = promisify(readFile); | |
const writeFileAsync = promisify(writeFile); | |
const globAsync = promisify(glob); | |
const log = { |