6 ms·
Hey folks, author of Fresh here. Very excited for this rather significant release. Happy to answer any questions you may have :)
by lucacasonato 4y ago
Hey folks, author of Fresh here. Very excited for this rather significant release. Happy to answer any questions you may have :)
- jplhomer 4y agoTerrific update! You resolved the only two pain points I'd experienced (`tw` template literal and JSX pragma stuff). Out of curiosity: does the support for automatic JSX incur any startup or deployment penalty? I'd assumed Deno didn't have a "build step" per se, but maybe I'm mistaken.
- lucacasonato 4y agoNope, no startup penalty. It is just as performant as the classic JSX pragma. The actual JavaScript that is executed by the runtime is pretty much identical.
- cercatrova 4y agoI'd be interested to see a more built in solution for Markdown and MDX, as with Astro or NextJS, since I've been mainly using either for blog type websites and I'd love to use Fresh as well.
- MarkBennett 4y agoIt's my understanding that GFM is already easy to do, in fact there's an example of using it with Fresh in the fresh repository as it's used for the docs! https://github.com/denoland/fresh/blob/main/www/routes/docs/%5B...slug%5D.tsx https://github.com/denoland/fresh/blob/main/www/routes/docs/... Using MDX is a little trickier as the .mdx file needs to be compiled to a javascript file which is then interpretted. When running Deno yourself this isn't hard as you can use a dynamic import, but if you're planning on using Deno Deploy you'll be out of luck as it doesn't support dynamic imports currently. https://github.com/denoland/fresh/issues/640 https://github.com/denoland/fresh/issues/640 Deno Deploy has an open issue asking for support if you want to give it a star. ;) https://github.com/denoland/deploy_feedback/issues/1 https://github.com/denoland/deploy_feedback/issues/1 As a workaround, you can always setup a watcher and preprocess MDX files before deploying to Deno Deploy, but that seems against the spirit of what Fresh is trying to accomplish by getting rid of preprocessors. Let me know if you figure out a way to get MDX on Deno Deploy working without precompile as I'd like to use it myself!
- dmix 4y agoHow big is the “team” working on Fresh? Is there a primary product which it spawned off of (the demo website?)?
- lucacasonato 4y agoYes, it was a tech demo for some internal projects. I maintain the framework itself, but a lot of the work in other parts of the Deno system (Deno Deploy, Deno CLI) that are related to Fresh are done by other folks on the team :)
- pier25 4y agoFresh is looking awesome Luca! The only thing I'm missing to try it out is some sort of SASS support.
- lucacasonato 4y agoThis is actually something I am planning a plugin for, just like we have for Twind.
- gherkinnn 4y agoSolid release! It fixes most of the rough edges I encountered. Was Twind chosen to stay true to the "no build step" idea?
- lucacasonato 4y agoIndeed it was :)
- teebot 4y agoI really want to try fresh together with edgedb. Any chance a builtin authentication will be added soon? Or is there a recipe to implement something like auth0?
- lucacasonato 4y agoOne of the next releases will improve the plugin API to the point where authentication providers can be very easily added as plugins.