-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
pushd web/styles | ||
|
||
npm ci | ||
npm run compile-prod | ||
|
||
# if the above results in a changes against HEAD | ||
# an updated version of styles.css needs to be commited. | ||
git diff-index --quiet HEAD || { | ||
echo "git tree is dirty after running compile-prod target" | ||
git diff-index --name-only HEAD | ||
exit 1 | ||
} | ||
|
||
popd |
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,14 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# files in assets with more then 100kb and count them | ||
count=$(find web/assets -size '+100k' | wc -l) | ||
find web/assets -size '+100k' > /tmp/big-assets.txt | ||
count=$(cat /tmp/big-assets.txt | wc -l) | ||
|
||
|
||
# make sure count is an integer | ||
let count=count+0 | ||
|
||
|
||
if [ $count -ne 0 ]; then | ||
echo "found $count big assets" | ||
echo "found $count big assets - maybe development tailwind was commited? listing follows:" | ||
cat /tmp/big-assets.txt | ||
exit 1 | ||
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