[project]
name = "example-app"
type = "webapp"
version = "1.0.0"
description = "Example application demonstrating ggen lifecycle"
[lifecycle.init]
description = "Initialize project structure"
commands = [
"echo '๐ฆ Initializing project...'",
"mkdir -p src tests docs",
"echo 'console.log(\"Hello, ggen!\");' > src/index.js",
]
[lifecycle.setup]
description = "Install dependencies"
command = "echo '๐ฅ Dependencies would be installed here (npm install)'"
[lifecycle.dev]
description = "Start development server"
command = "echo '๐ Development server would start here (npm run dev)'"
watch = true
port = 3000
[lifecycle.build]
description = "Build for production"
commands = [
"echo '๐จ Building project...'",
"echo 'Build complete!'",
]
outputs = ["dist/"]
cache = true
[lifecycle.test]
description = "Run test suite"
command = "echo '๐งช Running tests... (npm test)'"
[lifecycle.lint]
description = "Lint code"
command = "echo '๐ Linting code... (npm run lint)'"
[lifecycle.clean]
description = "Clean build artifacts"
command = "echo '๐งน Cleaning build artifacts...'"
[hooks]
before_all = []
after_all = []
before_build = ["test", "lint"]
after_build = []
before_test = []
after_test = []