diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-26 22:11:32 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-26 22:11:32 +0200 |
commit | e9a88898799d739cbf0254e9557c3dd85c8d5979 (patch) | |
tree | 527bebec0fc718c121994d182cd4024f3b2c17ba | |
parent | Code cleanup (diff) | |
download | gopherproxy-e9a88898799d739cbf0254e9557c3dd85c8d5979.tar.gz gopherproxy-e9a88898799d739cbf0254e9557c3dd85c8d5979.tar.bz2 gopherproxy-e9a88898799d739cbf0254e9557c3dd85c8d5979.zip |
Readme: Add pre-commit hook
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -46,6 +46,16 @@ Folder structure: | |||
46 | - **fonts:** Fonts that will be minified | 46 | - **fonts:** Fonts that will be minified |
47 | - **js:** TypeScript source files | 47 | - **js:** TypeScript source files |
48 | 48 | ||
49 | I recommend using a pre-commit hook that compiles all assets automatically: | ||
50 | |||
51 | ```#!bash | ||
52 | #!/bin/sh | ||
53 | |||
54 | exec make build | ||
55 | git add -f assets | ||
56 | exit 0 | ||
57 | ``` | ||
58 | |||
49 | 59 | ||
50 | ## Related | 60 | ## Related |
51 | 61 | ||