{ "name": "backend", "$schema": "../../node_modules/nx/schemas/project-schema.json", "sourceRoot": "apps/backend/src", "projectType": "application", "tags": ["scope:backend", "type:app"], "targets": { "serve": { "executor": "nx:run-commands", "options": { "command": "./mvnw spring-boot:run -Dspring-boot.run.profiles=dev -Dspring-boot.run.jvmArguments=\"-Xmx512m\"", "cwd": "{projectRoot}" } }, "build": { "executor": "nx:run-commands", "cache": true, "inputs": [ "{projectRoot}/src/**/*", "{projectRoot}/pom.xml" ], "outputs": ["{projectRoot}/target"], "options": { "command": "./mvnw package -DskipTests -q", "cwd": "{projectRoot}" } }, "test": { "executor": "nx:run-commands", "cache": true, "inputs": [ "{projectRoot}/src/**/*", "{projectRoot}/pom.xml" ], "outputs": ["{projectRoot}/target/surefire-reports"], "options": { "command": "./mvnw test", "cwd": "{projectRoot}" } }, "lint": { "executor": "nx:run-commands", "options": { "command": "./mvnw checkstyle:check", "cwd": "{projectRoot}" } }, "docker-build": { "executor": "nx:run-commands", "dependsOn": ["build"], "options": { "command": "docker build -t citygame-backend -f apps/backend/Dockerfile .", "cwd": "{workspaceRoot}" } } } }