diff options
| author | Christian Cleberg <[email protected]> | 2025-01-24 20:26:20 -0600 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-01-24 20:26:20 -0600 |
| commit | af386793e701976293c05fbdd409470cb324915a (patch) | |
| tree | 1667b7286fab00f5a12d0dff04088ba1d0e41ffc /utils/hooks/post-commit | |
| parent | 47daf032cc131e13541687fa96648ab3d2268298 (diff) | |
| download | cleberg.net-af386793e701976293c05fbdd409470cb324915a.tar.gz cleberg.net-af386793e701976293c05fbdd409470cb324915a.tar.bz2 cleberg.net-af386793e701976293c05fbdd409470cb324915a.zip | |
add more git hooks
Diffstat (limited to 'utils/hooks/post-commit')
| -rw-r--r-- | utils/hooks/post-commit | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/utils/hooks/post-commit b/utils/hooks/post-commit index d950da6..3064dc6 100644 --- a/utils/hooks/post-commit +++ b/utils/hooks/post-commit @@ -1,4 +1,16 @@ # .git/hooks/post-commit #!/bin/bash -echo "Commit added:" -git show --stat +echo "Environment: Development" + +# Remove previous build +rm -rf .build/* + +# Run publishing script +emacs --script publish.el + +# Minify CSS +minify -o theme/static/styles.min.css theme/static/styles.css + +# Launch development web server +cd .build/ +python3 -m http.server |
