Replies: 4 comments
-
|
I have thought about dependency hints before but I think it generally goes against my goal of making it as easy as possible. Would a better solution be to simply start treating 'src' the same as a dependency? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the super quick response! I don’t think resolving I pictured the hints as an extra feature, keeping it plug in play for most users. But if dependency resolving isnt supported for a certain language, we could enable this with a feature flag to help out. |
Beta Was this translation helpful? Give feedback.
-
|
Honestly I am wondering if at that point we would be better off going the shadcn route of not resolving dependencies and instead requiring users to manually provide them with an external config? Obv we would keep the current behavior as well and this would be opt in but this would allow for more granular control of the registry. I am kinda against type hints a bit because it's going to require us to consider comments when parsing which could require additional dependencies since the parsers I am using currently have varying support. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah an external config sounds nice too and most likely less error prone |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i wanna to use jsrepo in a TYPO3/Fluid (php) project. Im pretty sure you never heard of these 😅, but Fluid is the rendering engine for the TYPO3 CMS, both written in php. Fluid files are just
.htmlfiles but with custom xml bases "viewhelpers". For example using a Button component could look like thisOr loading a script looks like this:
Right now, only script tags and stylesheets are recognized as dependencies in HTML files, as I saw here #308, but that doesn’t work in this case.
I wanna suggest the idea of language-agnostic and fine-tunable dependency hints.
This could look something like this in a dialog component:
The comments then would get removed when importing the block in a project.
I think other popular tools like blade or twig could also benefit from this. It would allow jsrepo to be used in way more scenarios.
I would love to hear what you think about this, @ieedan
Best,
Joost
Beta Was this translation helpful? Give feedback.
All reactions