Skip to content

Instantly share code, notes, and snippets.

View manuman94's full-sized avatar
😍
Codingggggg

manuman94

😍
Codingggggg
View GitHub Profile
@ridakk
ridakk / Dockerfile
Created October 14, 2019 07:48
NodeJs TypeScript Multi-Stage Dockerfile
# 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
@matepaiva
matepaiva / compile-mjml.js
Created September 19, 2019 19:15
Compile all mjml files to html files
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 = {
@rstacruz
rstacruz / README.md
Last active October 17, 2024 15:36
Setting up Babel and TypeScript

Install Babel 7 and TypeScript

yarn add --dev \
  @babel/core \
  @babel/cli \
  @babel/preset-env \
  @babel/preset-typescript \
  typescript