From 3a39e21fa3202de3c3d4c2a075bb040dcdc23691 Mon Sep 17 00:00:00 2001 From: Mykola Bilochub Date: Fri, 14 Jun 2019 18:26:32 +0300 Subject: [PATCH] Add an HTML preview for labels --- labels/make-preview.js | 99 ++++++++++++++++++++++++++++++++++++++++++ labels/preview.html | 89 +++++++++++++++++++++++++++++++++++++ 2 files changed, 188 insertions(+) create mode 100755 labels/make-preview.js create mode 100644 labels/preview.html diff --git a/labels/make-preview.js b/labels/make-preview.js new file mode 100755 index 0000000..f708041 --- /dev/null +++ b/labels/make-preview.js @@ -0,0 +1,99 @@ +#!/usr/bin/env node + +const labels = require('./labels.json'); +const fs = require('fs'); +const path = require('path'); + +const html = `\ + + + + + + + + + +`; + +fs.writeFileSync(path.join(__dirname, 'preview.html'), html); diff --git a/labels/preview.html b/labels/preview.html new file mode 100644 index 0000000..8decfb4 --- /dev/null +++ b/labels/preview.html @@ -0,0 +1,89 @@ + + + + + + + + +