-
Notifications
You must be signed in to change notification settings - Fork 19
v0 exporting catalog to a static html #26
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
v0 exporting catalog to a static html #26
Conversation
609f9a7 to
57a09c7
Compare
wcalderipe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mandou muito bem @Luisgustavom1, valeu pelo PR!
Deixei uns comentários com sugestões na UI e no processo de build. Também abri o PR #27 que adiciona live reload no teu PR com air — pode dar merge se tiver tudo certo pra você.
| fmt.Println("error writing public/index.html", err) | ||
| os.Exit(1) | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Estava pensando que talvez a gente não precise versionar o build do index.html, igual não se salva o dist num projeto React, por exemplo.
Imaginando o CI como algo BEM simples:
- Fazer o build do
index.htmle dos assets dentro da pastabuild/site - Copiar os arquivos de public pra
build/site - Fazer o upload de tudo que tá em
build/sitepra CDN (ex: Cloudflare Pages)
@Luisgustavom1 o que você acha?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se você topar essa ideia e aceitar a proposta #27, vai precisar ajustar o make site/serve pra apontar o servidor pra build/site.
Ah, e lembra de adicionar a pasta build no .gitignore também 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toppp, eu nunca usei o cloudflare pages, mas a ideia de deixar o build no git era só de apontar pra esse mesmo repo, tipo como a vercel ou o github pages faz, ai não precisaria de CI aqui, por que ele já escuta a branch do repo.
Bom de configurar a CI e subir pra CDN é que a gente já ganha a automação de gerar o readme + site.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Apaga a
build/site - Criar a
build/site - Copia o que ta na
public/ - Escreve o html renderizado no
build/site
Co-authored-by: William Calderipe <[email protected]>
0fb8cbd to
e00a229
Compare
e6030fd to
4ec9b50
Compare
19ae31c to
1560153
Compare
1560153 to
85d3b30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bom demais @Luisgustavom1!
Deixei duas sugestões na UI mas acho que podemos fazer o merge assim que tu quiser.
Em seguida da para jogar #29 e atualizar o README e o site do repositório com a URL de produção 🚀
| <article class="text-center mb-12"> | ||
| <h1 class="text-3xl font-bold text-gray-900">Awesome Tech Lead</h1> | ||
| <p class="mt-2 text-lg text-gray-600">Lista de conteúdo sobre lideraça técnica curada pelos membros da comunidade | ||
| <a class="text-blue-500" href="https://techleads.club?utm_source=awesome-tech-lead&utm_medium=site" target="_blank">TechLeads.club</a> 💎 | ||
| </p> | ||
| </article> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Como o site vai acabar sendo a principal maneira que vamos falar da lista, uma sugestão é colocar uma referencia ao repositório no site.
Por exemplo, um badge com a quantidade de estralas.
tech-leads-club/awesome-tech-lead
<img alt="GitHub User's stars" src="https://img.shields.io/github/stars/tech-leads-club%2Fawesome-tech-lead">

Uh oh!
There was an error while loading. Please reload this page.