INFRA-2668 | add bundle size on pre push
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn prettier:write && yarn test --silent
|
yarn prettier:write && yarn test --silent && yarn webpack-build > ___results_bundle_size.txt
|
||||||
|
total_size=$(awk '/Entrypoint entry/ {print $3}' ___results_bundle_size.txt)
|
||||||
|
echo "$(tput setaf 1) Total size of bundle: $total_size MiB $(tput sgr 0)"
|
||||||
|
rm ___results_bundle_size.txt
|
||||||
@@ -22,6 +22,7 @@ src/model/offer-management
|
|||||||
.env.test.local
|
.env.test.local
|
||||||
.env.production.local
|
.env.production.local
|
||||||
*.md
|
*.md
|
||||||
|
*.txt
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|||||||
Reference in New Issue
Block a user