feat(init): initialisation du projet Angular 19 PWA — v0.0.1
- Angular 19 avec routing, SCSS, PWA (Service Worker + manifest) - Couverture de tests ≥ 90% configurée dans karma.conf.js - Docker pour tests isolés (Dockerfile.test + docker-compose.test.yml) - Image de production multi-stage (Dockerfile + nginx.conf) - Hook pre-commit bloquant si tests échouent ou couverture < 90% - CI Gitea (.gitea/workflows/ci.yml) : tests + build/push image Docker - Versioning SemVer depuis 0.0.1 avec scripts npm version:* - Feature flags par environnement (src/environments/) - Documentation fonctionnelle (docs/functional/) et technique (docs/technical/) - CLAUDE.md avec toutes les règles de développement Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(git -C "$(dirname "$0")" rev-parse --show-toplevel)"
|
||||
HOOKS_SRC="$REPO_ROOT/Olhar-PWA/.githooks"
|
||||
GIT_HOOKS_DIR="$REPO_ROOT/.git/hooks"
|
||||
|
||||
echo "📎 Installation des hooks git depuis $HOOKS_SRC..."
|
||||
|
||||
for hook in "$HOOKS_SRC"/*; do
|
||||
hook_name="$(basename "$hook")"
|
||||
cp "$hook" "$GIT_HOOKS_DIR/$hook_name"
|
||||
chmod +x "$GIT_HOOKS_DIR/$hook_name"
|
||||
echo " ✔ $hook_name installé"
|
||||
done
|
||||
|
||||
echo "✅ Hooks installés dans $GIT_HOOKS_DIR"
|
||||
Reference in New Issue
Block a user