Skip to content

The open alternative to Salesforce, designed for AI.

2.0 KB
Raw Blame
{
  "name": "twenty-website",
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "packages/twenty-website/src",
  "projectType": "application",
  "tags": ["scope:website"],
  "targets": {
    "dev": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "{projectRoot}",
        "command": "npx next dev --port 3002"
      }
    },
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "{projectRoot}",
        "command": "npx next build"
      }
    },
    "typecheck": {
      "executor": "nx:run-commands",
      "dependsOn": ["^build"],
      "options": {
        "cwd": "{projectRoot}",
        "command": "npx tsc -p tsconfig.json --noEmit"
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "dependsOn": ["^build"],
      "options": {
        "cwd": "{projectRoot}",
        "command": "npx jest --config=jest.config.mjs"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "inputs": [
        "default",
        "{workspaceRoot}/packages/twenty-oxlint-rules/.oxlintrc.i18n.json",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/check-unlocalized-strings.mjs",
        "{workspaceRoot}/packages/twenty-oxlint-rules/scripts/filter-unlocalized-strings.mjs"
      ],
      "options": {
        "cwd": "{projectRoot}",
        "command": "node scripts/check-conventions.mjs && npx oxlint -c .oxlintrc.json . && yarn lint:i18n:shared-ui && npx oxfmt --check ."
      },
      "configurations": {
        "fix": {
          "command": "npx oxfmt ."
        }
      },
      "dependsOn": [
        {
          "projects": ["twenty-ui"],
          "target": "build"
        }
      ]
    },
    "lingui:extract": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "{projectRoot}",
        "command": "lingui extract --overwrite --clean"
      }
    },
    "lingui:compile": {
      "executor": "nx:run-commands",
      "options": {
        "cwd": "{projectRoot}",
        "command": "lingui compile --typescript"
      }
    }
  }
}