From 04a3fa2f7bd989e43d5b305a42553fedc5bb3406 Mon Sep 17 00:00:00 2001 From: He4eT Date: Fri, 30 Oct 2020 00:33:07 +0500 Subject: [PATCH] typography: generator --- package.json | 3 ++- typography.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 typography.js diff --git a/package.json b/package.json index 2c72f29..92dd000 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "site.config.js", "scripts": { "start": "nanogen start", - "build": "nanogen build" + "build": "nanogen build", + "typography": "node typography.js" }, "keywords": [], "author": "", diff --git a/typography.js b/typography.js new file mode 100755 index 0000000..2b4c51a --- /dev/null +++ b/typography.js @@ -0,0 +1,15 @@ +const Typography = require('typography') +const fs = require('fs') + +const TYPOGRAPHY_CSS_FILEPATH = + './src/assets/css/typography.css' + +const typography = new Typography({ +}) + +void fs.writeFile( + TYPOGRAPHY_CSS_FILEPATH, + typography.toString(), + err => err + ? console.error(err) + : console.log(`Updated: ${TYPOGRAPHY_CSS_FILEPATH}`))