easyai-ai-gateway/apps/api/project.json
wangbo 6323e70e49 Initial project scaffold
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 14:36:35 +08:00

40 lines
950 B
JSON

{
"name": "api",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"root": "apps/api",
"sourceRoot": "apps/api",
"projectType": "application",
"targets": {
"dev": {
"executor": "nx:run-commands",
"options": {
"cwd": "apps/api",
"command": "go run ./cmd/gateway"
}
},
"migrate": {
"executor": "nx:run-commands",
"options": {
"cwd": "apps/api",
"command": "go run ./cmd/migrate"
}
},
"test": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/apps/api"],
"options": {
"cwd": "apps/api",
"command": "go test ./..."
}
},
"build": {
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/dist/apps/api"],
"options": {
"cwd": "apps/api",
"command": "go build -o ../../dist/apps/api/easyai-ai-gateway ./cmd/gateway"
}
}
}
}