From 1c5f5b9b662db706930005d217a119db61779e01 Mon Sep 17 00:00:00 2001 From: Maciek Sitkowski Date: Sun, 26 Nov 2023 20:34:48 +0100 Subject: [PATCH] use turbo to run lint, typecheck, tests and build --- package.json | 7 ++++--- turbo.json | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 08c1d64..4e32a85 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/turbo.json b/turbo.json index 6ef26a5..6fcfb3f 100644 --- a/turbo.json +++ b/turbo.json @@ -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"] },