-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] feat: switch engine-twig to use twing rather than node-twig #1135
Conversation
@ringods Yes, I would be able to test the changes, I probably need some guidance here. For context, the pattern library I have is based on the PHP Twig Engine version. So I would need to know:
As I'm quite out of the loop what happened in Patternlab since back then. Are you able to provide me with some references and hints that help me? |
@renestalder first of all, thank you for stepping in with some help. I am working on a local, but minimal setup which I will probably push to my own Github account shortly. That should be a setup that you can replicate with your pattern library. I'll ping you when it is available and we can go over the setup together if needed. |
@bmuenzenmeyer @sghoweri I could use some input on PL internals. I have updated the On my branch (in this PR), I added
but
With this in place, a
But when I look at the output, I have a lot of rendered pattern HTML files only having Do I still have anything misconfigured? |
…hand pattern naming & name is not defined in the textarea macro
@renestalder I have got something working. This PR contains 3 sets of changes:
You can clone from my fork here: https://github.com/ringods/patternlab-node/tree/feature/twigjs I suggest that you first try to get the $ yarn install
$ cd packages/development-edition-engine-twig
$ yarn run patternlab install --starterkits @pattern-lab/starterkit-twig-demo
$ yarn pl:build This should give you a clean build output. The code should support twig relative includes, support for namespaced includes as well as based on the Patternlab pattern names (e.g. Once you got this working, you can replace the patterns from the starterkit with your extensive library. Awaiting your results. ;-) |
@ringods Thank you very much for your time and work. I'll try to approach this as soon as possible, maybe today or next week. Don't hesitate to ping me again if you don't hear anything from me for a longer time. |
Hey there 👋 Just two quick meta comments I wanted to throw out there:
|
@sghoweri as I didn't grow up with English as my main language, I'm not sure how to interpret your first comment. Is it a statement or more of a question? Just checking because I first tried with Regarding your second comment: I tested my work with |
@ringods that's quite alright (and for what it's worth, I think your English is totally fine!) -- what I meant to say is that I would have picked Twing as well, good choice 👍 |
@sghoweri nice to hear I made a good choice eventually. I just updated the README of the engine. Can you inform me how I should update the CHANGELOG.md? Or is this done automatically based on the commit info? Do I have to rewrite the git history to better reflect what changed? |
the changelog is automatically created - scanning the commit names you have here - everything should be fine from what I can tell |
@renestalder kindly reminder. Awaiting results of testing with your private twig patterns. 😉 |
@sghoweri @bmuenzenmeyer can we decouple further twig testing from integrating this work into I am asking this because I would like to base my own setups on top of my |
@sghoweri @bmuenzenmeyer can you merge & release this? |
@ringods thanks for carrying this forward! - I've just added you to the trusted committer team in the org. |
Sorry for not being able to test it yet. I'm a professional procrastinator. |
@bmuenzenmeyer thank you for the trust in me. |
@renestalder if you want to test, you can use the released version of the package: https://www.npmjs.com/package/@pattern-lab/engine-twig/v/5.8.0 Please create new issues if you find bugs. 😉 |
[WIP] feat: switch engine-twig to use twing rather than node-twig
Closes #285
Summary of changes:
node-twig
totwing
Todo: