forked from mercadopago/cart-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #336 from PluginAndPartners/release/5.5.0
Nova versão do plugin de WooCommerce 5.5.0
- Loading branch information
Showing
41 changed files
with
14,732 additions
and
9,363 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
clear && npm run php:lint && clear && echo "Verificando sintaxe do PHP 🔍" && sleep 1 && echo "Verificando sintaxe do PHP ✅" | ||
npm run lint && clear && echo "Verificando sintaxe do JS 🔍" && sleep 1 && echo "Verificando sintaxe do JS ✅" | ||
npm run build:js && clear && echo "Minificando JS 🔍" && sleep 1 && echo "Minificando JS ✅" | ||
npm run build:css && clear && echo "Minificando CSS 🔍" && sleep 1 && echo "Minificando CSS ✅" | ||
npm run pot && clear && echo "Atualizando arquivo .pot 🔍" && sleep 1 && echo "Atualizando arquivo .pot ✅" | ||
git add *.min.js | ||
git add *.min.css | ||
git add *.pot | ||
command_to_get_staged_files="git diff --name-only --staged | tee" | ||
staged_files=$(eval "$command_to_get_staged_files") | ||
|
||
if [[ $staged_files == *".php"* ]]; then | ||
clear && npm run php:lint && clear && echo "Verificando sintaxe do PHP 🔍" && sleep 1 && echo "Verificando sintaxe do PHP ✅" | ||
fi | ||
|
||
if [[ $staged_files == *".js"* ]]; then | ||
npm run lint && clear && echo "Verificando sintaxe do JS 🔍" && sleep 1 && echo "Verificando sintaxe do JS ✅" | ||
npm run build:js && clear && echo "Minificando JS 🔍" && sleep 1 && echo "Minificando JS (Se houver) ✅" | ||
fi | ||
|
||
if [[ $staged_files == *".css"* ]]; then | ||
npm run build:css && clear && echo "Minificando CSS 🔍" && sleep 1 && echo "Minificando CSS ✅" | ||
fi | ||
|
||
if [[ $staged_files == *".po"* ]]; then | ||
npm run pot && clear && echo "Atualizando arquivo .pot 🔍" && sleep 1 && echo "Atualizando arquivo .pot ✅" | ||
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.