From 495509746ec3b5160711ebae21f9f96fb6fc4ae1 Mon Sep 17 00:00:00 2001 From: Matthew RONCHETTO Date: Fri, 10 Jan 2025 09:57:27 -0800 Subject: [PATCH] fix: use of HBS helpers --- src/build/utils.ts | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/build/utils.ts b/src/build/utils.ts index f653f68d..f2f1203a 100644 --- a/src/build/utils.ts +++ b/src/build/utils.ts @@ -9,14 +9,6 @@ import { loadRubric } from "../parsing/index"; const gulp = require("gulp"); const rename = require("gulp-rename"); const hb = require("gulp-hb"); -const hbArrayHelpers = require("hbl-arrays"); -const hbCMarkHelpers = require("hbl-cmark"); -const hbCompareHelpers = require("hbl-comparison"); -const hbMathsHelpers = require("hbl-maths"); -const hbObjectHelpers = require("hbl-object"); -const hbStringHelpers = require("hbl-strings"); -const hbUrlHelpers = require("hbl-urls"); - const PAGE_NUMBER_PADDING = 3; // i.e.: *1* 2 3 ... 8 export function hbsFactory(data: object = {}) { @@ -35,19 +27,19 @@ export function hbsFactory(data: object = {}) { }), ...data, }) - .helpers(hbArrayHelpers()) - .helpers(hbCMarkHelpers()) - .helpers(hbCompareHelpers()) - .helpers(hbMathsHelpers()) - .helpers(hbObjectHelpers()) - .helpers(hbStringHelpers()) - .helpers(hbUrlHelpers()) + .helpers(require("hbl-cmark")) + .helpers(require("hbl-comparison")) + .helpers(require("hbl-maths")) + .helpers(require("hbl-strings")) + .helpers(require("hbl-urls")) .helpers({ ratioColorClass, getMonth, shouldIncludePage, shouldIncludeEllipsis, }); + //.helpers(require("hbl-arrays").default) + //.helpers(require("hbl-object").default) } export function getProductPageBuildTasks(products: Product[]) {