Skip to content

Commit

Permalink
fix: use of HBS helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
doamatto committed Jan 10, 2025
1 parent 10cb611 commit 4955097
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions src/build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}) {
Expand All @@ -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[]) {
Expand Down

0 comments on commit 4955097

Please sign in to comment.