Replies: 4 comments 3 replies
-
I plan to make some attempts in the dev branch of the create-extension project. |
Beta Was this translation helpful? Give feedback.
-
Hey there! Good one to discuss! Here's what I'm planning: The TechWe plan to support a total of 4 UI contexts (see below) across 6 different frameworks which should default to TypeScript and use local CSS. They will all have one differentiator library (Tailwind). We will also have the basic JS templates according to the UI contexts (more below). UI Contexts (5)So, if we consider only the parts of an extension where we can add HTML/CSS/JS, we end up with 7 contexts. The "options" and the "sandbox" options seem too specific, so let's narrow down to 5:
Frameworks (3)Our templates are guided by JS framework. We plan to cover up to 6 (we're currently at 3):
Technologies (2)We have 3 technologies involved. We will have a template for each UI feature to handle "esnext", default all framework-specific code to TypeScript, and in the future support the same templates we do for "esnext" for WASM as well.
Libraries (1)We currently support two unrelated libraries. We will refactor th ChatGPT one to TypeScript and reuse the Tailwind template as a factory for other templates, which will then be removed.
The plan
The template composition idea is to have a way for developers to run for example Templates Needed
Total templates needed: 10/36 Tasks
FutureAs templates mature, I'd like to have a copy of the "vanilla JS" templates (except for "init") and have a sample WASM file in it to compose the "WASM" templates. And that would finish our built-in template capability. I also think that the Tailwind template while beautiful is too verbose. What do you think of that? Curious to hear your thoughts on this! |
Beta Was this translation helpful? Give feedback.
-
I indeed rarely use Tailwind, but many people like it. It's hard to judge. Are you considering replacing |
Beta Was this translation helpful? Give feedback.
-
Templates Needed: The content of the table may have errors. tailwind -> react-newtab-tailwind |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have categorized the existing templates into the following array. If we need to have corresponding
sample
templates for differentvariants
of eachFramework
, then we need to create4*4*3=48
different templates.If we want to add more
variants
orsamples
in the future to enrich the built-in templates, it will still be a troublesome task.I fell into deep thought ~ 😴
Beta Was this translation helpful? Give feedback.
All reactions