teleport-code-generators
teleport-code-generators copied to clipboard
Using the code generators in the repl
A few proposals based on how the repl is using the component generators:
-
The repl should create an instance for each configuration of code generator (5 for react, 1 for vue) and just select that configuration when the input or selectors have changed.
-
The repl should be able to receive a
technology
prop that allows it to be configured to output only in that specific technology (without showing the other options) -
We should support a
default
selection in case we want to show the vue generated code by default, but still allow switching at runtime. -
This is a bit of a long shot, but maybe the repl can be a lightweight implementation that can dynamically load the component generators at run time, or receive them as props, without having to depend on them directly.