|
| 1 | +# Gitpod workspace configuration for go-script-templates |
| 2 | +# Uses magex for build automation and development tasks |
| 3 | +# This creates a one-click development environment for contributors |
| 4 | + |
| 5 | +image: gitpod/workspace-go:latest |
| 6 | + |
| 7 | +tasks: |
| 8 | + - name: setup-and-test |
| 9 | + init: | |
| 10 | + echo "🚀 Setting up go-script-templates development environment..." |
| 11 | + echo "📦 Installing MAGE-X build tool..." |
| 12 | + go install github.com/mrz1836/mage-x/cmd/magex@latest |
| 13 | +
|
| 14 | + echo "📥 Downloading dependencies..." |
| 15 | + magex deps:download |
| 16 | +
|
| 17 | + echo "🔧 Initial build..." |
| 18 | + magex build |
| 19 | +
|
| 20 | + echo "✅ Running initial tests..." |
| 21 | + magex test |
| 22 | +
|
| 23 | + command: | |
| 24 | + echo "===============================================" |
| 25 | + echo "🎯 Welcome to go-script-templates development!" |
| 26 | + echo "===============================================" |
| 27 | + echo "" |
| 28 | + echo "🛠️ Available magex commands:" |
| 29 | + echo " magex test - Run all tests" |
| 30 | + echo " magex lint - Run linters" |
| 31 | + echo " magex format:fix - Format the code" |
| 32 | + echo " magex build - Build the project" |
| 33 | + echo " magex help - List all available commands" |
| 34 | + echo "" |
| 35 | + echo "📖 Quick start:" |
| 36 | + echo " 1. Try: magex test" |
| 37 | + echo " 2. Make your changes" |
| 38 | + echo " 3. Run: magex format:fix && magex lint && magex test" |
| 39 | + echo " 4. Commit and push your changes" |
| 40 | + echo "" |
| 41 | + echo "💡 For more help: magex help" |
| 42 | + echo "===============================================" |
| 43 | +
|
| 44 | +ports: |
| 45 | + - port: 8080 |
| 46 | + onOpen: ignore |
| 47 | + description: Application (if needed) |
| 48 | + |
| 49 | +vscode: |
| 50 | + extensions: |
| 51 | + - golang.go |
| 52 | + - github.vscode-pull-request-github |
| 53 | + - streetsidesoftware.code-spell-checker |
| 54 | + - eamodio.gitlens |
0 commit comments