Skip to content

Commit

Permalink
chore: swap out handlebars-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
doamatto committed Aug 21, 2024
1 parent a659e69 commit ec26f4b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
"gulp-jest": "^4.0.3",
"gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"handlebars-helpers": "^0.10.0",
"hbl-arrays": "^0.1.0",
"hbl-cmark": "^0.1.0",
"hbl-comparison": "^0.1.0",
"hbl-maths": "^0.1.0",
"hbl-object": "^0.1.0",
"hbl-strings": "^0.1.0",
"hbl-urls": "^0.1.0",
"image-size": "^0.8.3",
"lunr": "^2.3.9",
"postcss": "^8.2.10",
Expand Down
16 changes: 14 additions & 2 deletions src/build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ import { loadRubric } from "../parsing/index";
const gulp = require("gulp");
const rename = require("gulp-rename");
const hb = require("gulp-hb");
const hbHelpers = require("handlebars-helpers");
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

Expand All @@ -29,7 +35,13 @@ export function hbsFactory(data: object = {}) {
}),
...data,
})
.helpers(hbHelpers())
.helpers(hbArrayHelpers())
.helpers(hbCMarkHelpers())
.helpers(hbCompareHelpers())
.helpers(hbMathsHelpers())
.helpers(hbObjectHelpers())
.helpers(hbStringHelpers())
.helpers(hbUrlHelpers())
.helpers({
ratioColorClass,
getMonth,
Expand Down

0 comments on commit ec26f4b

Please sign in to comment.