feat: generate .gitignore for Mendix projects during init#163
Merged
ako merged 1 commit intomendixlabs:mainfrom Apr 10, 2026
Merged
feat: generate .gitignore for Mendix projects during init#163ako merged 1 commit intomendixlabs:mainfrom
ako merged 1 commit intomendixlabs:mainfrom
Conversation
mxcli init now creates a .gitignore with standard Mendix project ignore patterns when one doesn't already exist. Covers build artifacts, IDE files, MPR locks, and mxcli-specific files. Closes mendixlabs#118
AI Code ReviewWhat Looks Good
RecommendationApprove - The PR is well-scoped, implements a useful feature correctly, follows project conventions, and includes adequate testing. No changes are needed. Automated review via OpenRouter (Nemotron Super 120B) — workflow source |
ako
approved these changes
Apr 10, 2026
Collaborator
ako
left a comment
There was a problem hiding this comment.
Small, focused, well-scoped. The .gitignore content correctly covers Mendix-specific patterns:
- Build artifacts (
deployment/,releases/,packages/) - MPR locks/backups (
*.mpr.lock,*.mpr.bak) - MPR v2 journal files (
mprcontents/mprjournal*) - The
!/javascriptsource/**/node_modules/negation correctly preserves widget node_modules - mxcli artifacts (
mxcli,mxcli.exe,.mxcli/,.claude/settings.local.json)
Logic is correct — checks os.IsNotExist and skips if present.
Minor cosmetic: the "What was created" output unconditionally lists .gitignore even when skipped. Worth tracking whether it was actually created, but not blocking.
LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mxcli initnow creates a.gitignorewith standard Mendix project ignore patterns when one doesn't already existmxcli,.mxcli/,.claude/settings.local.json)initskips if.gitignorealready exists (no overwrite)Closes #118
Test plan
mxcli initin empty project creates.gitignorewith all expected patternsmxcli initdoes not overwrite existing.gitignoremake buildpasses