{ "name": "twenty-cli", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "tags": ["scope:cli"], "targets": { "after-build": { "executor": "nx:run-commands", "cache": true, "options": { "cwd": "packages/twenty-cli", "commands": ["rimraf dist", "tsc --project tsconfig.lib.json"] }, "dependsOn": ["^after-build"] }, "build": { "executor": "nx:run-commands", "cache": true, "options": { "cwd": "packages/twenty-cli", "commands": [ "cp -R src/constants/base-application-project dist/constants", "cp -R src/constants/schemas dist/constants" ] }, "dependsOn": ["after-build"] }, "dev": { "executor": "nx:run-commands", "dependsOn": ["build"], "options": { "cwd": "packages/twenty-cli", "command": "tsx src/cli.ts" } }, "start": { "executor": "nx:run-commands", "dependsOn": ["build"], "options": { "cwd": "packages/twenty-cli", "command": "node dist/cli.js" } }, "typecheck": { "executor": "nx:run-commands", "options": { "cwd": "packages/twenty-cli", "command": "tsc --noEmit --project tsconfig.lib.json" } }, "lint": { "options": { "lintFilePatterns": ["{projectRoot}/src/**/*.{ts,json}"], "maxWarnings": 0 }, "configurations": { "ci": { "lintFilePatterns": ["{projectRoot}/src/**/*.{ts,json}"], "maxWarnings": 0 }, "fix": {} } }, "test": { "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { "jestConfig": "{projectRoot}/jest.config.mjs" }, "configurations": { "ci": { "ci": true, "coverage": true, "watchAll": false } } }, "test:e2e": { "executor": "nx:run-commands", "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "options": { "cwd": "packages/twenty-cli", "commands": [ "npx wait-on http://localhost:3000/healthz --timeout 600000 --interval 1000 --log && NODE_ENV=test npx jest --config ./jest.e2e.config.ts" ] }, "parallel": false, "dependsOn": [ { "target": "database:reset", "projects": "twenty-server" }, { "target": "start:ci-if-needed", "projects": "twenty-server" } ] } } }