Skip to content

Commit

Permalink
optimizing images
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Apr 12, 2020
1 parent 3b2905b commit 5dd59eb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ deps-install:
feedback:
@open https://github.com/AlexanderWillner/KanbanView/issues

pre-commit:
pre-commit: png jpg
@make kill-api
@make deps-install install uninstall clean test auto-style
@THINGSDB=tests/Things.sqlite3 make run-api &
Expand All @@ -160,6 +160,16 @@ pre-commit:
@open dist/KanbanView.app
@git status

png:
@type optipng >/dev/null 2>&1 || (echo "Run 'brew install optipng' first." >&2 ; exit 1)
@echo "Optimizing PNG..."
@find . -iname "*.png" -exec optipng -silent {} \;

jpg:
@type jpegoptim >/dev/null 2>&1 || (echo "Run 'brew install jpegoptim' first." >&2 ; exit 1)
@echo "Optimizing JPG..."
@find . -iname "*.jpg" -exec jpegoptim -q {} \;

upload: clean
@python3 setup.py sdist bdist_wheel
@python3 -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/things3*

0 comments on commit 5dd59eb

Please sign in to comment.