Add last update, cover images and new code theme
|
|
@ -5,7 +5,7 @@ defaultContentLanguage='en'
|
|||
enableRobotsTXT = true
|
||||
|
||||
# Code Highlight
|
||||
pygmentsstyle = "github"
|
||||
pygmentsstyle = "gruvbox"
|
||||
pygmentscodefences = true
|
||||
pygmentscodefencesguesssyntax = true
|
||||
|
||||
|
|
|
|||
6
content/en/posts/demystifying-viewmodel-testing.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "Demystifying ViewModel Testing: Strategies for Crafting Test-Friendly ViewModels"
|
||||
date: 2024-03-25T10:54:21-03:00
|
||||
featured_image: "/img/demystifying-viewmodel-testing.webp"
|
||||
draft: true
|
||||
---
|
||||
|
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
title: "How to Access Test Only Files From Unit and Instrumented Test Packages"
|
||||
date: 2022-02-19
|
||||
lastmod: 2024-03-24
|
||||
description: "Learn how to make files available from different test packages in Android development."
|
||||
featured_image: "/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
|
||||
## TL;DR
|
||||
|
||||
Create a directory called `testCommon` and add the code below to your `build.gradle` file.
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
title: "How to Deploy React Applications Using Github Actions + Rsync"
|
||||
date: 2022-10-15T15:30:22-03:00
|
||||
lastmod: 2024-03-24
|
||||
description: "Learn how to easily deploy a react application"
|
||||
featured_image: "/img/how-to-deploy-react-applications-using-github-actions-+-rsync/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
|
||||
Source code and deployed app used for this post:
|
||||
- [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app);
|
||||
- [tutorials.leomurca.xyz/rsync-deploy-react-app](https://tutorials.leomurca.xyz/rsync-deploy-react-app/);
|
||||
|
|
@ -78,7 +81,7 @@ I recognize these tools have their advantages, but have found that for small to
|
|||
|
||||
I've created an demo app to deploy it to my server. Its source code is available at [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app).
|
||||
|
||||

|
||||

|
||||
|
||||
## Server Setup
|
||||
|
||||
|
|
@ -240,7 +243,7 @@ jobs:
|
|||
|
||||
That's it! Change some code, push it to the main branch and see the magic happening!
|
||||
|
||||

|
||||

|
||||
|
||||
Also, if you want to have more details on the action steps, please check the [actions-executed](https://github.com/leomurca/rsync-deploy-react-app/actions) during this article.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
---
|
||||
title: "How to Push to Multiple Git Remotes With One Command"
|
||||
date: 2022-10-11T16:51:53-03:00
|
||||
lastmod: 2024-03-24
|
||||
description: "Learn how to how to manage multiple remote repositories with git (terminal)."
|
||||
featured_image: "/img/how-to-push-to-multiple-git-remotes-with-one-command/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
Repositories used for the tutorial:
|
||||
|
||||
- [gh-remote](https://github.com/leomurca/gh-remote);
|
||||
- [gl-remote](https://gitlab.com/leomurca/gl-remote.git).
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
title: "Como acessar arquivos de teste de diferentes pacotes de teste (Unit e Instrumented) em Android"
|
||||
date: 2022-02-19
|
||||
lastmod: 2024-03-24
|
||||
description: "Aprenda como acessar arquivos de teste de diferentes pacotes de teste (Unit e Instrumented) em Android."
|
||||
featured_image: "/img/how-to-access-test-only-files-from-unit-and-instrumented-test-packages/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
|
||||
## TL;DR
|
||||
|
||||
Crie um diretório chamado `testCommon` e adicione o trecho de código abaixo ao seu arquivo `build.gradle`.
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
title: "Como fazer o deploy de aplicativos React usando Github Actions + Rsync"
|
||||
date: 2022-10-15T15:30:22-03:00
|
||||
lastmod: 2024-03-24
|
||||
description: "Aprenda como fazer o deploy de aplicativos React usando Github Actions + Rsync"
|
||||
featured_image: "/img/how-to-deploy-react-applications-using-github-actions-+-rsync/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
|
||||
Código fonte e aplicação em produção utilizado nesse post:
|
||||
- [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app);
|
||||
- [tutorials.leomurca.xyz/rsync-deploy-react-app](https://tutorials.leomurca.xyz/rsync-deploy-react-app/);
|
||||
|
|
@ -80,7 +83,7 @@ Reconheço que essas ferramentas têm suas vantagens, mas descobri que, para pro
|
|||
|
||||
Criei um aplicativo de demonstração para fazer o deploy em meu servidor. Seu código-fonte está disponível em [rsync-deploy-react-app](https://github.com/leomurca/rsync-deploy-react-app).
|
||||
|
||||

|
||||

|
||||
|
||||
## Setup do servidor
|
||||
|
||||
|
|
@ -242,7 +245,7 @@ jobs:
|
|||
|
||||
É isso! Altere algum código, envie-o para o branch principal e veja a mágica acontecendo!
|
||||
|
||||

|
||||

|
||||
|
||||
Além disso, se você quiser obter mais detalhes sobre as etapas da ação, verifique as [ações executadas](https://github.com/leomurca/rsync-deploy-react-app/actions) durante este artigo.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
---
|
||||
title: "Como fazer push para múltiplos repositórios no git com apenas 1 comando"
|
||||
date: 2022-10-11T16:51:53-03:00
|
||||
lastmod: 2024-03-24
|
||||
description: "Aprenda como fazer push para múltiplos repositórios no git com apenas 1 comando (terminal)."
|
||||
featured_image: "/img/how-to-push-to-multiple-git-remotes-with-one-command/featured_image.webp"
|
||||
draft: false
|
||||
---
|
||||
|
||||

|
||||
|
||||
Repositório utilizados neste tutorial:
|
||||
- [gh-remote](https://github.com/leomurca/gh-remote);
|
||||
- [gl-remote](https://gitlab.com/leomurca/gl-remote.git).
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
other="Freelance and side projects."
|
||||
[posted-on]
|
||||
other="Posted on "
|
||||
[last-update]
|
||||
other="Last update "
|
||||
[posts]
|
||||
other="Posts"
|
||||
[post-date-format]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
other="Freelance e projetos paralelos."
|
||||
[posted-on]
|
||||
other="Publicado em "
|
||||
[last-update]
|
||||
other="Última atualização "
|
||||
[posts]
|
||||
other="Publicações"
|
||||
[post-date-format]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
<main id="main">
|
||||
<article>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<p class="posted-on">{{ i18n "posted-on"}}{{ dateFormat (i18n "single-post-date-format") .Date }}</p>
|
||||
<p class="posted-on"><strong>{{ i18n "posted-on"}}</strong>{{ dateFormat (i18n "single-post-date-format") .Date }}</p>
|
||||
{{ if ne .Date .Lastmod }}
|
||||
<p class="last-update"><strong>{{ i18n "last-update"}}</strong>{{ dateFormat (i18n "single-post-date-format") .Lastmod }}</p>
|
||||
{{ end }}
|
||||
<section class="body">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -301,6 +301,13 @@ footer p {
|
|||
.posted-on {
|
||||
font-style: italic;
|
||||
color: #2f3335;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.last-update {
|
||||
margin-top: 0;
|
||||
font-style: italic;
|
||||
color: #2f3335;
|
||||
}
|
||||
|
||||
/* "Hide" checkbox -- moves it off screen*/
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 65 KiB |