-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from gaabrenno/develop
add husk
- Loading branch information
Showing
6 changed files
with
97 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Executa o PHPStan para análise estática do código | ||
echo "Executando PHPStan para análise estática..." | ||
./vendor/bin/phpstan analyse --memory-limit=512M | ||
|
||
# Verifica o status de saída do PHPStan | ||
if [ $? -ne 0 ]; then | ||
echo "hehe Deu ruim cumpadi.... Erros encontrados pelo PHPStan. Corrija-os antes de realizar o commit." | ||
exit 1 | ||
fi | ||
|
||
# Executa o PHPUnit para testes automatizados em parallel | ||
echo "Executando textes em paralelo..." | ||
php artisan test --parallel | ||
if [ $? -ne 0 ]; then | ||
echo "hehe Deu ruim cumpadi.... 1 ou mais testes deram errado. Corrija-os antes de realizar o commit." | ||
exit 1 | ||
fi | ||
|
||
# Executa o Laravel Pint com correção automática | ||
echo "Executando Laravel Pint para corrigir o código..." | ||
./vendor/bin/pint | ||
|
||
# Verifica se houve alterações após a execução do Pint | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "O Laravel Pint corrigiu os seguintes arquivos:" | ||
git status --porcelain | ||
|
||
# Adiciona as alterações corrigidas ao commit | ||
git add -u | ||
echo "As alterações corrigidas foram adicionadas ao commit." | ||
else | ||
echo "Laravel Pint executado com sucesso, sem alterações necessárias!" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build" | ||
}, | ||
"devDependencies": { | ||
"@tailwindcss/forms": "^0.5.2", | ||
"alpinejs": "^3.4.2", | ||
"autoprefixer": "^10.4.2", | ||
"axios": "^1.7.4", | ||
"laravel-vite-plugin": "^1.0.5", | ||
"postcss": "^8.4.31", | ||
"tailwindcss": "^3.1.0", | ||
"vite": "^5.0" | ||
} | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"prepare": "husky" | ||
}, | ||
"devDependencies": { | ||
"@tailwindcss/forms": "^0.5.2", | ||
"alpinejs": "^3.4.2", | ||
"autoprefixer": "^10.4.2", | ||
"axios": "^1.7.4", | ||
"husky": "^9.1.6", | ||
"laravel-vite-plugin": "^1.0.5", | ||
"postcss": "^8.4.31", | ||
"tailwindcss": "^3.1.0", | ||
"vite": "^5.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters