Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

[WIP] Script de rebuild do frontend #17

Draft
wants to merge 6 commits into
base: 3.1.x
Choose a base branch
from
Draft

Conversation

cantuariavc
Copy link
Contributor

@cantuariavc cantuariavc commented Apr 8, 2020

Descrição

Script para dar rebuild nas branchs master e 3.1.x.

@cantuariavc cantuariavc added the enhancement New feature or request label Apr 8, 2020
@cantuariavc cantuariavc self-assigned this Apr 8, 2020
@cantuariavc cantuariavc changed the title Script de rebuild do frontend WIP: Script de rebuild do frontend Apr 16, 2020
@cantuariavc cantuariavc marked this pull request as draft April 17, 2020 17:27
@cantuariavc cantuariavc marked this pull request as ready for review April 22, 2020 16:37
LeandroJatai
LeandroJatai previously approved these changes Apr 23, 2020
@LeandroJatai LeandroJatai self-requested a review April 23, 2020 18:58
@LeandroJatai LeandroJatai dismissed their stale review April 23, 2020 18:59

erro de avaliação

Copy link
Member

@LeandroJatai LeandroJatai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
após rodar o script, novos arquivos entram e webpack-stats.json ficou de fora!

@cantuariavc cantuariavc changed the title WIP: Script de rebuild do frontend Script de rebuild do frontend Apr 24, 2020
@cantuariavc
Copy link
Contributor Author

O script salva todas as alterações com o salva_wip() e depois de fazer as atualizações das branchs com o rebuild, ele volta para as branchs antigas, restaura os trabalhos salvo com o restaura_wip() e tira tudo dos staged.

salva_wip() {(
   cd $ROOT_DIR/$1
   git add .
   git stash
)}
restaura_wip() {(
   cd $ROOT_DIR/$1
   git checkout $2
   git stash pop
   git restore --staged .
)}

É possível que esses arquivo já esteja no seu status antes de rodar o script. Colocarei alertas para evitar confusões futuras.

@cantuariavc cantuariavc changed the title Script de rebuild do frontend [WIP] Script de rebuild do frontend Apr 24, 2020
@cantuariavc cantuariavc marked this pull request as draft April 24, 2020 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants