- Add GoModule struct with Module and Version fields
- Parse go.mod file to extract module name and Go version
- Expose GoModule in template context as {{.GoModule}}
- Update asset templates to use {{.GoModule}} instead of hardcoded values
- Add gitignore pattern for testdata directories (keep only plugin.json files)
- All templates now have access to both manifest and Go module information
Templates can now use:
- {{.GoModule.Module}} for module name
- {{.GoModule.Version}} for Go version
- {{if .GoModule}}...{{end}} for conditional logic
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
384 B
Text
38 lines
384 B
Text
# Build outputs
|
|
dist/
|
|
/pluginctl
|
|
|
|
# Test outputs
|
|
coverage.out
|
|
coverage.html
|
|
|
|
# Go build cache
|
|
.cache/
|
|
|
|
# IDE files
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Temporary files
|
|
*.tmp
|
|
*.temp
|
|
|
|
# Log files
|
|
*.log
|
|
|
|
# Local environment files
|
|
.env
|
|
.env.local
|
|
.claude
|
|
|
|
# Ignore all files in testdata except plugin.json
|
|
testdata/**/*
|
|
!testdata/**/
|
|
!testdata/**/plugin.json
|