modif scripts

This commit is contained in:
MaksTinyWorkshop
2026-03-11 11:13:06 +01:00
parent c74f865a4b
commit e1edaa97bf
635 changed files with 92319 additions and 9 deletions

View File

@@ -138,6 +138,7 @@ EOF
}
create_gitignore() {
local with_bmad="${1:-false}"
cat <<'EOF' > "$PROJECT_PATH/.gitignore"
# dependencies
node_modules/
@@ -171,18 +172,41 @@ out/
.tmp/
tmp/
# AI tools
.claude/
.codex/
# Agent compatibility file (symlink to CLAUDE.md)
AGENTS.md
EOF
if [ "$with_bmad" = "false" ]; then
cat <<'EOF' >> "$PROJECT_PATH/.gitignore"
# AI tools
.claude/
.codex/
EOF
else
cat <<'EOF' >> "$PROJECT_PATH/.gitignore"
# AI tools (BMAD : .claude et .agents sont des symlinks centralisés, non versionnés)
.claude
.agents
.codex/
# BMAD artefacts locaux (versionnés séparément si besoin)
_bmad-output/
EOF
fi
}
choose_target_base
prompt_project_metadata
printf "Initialiser BMAD ? [o/N] : "
read -r bmad_choice
USE_BMAD="false"
if [[ "$bmad_choice" =~ ^[oO]$ ]]; then
USE_BMAD="true"
fi
if [ ! -d "$TARGET_BASE" ]; then
echo "Le dossier cible n'existe pas : $TARGET_BASE"
exit 1
@@ -200,11 +224,14 @@ cd "$PROJECT_PATH"
git init
# mémoire agents
gen-claude "$PROJECT_NAME"
create_readme
create_gitignore
create_gitignore "$USE_BMAD"
if [ "$USE_BMAD" = "true" ]; then
"$SCRIPT_DIR/bmad-init-project.sh" "$PROJECT_PATH"
else
gen-claude "$PROJECT_NAME"
fi
register_project_in_conf