Skip to content

Commit

Permalink
use turbo to run lint, typecheck, tests and build
Browse files Browse the repository at this point in the history
  • Loading branch information
sitek94 committed Nov 26, 2023
1 parent 9a7aa3f commit 1c5f5b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:nestjs": "pnpm -F nestjs... build",
"build:remix": "pnpm -F remix... build",
"build:ui": "pnpm -F ui build",
"build": "pnpm run -r build",
"build": "turbo run build",
"clean": "pnpx rimraf **/dist && pnpx rimraf **/node_modules && pnpx rimraf **/build",
"deploy:nestjs": "fly deploy --config ./apps/nestjs/fly.toml --dockerfile ./apps/nestjs/Dockerfile",
"deploy:remix": "fly deploy --config ./apps/remix/fly.toml --dockerfile ./apps/remix/Dockerfile",
Expand All @@ -17,12 +17,13 @@
"develop:ui": "pnpm -F ui develop",
"develop": "pnpm -r develop",
"format": "prettier --write .",
"lint": "turbo run lint",
"start:docs": "pnpm -F docs start",
"start:nestjs": "pnpm -F nestjs start",
"start:remix": "pnpm -F remix start",
"start": "pnpm -r start",
"test": "pnpm -r test",
"test:e2e": "pnpm -r test:e2e",
"test": "turbo run test",
"test:e2e": "turbo run test:e2e",
"test:nestjs": "pnpm -F nestjs test",
"typecheck": "turbo run typecheck"
},
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
// either a `.tsx` or `.ts` file has changed in `src` or `test` folders.
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
},
"test:e2e": {
"dependsOn": ["build"],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
},
"lint": {
"dependsOn": ["^build"]
},
Expand Down

0 comments on commit 1c5f5b9

Please sign in to comment.