-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudflare setup docs #167
Comments
Txs @tipiirai I'm still working through everything and will help get some notes on working with Cloudflare in the next few days. |
Thanks! Absolutely no rush. I prefer quality over speed on everything. |
Hi @tipiirai |
Awesome! Thanks. I'll try to incorporate that to the official docs. Likely have some questions.
Absolutely loving this comment on the article!
Can you give some details for this one? One of the key challenges for Nue is to sell the idea of the separation of concerns principle because people refuse to think beyond CSS-in-JS/Tailwind these days. Especially the younger generation. If you could give me some insights about your AHA- moment on this one, that would help me write about semantic HTML. Thanks. (Tackling the GA issue next) |
@tipiirai I possibly wouldn't try to sell that the Tailwind devs; if someone is using Tailwind, then I dont see why they can't still use Nue. I dont know enough yet about Nue to comment sensibly yet. Let me think about this and come back here with something that makes sense; I'll also possibly wait for fenced code blocks, because it might be easier to write some code and "show" rather than tell the differences. Here's 2 approaches to this specific problem Foo. I like Tailwind, and on bigger projects I believe I'd have no choice but to work with a designer to keep the CSS semantically clean. That isn't easy. It will make the separation SO MUCH Cleaner, so the trade off is obviously a good one. But for projects where I'm the solo developer, I can currently use semantic CSS for small blogs etc, but anything that needs to have compositional component design, then the cascading nature of CSS without any additional tooling becomes too much for a mortal to handle. (imo) cut a long story short; I think you need to support both; because the community will be broadly divided into those that can handle the CSS, and those that just need to ship working software and are working alongside a big team of mixed skills without a dedicated smart designer; in those scenarios I believe Tailwind is a blessing because you can build your feature/comonent/UI and it wont mysteriously break for unknown reasons as another developer, possibly in a different team, in a different timezone adds a random innocuous style tweak to what he thinks is only his control. ;D I'll write a small blog post on this when fenced code blocks are supported in Nue. |
@goblinfactory good, valid points. Thank you. I see that it makes sense to support both. The upcoming templates will definitely be semantic because it's much easier to make themes with a cascaded system. I'll think about Tailwind once that is in place. I guess some sort of built-in support for utility classes would be nice. What would be the minimum viable Tailwind support? |
Supporting tailwind from the get-go doesnt seem to make sense; until the rest of the framework building blocks are available Nuejs will have immediate production value in content heavy applications, which lend themselves to clean semantic design. Supporting Tailwind from the get-go could result in accidental "valuable" contributions coming in too early. Not sure if I'm explaining my thought correctly. Basically, it's a piece of cake to start with Semantic CSS, and add support for other design philosophies, but obviously not the other way around. The current roadmap should allow for the best practices to be established with a core community focused at least initially on clean semantic html and css. Having a solid clean set of sematics to describe both content as well as application interfaces would give us the ability to properly spike and explore the problems that Tailwind solves, with real examples, contrasting different approaches and comparing advantanges and trade-offs of each. I asked chatGPT the following question;
This was the reply; (abridged) For designing semantic CSS for a complex web application with deeply nested controls, control composition, and multiple micro front-end services, the required core skills include:
Items 6 and possibly 4, would be core skills that a typical full stack web developer coming from a corporate background, working in a team would possibly not have! (in abundance...let's be kind! ❤️) Semantic CSS requires ? a holistic approach, and is not something that can be partially applied. It requires discipline, and breaks down quickly if there are any holes in the dyke, considering many corporates employ teams of dyke-hole-makers. Tailwind definitely helps keep features and teams more "isolated" in this situation. ...he says..ducking! 😆 |
On the issue of cloudflare setup docs; if someone else wants to pick up the ticket, that's great; if no one does, then at some point I'll be settingup a proper CICD pipeline (and build) for Cloudflare specifically, and will submit a PR with some documentation on how to do it. That will only be in a few weeks time though. I have a ticket on my backlog to get to this, just ping me if someone else picks this up. It won't be compatible with the current goals for nuejs (sub millisecond deployments) ; and I'll make a point to refer (link) to that, so this is a stop-gap for now; allowing Cloudflare users to start playing wit nue in production on cloudflare. (wrote this comment above just to get this thread back on topic! ) |
I have a pretty clear idea of the design system now taking advantage of both global and local styling. From design tokens to CSS-in-JS. The word holistic is a good one, which lets different approaches co-exist. I'll start working on that after the syntax highlight- thing. I totally understood what you meant by the "valuable" contributions: fully implemented & styled components, but incompatible with the framework ideals. "Let's be kind" is also a good advice! Noted. Can you give some advice on the question of the "minimum viable Tailwind support". What should the framework do at minimum, to be compelling for Tailwind developers? |
OMG. That would be awesome. Respect! (no rush) |
Apologies for taking so long to reply to this; |
@tipiirai I have some time to do this now, can you please assign this ticket to me? txs, A |
@tipiirai I'll need to be able to build and preview any changes to the nuejs-www project before submitting a pr. |
Use @goblinfactory's excellent post as inspiration:
As a hack just so that I can play with the project, I've just been doing local built and include the .dist/prod directory in git.
I'm using cloudflare, hosting on CDN, (cloudflare pages) without any workers, just the static dist/prod folders.
Just deployed my blog with it for fun : https://blog.alanhemmings.com
I dont have a build step; other than
git push
locally, heheh!I have this cheeky fake "makefile"
@tipiirai perhaps I've missed the intent of the OP's question though?
Originally posted by @goblinfactory in #85 (comment)
The text was updated successfully, but these errors were encountered: