-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Documentation] Engine configuration fileExtension vs extension #1480
Comments
I'm afraid none of the above is correct. I think the initial intention of the creator of that code was to allow the user to override the default Thank you very much for highlighting this discrepancy. |
Have you updated the package I tried it for myself with different options and none were giving me an error. |
Where I started: I also had only "engines": {
"handlebars": {
"extend": "helpers/*.js"
}
} Which I then update to: "dependencies": {
"@pattern-lab/cli": "^6.0.1",
"@pattern-lab/core": "^6.0.1",
"@pattern-lab/engine-handlebars": "^6.0.0",
"@pattern-lab/uikit-bare": "^0.0.1",
"@pattern-lab/uikit-workshop": "^6.0.1"
} After npm install and run pattern labs got the following message still with the I headed over to the documentation, pasted the prescribed change, and got the same message. That's how I provisioned a new project and figured out the misleading configuration there. If you like reproducing it, you can use hTWOo.
Thanks in advance. |
The only required parameter is the following and it is the source of the issue. The |
Am I correct? The only thing needed is: "engines": {
"handlebars": {
"package": "@pattern-lab/engine-handlebars",
"extend": "helpers/hbs/*.js"
}
} or could I remove even the "extend" and all the helpers will get recognised too? |
If you do not need the files located in https://github.com/n8design/htwoo/tree/main/htwoo-core/helpers loaded by handlebars, this is also not required and you can just use "engines": {
"handlebars": {
"package": "@pattern-lab/engine-handlebars",
}
} |
I use Pattern Lab Node
v6.0.1
onWindows | Mac | Linux
, with Nodev16.15.1
, using aVanilla
Edition with a little bit of gulp flavoured on top.I recently upgrade to version 6.0.1 everything works as expected but I got an error message that the engine is not configured correctly. The engine configuration looked as follows:
This is according to the documentation: Engine
However, I created a new project based on version 6.0.0.
The configuration in 6.0.0 looks as followed:
After I modified my configuration to "fileExtension" instead of "extension", the error message was not showing up anymore. So the question is now. Is the documentation outdated, which it seems to be, or an issue in pattern lab that got introduced in v6.0.1
The text was updated successfully, but these errors were encountered: