The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
{
"name": "twenty-ui",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/twenty-ui/src",
"projectType": "library",
"tags": ["scope:shared"],
"targets": {
"build": { "dependsOn": ["^build"], "outputs": ["{projectRoot}/dist"] },
"check:ownership": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*",
"{projectRoot}/docs/module-ownership.json",
"{projectRoot}/docs/public-exports.json",
"{projectRoot}/scripts/**/*",
"{projectRoot}/package.json",
"{projectRoot}/project.json",
"{workspaceRoot}/package.json",
"{workspaceRoot}/yarn.lock"
],
"options": {
"command": "tsx {projectRoot}/scripts/generateBarrels.ts --check && tsx {projectRoot}/scripts/checkModuleOwnership.ts"
}
},
"generateTokens": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"command": "tsx {projectRoot}/scripts/generateThemeTokens.ts"
}
},
"generate:check": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"command": "tsx {projectRoot}/scripts/generateThemeTokens.ts --check"
}
},
"generateBarrels": {
"executor": "nx:run-commands",
"cache": true,
"inputs": ["production", "{projectRoot}/scripts/generateBarrels.ts"],
"outputs": [
"{projectRoot}/src/index.ts",
"{projectRoot}/src/individual-entry.ts",
"{projectRoot}/src/**/*/index.ts",
"{projectRoot}/package.json"
],
"options": { "command": "tsx {projectRoot}/scripts/generateBarrels.ts" }
},
"generateIconDictionary": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/scripts/generateIconDictionary.ts",
"{projectRoot}/src/icon/constants/TwentyIconDictionary.ts",
"{projectRoot}/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts"
],
"outputs": ["{projectRoot}/src/icon/icon-dictionary.md"],
"options": {
"command": "tsx {projectRoot}/scripts/generateIconDictionary.ts"
}
},
"checkIconDictionary": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/scripts/generateIconDictionary.ts",
"{projectRoot}/src/icon/constants/TwentyIconDictionary.ts",
"{projectRoot}/src/icon/internal/generateTwentyIconDictionaryMarkdown.ts",
"{projectRoot}/src/icon/icon-dictionary.md"
],
"options": {
"command": "tsx {projectRoot}/scripts/generateIconDictionary.ts --check"
}
},
"build:individual": {
"executor": "nx:run-commands",
"cache": true,
"dependsOn": ["build"],
"inputs": ["production", "^production"],
"outputs": ["{projectRoot}/dist/individual"],
"options": {
"cwd": "{projectRoot}",
"command": "npx vite build -c vite.config.individual.ts"
}
},
"size": {
"executor": "nx:run-commands",
"cache": true,
"dependsOn": ["build"],
"inputs": ["{projectRoot}/dist", "{projectRoot}/.size-limit.json"],
"options": { "cwd": "{projectRoot}", "command": "npx size-limit" },
"configurations": { "why": { "command": "npx size-limit --why" } }
},
"pack-size": {
"executor": "nx:run-commands",
"cache": true,
"dependsOn": ["build"],
"inputs": [
"{projectRoot}/dist",
"{projectRoot}/package.json",
"{projectRoot}/scripts/checkPackSize.ts"
],
"options": {
"cwd": "{projectRoot}",
"command": "tsx scripts/checkPackSize.ts"
}
},
"test:package": {
"executor": "nx:run-commands",
"cache": true,
"dependsOn": ["build"],
"inputs": ["production"],
"options": {
"cwd": "{projectRoot}",
"command": "tsx scripts/checkOptionalDependencies.ts && tsx scripts/checkThemeExports.ts"
}
},
"clean": {
"executor": "nx:run-commands",
"options": { "command": "rimraf {projectRoot}/dist" }
},
"set-local-version": {},
"lint": {
"dependsOn": [
"^build",
"twenty-oxlint-rules:build",
"lint:unlocalized-strings"
]
},
"lint:unlocalized-strings": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/src/**/*.{ts,tsx}",
"{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": {
"cwd": "{projectRoot}",
"command": "node ../twenty-oxlint-rules/scripts/check-unlocalized-strings.mjs . src"
}
},
"fmt": { "options": { "files": "src" }, "configurations": { "fix": {} } },
"test": {
"dependsOn": ["check:ownership", "test:exports"],
"executor": "nx:run-commands",
"cache": true,
"inputs": ["default", "^default"],
"options": {
"cwd": "{projectRoot}",
"command": "npx vitest run --project unit"
},
"configurations": { "watch": { "command": "npx vitest --project unit" } }
},
"typecheck": {},
"knip": {},
"storybook:build": {
"configurations": {
"test": {},
"docs": {
"command": "NODE_OPTIONS='--max-old-space-size=10240' storybook build --disable-telemetry"
}
}
},
"storybook:index": {
"executor": "nx:run-commands",
"cache": false,
"options": {
"cwd": "{projectRoot}",
"command": "mkdir -p ../../.cache/ui-docs && storybook index --output-file ../../.cache/ui-docs/storybook-index.json --disable-telemetry"
}
},
"storybook:serve:dev": { "options": { "port": 6008 } },
"storybook:serve:static": {
"options": { "buildTarget": "twenty-ui:storybook:build", "port": 6008 },
"configurations": { "test": {} }
},
"storybook:test": {
"options": {
"command": "STORYBOOK_COVERAGE=true vitest run --coverage --shard={args.shard} --project storybook --project reduced-motion"
}
},
"storybook:test:no-coverage": {
"options": {
"command": "vitest run --shard={args.shard} --project storybook --project reduced-motion"
}
},
"storybook:visual-diff": {
"executor": "nx:run-commands",
"dependsOn": ["storybook:build"],
"options": {
"cwd": "{projectRoot}",
"command": "bash scripts/visual-diff.sh"
}
},
"storybook:coverage": {},
"test:exports": {
"executor": "nx:run-commands",
"cache": true,
"inputs": [
"{projectRoot}/scripts/**/*",
"{projectRoot}/src/utilities/utils/isDefined.ts",
"{workspaceRoot}/package.json",
"{workspaceRoot}/yarn.lock"
],
"options": {
"command": "node --import tsx --test {projectRoot}/scripts/__tests__/*.test.ts"
}
}
}
}