Skip to content

Commit

Permalink
feat(edition-node): switch to engine-handlebars
Browse files Browse the repository at this point in the history
BREAKING CHANGE: use handlebars over mustache
  • Loading branch information
bmuenzenmeyer committed Aug 23, 2019
1 parent 384d2cf commit b481e22
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/edition-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This Edition comes with the following components:

* `@pattern-lab/core`: [GitHub](https://github.com/pattern-lab/patternlab-node/tree/master/packages/core) | [npm](https://www.npmjs.com/package/@pattern-lab/core)
* `@pattern-lab/cli`: [GitHub](https://github.com/pattern-lab/tree/master/packages/cli) | [npm](https://www.npmjs.com/package/@pattern-lab/cli)
* `@pattern-lab/engine-mustache`: [GitHub](https://github.com/pattern-lab/tree/master/packages/engine-mustache) | [npm](https://www.npmjs.com/package/@pattern-lab/engine-mustache)
* `@pattern-lab/engine-handlebars`: [GitHub](https://github.com/pattern-lab/tree/master/packages/engine-handlebars) | [npm](https://www.npmjs.com/package/@pattern-lab/engine-handlebars)
* `@pattern-lab/uikit-workshop`: [GitHub](https://github.com/pattern-lab/tree/master/packages/uikit-workshop) | [npm](https://www.npmjs.com/package/@pattern-lab/uikit-workshop)

## Prerequisites
Expand Down
5 changes: 5 additions & 0 deletions packages/edition-node/helpers/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function(Handlebars) {
Handlebars.registerHelper('test', function() {
return 'This is a test helper';
});
};
2 changes: 1 addition & 1 deletion packages/edition-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"@pattern-lab/cli": "^0.0.3",
"@pattern-lab/core": "^3.0.1",
"@pattern-lab/engine-mustache": "^2.0.1-alpha.0",
"@pattern-lab/engine-handlebars": "^2.0.0-beta.1",
"@pattern-lab/uikit-workshop": "^1.0.1"
},
"keywords": [
Expand Down
9 changes: 7 additions & 2 deletions packages/edition-node/patternlab-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"css": "public/css"
}
},
"patternExtension": "mustache",
"patternExtension": "hbs",
"patternStateCascade": ["inprogress", "inreview", "complete"],
"patternExportDirectory": "./pattern_exports/",
"patternExportPatternPartials": [],
Expand All @@ -90,5 +90,10 @@
"excludedPatternStates": [],
"excludedTags": []
}
]
],
"engines": {
"handlebars": {
"extend": "helpers/*.js"
}
}
}

0 comments on commit b481e22

Please sign in to comment.