chore: add incremental typecheck to twenty-ui (#4947)

Part of #4766
This commit is contained in:
Thaïs 2024-04-15 12:15:29 +02:00 committed by GitHub
parent 96bd5f1803
commit 56b7c84116
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 14 additions and 7 deletions

View File

@ -148,6 +148,10 @@ jobs:
path: node_modules
key: root-node_modules-${{hashFiles('yarn.lock')}}
restore-keys: root-node_modules-
- name: UI / Run linter
run: yarn nx lint twenty-ui
- name: UI / Run Typescript Check
run: yarn nx typecheck twenty-ui
- name: Front / Run linter
run: yarn nx lint:ci twenty-front
- name: Front / Run Typescript Check

1
.gitignore vendored
View File

@ -23,3 +23,4 @@
coverage
dist
storybook-static
*.tsbuildinfo

View File

@ -31,7 +31,6 @@
]
},
"configurations": {
"ci": { "lintFilePatterns": ["{projectRoot}/**/*.{ts,tsx,json}"] },
"fix": { "fix": true }
}
},
@ -42,6 +41,13 @@
"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": {

View File

@ -8,6 +8,7 @@
"esModuleInterop": true,
"noEmit": true,
"types": ["node"],
"outDir": "../../dist/out-tsc",
"paths": {
"@ui/*": ["packages/twenty-ui/src/*"]
}

View File

@ -1,8 +1,5 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc"
},
"exclude": [
"**/*.spec.ts",
"**/*.spec.tsx",

View File

@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},

View File

@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDecoratorMetadata": true,
"outDir": ""
"emitDecoratorMetadata": true
},
"include": [
".storybook/*.ts",