Skip to content

Commit

Permalink
chore: add incremental typecheck to twenty-ui (twentyhq#4947)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaisguigon authored Apr 15, 2024
1 parent 05a806f commit 3f66639
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
coverage
dist
storybook-static
*.tsbuildinfo
8 changes: 7 additions & 1 deletion packages/twenty-ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
]
},
"configurations": {
"ci": { "lintFilePatterns": ["{projectRoot}/**/*.{ts,tsx,json}"] },
"fix": { "fix": true }
}
},
Expand All @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions packages/twenty-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"esModuleInterop": true,
"noEmit": true,
"types": ["node"],
"outDir": "../../dist/out-tsc",
"paths": {
"@ui/*": ["packages/twenty-ui/src/*"]
}
Expand Down
3 changes: 0 additions & 3 deletions packages/twenty-ui/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc"
},
"exclude": [
"**/*.spec.ts",
"**/*.spec.tsx",
Expand Down
1 change: 0 additions & 1 deletion packages/twenty-ui/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
Expand Down
3 changes: 1 addition & 2 deletions packages/twenty-ui/tsconfig.storybook.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDecoratorMetadata": true,
"outDir": ""
"emitDecoratorMetadata": true
},
"include": [
".storybook/*.ts",
Expand Down

0 comments on commit 3f66639

Please sign in to comment.