From 6f12dbbfa4247cbaea1abf50ce1e07ecf212be06 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Jan 2019 17:21:11 -0500 Subject: [PATCH] Add missing meta tag --- .gitignore | 4 +++- package.json | 4 +++- template.ts | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c2d264a..beb1642 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules package-lock.json -dev.html \ No newline at end of file +dev.html +*.js.map +*.js \ No newline at end of file diff --git a/package.json b/package.json index 22cb89f..2ad23f1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Generate an open graph image for twitter/facebook/etc", "main": "card.js", "scripts": { - "start": "node card.js" + "start": "node card.js", + "build": "tsc", + "watch": "tsc --watch" }, "author": "styfle", "repository": "github:styfle/og-image", diff --git a/template.ts b/template.ts index 6eecbc7..152997d 100644 --- a/template.ts +++ b/template.ts @@ -44,6 +44,9 @@ function getCss(fontWeight: FontWeight, fontSize: string) { export function getHtml(text: string, fontWeight: FontWeight, fontSize: string, images: string[]) { return ` + + Generated Image +