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
Parse5 implementation #5
Conversation
Grrrreat! I'll take a look as soon as I can! Happy Holidays! |
Oh and remember to use commitizen-style git messages, those are fed up to the changelog and to the engine which automatically bumps up package version numbers. I really recommend you to use them in your projects as well :) (more info: https://github.com/conventional-changelog/standard-version) What a great improvement! What do you think @gdbaldw @bennypowers ? |
Regarding |
| `verbose` | `Boolean` | `false` | It will console log each step, for debug purposes | | ||
| `quiet` | `Boolean` | `false` | It won't console log anything. By default, a log of each Web Component definition is log out with this format: `[add-web-component-definitions] Adding definition for tag: custom-tag`| | ||
| `singleScript` | `Boolean` | `false` | If true, only one script with import statements will be output: `<script type="module">import "js/components/custom-tag.js;</script>` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about this? I've implemented both a single script with many imports and many scripts with src (default, as it was in my original plugin), added some tests and modified the previous ones with the default option.
If you're both happy, I'll merge it @gdbaldw @bennypowers :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I wonder it it would be better to pass the tree to addChild
rather than hold the body
in closure, but that's a small nit.
Thank you for the compliments, and I really like the amendments. I'm in Taipei now, and so was sleeping at final review - looks great. And, glad to assist. |
Added test and demo for TDD, then refactored per @bennypowers Parse5 implementation, and expanded the configuration options, organized in three separate commits. A goal was no breaking changes, as demonstrated in the test cases and the demo. HTML imports are moved from the "src" attribute to an embedded script, which should be functionally equivalent.