Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fb3b4dfd8 |
No files matched your search
@@ -179,14 +179,15 @@ by copying them into other projects or referencing them directly.
|
|||||||
|
|
||||||
## Template Repos
|
## Template Repos
|
||||||
|
|
||||||
These template repositories implement the policies defined in this repo and
|
This template repository implements the policies defined in this repo and serves
|
||||||
serve as starting points for new projects. They must be kept in sync when
|
as a starting point for new projects. It must be kept in sync when policies
|
||||||
policies change.
|
change.
|
||||||
|
|
||||||
- **[template-app-go](https://git.eeqj.de/sneak/template-app-go)** — Go HTTP
|
- **[template-app-go](https://git.eeqj.de/sneak/template-app-go)** — Go HTTP
|
||||||
server template (Uber fx, chi, SQLite, session auth, Prometheus metrics)
|
server template (Uber fx, chi, SQLite, session auth, Prometheus metrics)
|
||||||
- **[go-template-repo](https://git.eeqj.de/clawbot/go-template-repo)** — Go HTTP
|
|
||||||
service template, with a script that renames it for a new project
|
When updating policies in this repo, also update the template repo to match
|
||||||
|
(Makefile targets, Dockerfile conventions, CI workflows, required files, etc.).
|
||||||
|
|
||||||
## See Also
|
## See Also
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|||||||
main() {
|
main() {
|
||||||
cd "$ROOT"
|
cd "$ROOT"
|
||||||
hook=".git/hooks/pre-commit"
|
hook=".git/hooks/pre-commit"
|
||||||
printf '#!/bin/sh\nset -e\nscript/precommit\n' > "$hook"
|
printf '#!/bin/sh\nset -e\nscript/precommit\n' > .git/hooks/pre-commit
|
||||||
chmod +x "$hook"
|
chmod +x .git/hooks/pre-commit
|
||||||
echo "pre-commit hook installed: runs script/precommit"
|
echo "pre-commit hook installed: runs script/precommit"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user