From 0a89553776cf5339977dcb65131461e20fff0adb Mon Sep 17 00:00:00 2001 From: Craig Morris Date: Mon, 23 Apr 2018 15:21:17 +0100 Subject: [PATCH] fix(export): `fix non implemented functions --- src/lib.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/lib.js b/src/lib.js index 75c79d8..f60e355 100644 --- a/src/lib.js +++ b/src/lib.js @@ -162,16 +162,30 @@ function styleguideTextStyles(context, styles) { -function exportStyleguideColors(context, colors) { - +function comment(context, text) { + return `/* ${text} */`; } -function exportStyleguideTextStyles(context, colors) { +function exportStyleguideColors(context, colors) { + var codeObject = styleguideColors(context, colors); + var code = codeObject.code; + return { + code: code, + filename: "colors.js", + language: "javascript" + }; } -function comment(context, text) { +function exportStyleguideTextStyles(context, textstyles) { + var codeObject = styleguideTextStyles(context, textstyles); + var code = codeObject.code; + return { + code: code, + filename: "fonts.css", + language: "css" + }; } module.exports = {