mirror of
https://github.com/MaksTinyWorkshop/_Assistant_Lead_Tech
synced 2026-04-06 21:41:42 +02:00
modif scripts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user