Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Nov 5, 2023
1 parent 05adac4 commit f1c1a01
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 2 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"build:ibooks": "ts-node ./src/index.ts -i",
"format": "prettier --write src/**",
"lint": "eslint src",
"build": "ts-node ./src/index.ts && tiddlywiki --build",
"update:image": " find image -type f -name '*.png' ! -name '*-banner.png' -exec pngquant --ext .png --force {}"
"build": "ts-node ./src/index.ts && tiddlywiki --build"
},
"keywords": [
"books",
Expand Down
2 changes: 2 additions & 0 deletions scripts/minify-png.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# find image -type f -name '*-banner.png' -exec bash -c 'mv "$0" "${0//-banner}"' {} \;
find image -type f -name '*.png' ! -name '*-banner.png' -exec pngquant --ext .png --force {} \;

0 comments on commit f1c1a01

Please sign in to comment.