mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-13 07:05:55 +03:00
56b7c84116
Part of #4766
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"name": "twenty-ui",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/twenty-ui/src",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"dependsOn": ["^build", "generateBarrels"]
|
|
},
|
|
"generateBarrels": {
|
|
"executor": "nx:run-commands",
|
|
"cache": true,
|
|
"inputs": [
|
|
"{projectRoot}/src/**/*.{ts,tsx}",
|
|
"!{projectRoot}/src/**/*.(spec|test).{ts,tsx}",
|
|
"!{projectRoot}/src/**/*.stories.{ts,tsx}"
|
|
],
|
|
"outputs": ["{projectRoot}/src/index.ts", "{projectRoot}/src/*/index.ts"],
|
|
"options": {
|
|
"command": "node {projectRoot}/scripts/generateBarrels.js"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"eslintConfig": "{projectRoot}/.eslintrc.cjs",
|
|
"ignorePath": "{workspaceRoot}/.gitignore",
|
|
"lintFilePatterns": [
|
|
"{projectRoot}/src/**/*.{ts,tsx,json}",
|
|
"{projectRoot}/package.json"
|
|
]
|
|
},
|
|
"configurations": {
|
|
"fix": { "fix": true }
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{projectRoot}/coverage"],
|
|
"options": {
|
|
"jestConfig": "{projectRoot}/jest.config.ts"
|
|
}
|
|
},
|
|
"typecheck": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"command": "tsc -b tsconfig.json --incremental"
|
|
}
|
|
},
|
|
"storybook:dev": {
|
|
"executor": "@nx/storybook:storybook",
|
|
"options": {
|
|
"port": 6007,
|
|
"configDir": "{projectRoot}/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": { "quiet": true }
|
|
}
|
|
},
|
|
"storybook:build": {
|
|
"executor": "@nx/storybook:build",
|
|
"outputs": ["{options.outputDir}"],
|
|
"options": {
|
|
"outputDir": "{projectRoot}/storybook-static",
|
|
"configDir": "{projectRoot}/.storybook"
|
|
},
|
|
"configurations": {
|
|
"ci": {
|
|
"quiet": true
|
|
}
|
|
}
|
|
},
|
|
"storybook:test": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "test-storybook -c {projectRoot}/.storybook --url=http://localhost:6007"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|