Skip to content
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

Can it be used without build step (from CDN)? #85

Closed
cipriano200 opened this issue Oct 18, 2023 · 9 comments
Closed

Can it be used without build step (from CDN)? #85

cipriano200 opened this issue Oct 18, 2023 · 9 comments
Labels
low priority Done later

Comments

@cipriano200
Copy link

cipriano200 commented Oct 18, 2023

I used vuejs for commercial products/plugins and it worked great.
Can NUE be used from cdn?

@tipiirai
Copy link
Contributor

Glad to hear that Nue worked for your use case! However, I don't see a client-side compiler implemented any time soon. It bloats the client and the code is not CSP (content security policy) compliant because of inner exec() or new Function calls. This would also increase the amount of maintenance work quite a bit. Maybe later, but not now.

Thanks!

@tipiirai tipiirai added question Further information is requested low priority Done later and removed question Further information is requested labels Oct 23, 2023
@wangxingxing123654
Copy link

总之一个字,牛🐂nue

@Torres7707
Copy link

Torres7707 commented Oct 26, 2023 via email

@goblinfactory
Copy link
Contributor

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"

#!/bin/bash
nue build -r blog --production
git add -A
git commit -m "#208 $1"
git push

@tipiirai perhaps I've missed the intent of the OP's question though?

@tipiirai
Copy link
Contributor

@goblinfactory — Wow, this is awesome! The deployment truly cannot be any simpler. Is there a good/simple document on how to setup Cloudflare for a setup like this? I'd like to post a quick tutorial to my website. Or maybe you make something that I can link to !?!

Noticed you have quite many blog posts on your site already. And the content is stellar. Reading about Stickystats right now. Btw: was "Stop using the phrase 'technical debt' it doesnt help the client" trending on HN the other day?

@tipiirai
Copy link
Contributor

Closing this issue because the topic brought up originally a non-goal: Nue JS is not going to be a standalone library with a client-side compiler.

@goblinfactory
Copy link
Contributor

goblinfactory commented Jan 16, 2024

@tipiirai Let me write up a small blog post on steps to use nuejs with cloudflare, it really couldnt be simpler.
I'll ping you laterz on twitter when it's done. ciao, Alan
( I want to update my blog to use your latest nuemark first!

@goblinfactory
Copy link
Contributor

@tipiirai I also want to write a short tutorial on picking up after the starter blog tutorial finishes and wiring up the feedback dialog to allow for comments, but need to think through what is the simplest way to enable this. So many options. e.g. use the getting started demo worker from cloudflare that posts to airtable; and then embed approved comments in an island marked with a data attribute. some experimentation needed ; but I first write a simple blog on what I did to get my blog hosted on Cloudflare pages. cioa, Alan

@goblinfactory
Copy link
Contributor

@goblinfactory — Wow, this is awesome! The deployment truly cannot be any simpler. Is there a good/simple document on how to setup Cloudflare for a setup like this? I'd like to post a quick tutorial to my website. Or maybe you make something that I can link to !?!

Noticed you have quite many blog posts on your site already. And the content is stellar. Reading about Stickystats right now. Btw: was "Stop using the phrase 'technical debt' it doesnt help the client" trending on HN the other day?

re: stop using technical debt was trending
Aaah very nice! That wasn't my article that started trending, but glad it's being talked about. If you google the phrase you a lot of discussion on similar phrases going back about a year or more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Done later
Projects
None yet
Development

No branches or pull requests

5 participants