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[]) {