Split from https://github.com/twentyhq/twenty/pull/4518 Part of #4766 Adds a script to auto-generate twenty-ui exports in `index.ts` files. --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
48 lines
1.4 KiB
JSON
48 lines
1.4 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": "npx ts-node --esm {projectRoot}/scripts/generateBarrels.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"eslintConfig": "{projectRoot}/.eslintrc.cjs",
|
|
"ignorePath": "{workspaceRoot}/.gitignore",
|
|
"lintFilePatterns": [
|
|
"{projectRoot}/src/**/*.{ts,tsx,json}",
|
|
"{projectRoot}/package.json"
|
|
]
|
|
},
|
|
"configurations": {
|
|
"ci": { "lintFilePatterns": ["{projectRoot}/**/*.{ts,tsx,json}"] },
|
|
"fix": { "fix": true }
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
"options": {
|
|
"jestConfig": "packages/twenty-ui/jest.config.ts"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|