Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

1.3 KB
Raw Blame
{
  "name": "api",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "apps/api/src",
  "projectType": "application",
  "prefix": "api",
  "generators": {},
  "targets": {
    "build": {
      "configurations": {
        "production": {}
      },
      "outputs": ["{workspaceRoot}/dist/apps/api"]
    },
    "copy-assets": {
      "executor": "nx:run-commands",
      "options": {
        "commands": [
          {
            "command": "shx rm -rf dist/apps/api"
          },
          {
            "command": "shx mkdir -p dist/apps/api/assets/locales"
          },
          {
            "command": "shx cp -r apps/api/src/assets/* dist/apps/api/assets"
          },
          {
            "command": "shx cp -r apps/client/src/locales/* dist/apps/api/assets/locales"
          }
        ],
        "parallel": false
      }
    },
    "serve": {
      "executor": "@nx/js:node",
      "options": {
        "buildTarget": "api:build"
      }
    },
    "lint": {
      "executor": "@nx/eslint:lint",
      "options": {
        "lintFilePatterns": ["apps/api/**/*.ts"]
      }
    },
    "test": {
      "executor": "@nx/jest:jest",
      "options": {
        "jestConfig": "apps/api/jest.config.ts"
      },
      "outputs": ["{workspaceRoot}/coverage/apps/api"]
    }
  },
  "tags": []
}