Skip to content

The open alternative to Salesforce, designed for AI.

2.1 KB
Raw Blame
{
  "name": "twenty-emails",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "projectType": "library",
  "tags": ["scope:backend"],
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "cache": true,
      "inputs": ["production", "^production"],
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "cwd": "{projectRoot}",
        "commands": [
          "npx vite build",
          "tsgo -p tsconfig.lib.json --declaration --emitDeclarationOnly --outDir dist --rootDir src --composite false && npx tsc-alias -p tsconfig.lib.json --outDir dist"
        ],
        "parallel": false
      },
      "dependsOn": ["^build"]
    },
    "start": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "{projectRoot}",
        "command": "email dev -d src/emails -p 4001"
      }
    },
    "typecheck": {},
    "lint": {
      "inputs": [
        "default",
        "{projectRoot}/.oxlintrc.i18n.json",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/check-unlocalized-strings.mjs",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/filter-unlocalized-strings.mjs",
        "{workspaceRoot}/packages/twenty-oxlint-rules/.oxlintrc.i18n.json",
        "{workspaceRoot}/yarn.lock"
      ],
      "options": {
        "command": "npx oxlint -c .oxlintrc.json . && (npx oxfmt --check . || (echo 'ERROR: oxfmt formatting check failed! Fix with: npx nx lint --configuration=fix' && false)) && node ../twenty-oxlint-rules/scripts/check-unlocalized-strings.mjs . src"
      }
    },
    "fmt": {
      "options": {
        "files": "src"
      },
      "configurations": {
        "fix": {}
      }
    },
    "lingui:extract": {
      "executor": "nx:run-commands",
      "dependsOn": ["^build"],
      "options": {
        "cwd": "{projectRoot}",
        "command": "lingui extract --overwrite --clean"
      }
    },
    "lingui:compile": {
      "executor": "nx:run-commands",
      "dependsOn": ["^build"],
      "options": {
        "cwd": "{projectRoot}",
        "command": "lingui compile --typescript"
      }
    }
  }
}