v0.18.0
HTML Component Generator
A experimental new generator for exporting projects and components using HTML and CSS. But the generator comes with only a few features at the moment. In usual ComponentUIDL
we can can define the specific details of components, Including if the component is using any external components, using
dependency: {
type: 'local'
}
But in plain html
we don't have support for components yet. Yes (custom-elements) but the target is to make it a plain html
with no custom-elements
. A custom-elements
can be a diff generator of it own :)
So, to make the syntaxes work.
const generator = createHTMLComponentGenerator()
generator.addExternalComponents({
externals: {
sample: SampleComponent,
},
})
await generator.generateComponent(ComponentUIDL)
The generator, clones the components in independent instances with the props passed at specific instances. Things that are no included at the moment.
- State change behaviour
- Event handling
- Slots
- Dynamic styles
- Conditional Nodes
- Repeat nodes
For projects that are generated using @teleporthq/teleport-project-generator-html
, the generator uses a default template from parcel
without routing. All the components and pages are added to their respective folders.
Feedback is highly welcome, since we want to have the HTML
generator as simple as possible. And at the same time, functional. For users who want to just get their html
files and serve from their static hosts.
What's Changed
- chore(deps): bump url-parse from 1.5.1 to 1.5.3 by @dependabot in #602
- component uidl propdefinitions defaultValue should optional by @MurakamiKennzo in #604
- chore(deps): bump jszip from 3.6.0 to 3.7.0 by @dependabot in #601
- chore(deps): bump tar from 4.4.15 to 4.4.19 by @dependabot in #605
- Scoping component styles with comp name for
styled-jsx
by @JayaKrishnaNamburu in #607 - chore(deps): bump tmpl from 1.0.4 to 1.0.5 by @dependabot in #608
- chore(deps): bump axios from 0.21.1 to 0.21.4 by @dependabot in #610
- chore(deps): bump nth-check from 2.0.0 to 2.0.1 by @dependabot in #609
- feat(comp-html): HTML Component and Project Generator by @JayaKrishnaNamburu in #539
- Adding missing tests and adding ability to pass externals using code-generator by @JayaKrishnaNamburu in #611
New Contributors
- @MurakamiKennzo made their first contribution in #604
Full Changelog: v0.17.7...v0.18.0