diff --git a/apps/api/package.json b/apps/api/package.json index af32e87f7..1fca6078c 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -4,7 +4,8 @@ "description": "Legacy API for Buster. This package.json is just used to make the build and dev work.", "type": "module", "scripts": { - "dev": "make fast-no-migrations" + "dev": "make fast-no-migrations", + "dev:fast": "make fast-no-migrations" }, "dependencies": { "@buster/database": "workspace:*" diff --git a/apps/api/turbo.json b/apps/api/turbo.json index ff9c7a825..6d5887e39 100644 --- a/apps/api/turbo.json +++ b/apps/api/turbo.json @@ -6,6 +6,11 @@ "dependsOn": ["@buster/database#start"], "with": [], "outputs": [] + }, + "dev:fast": { + "dependsOn": ["@buster/database#start"], + "with": [], + "outputs": [] } } } diff --git a/apps/electric-server/package.json b/apps/electric-server/package.json index 227f6bdcd..24f47f0c0 100644 --- a/apps/electric-server/package.json +++ b/apps/electric-server/package.json @@ -5,6 +5,7 @@ "scripts": { "start": "bun run scripts/start.ts", "dev": "bun run scripts/start.ts", + "dev:fast": "bun run scripts/start.ts", "stop": "docker compose stop" }, "dependencies": { diff --git a/apps/electric-server/turbo.json b/apps/electric-server/turbo.json index 1f129f0a6..a078a6fb8 100644 --- a/apps/electric-server/turbo.json +++ b/apps/electric-server/turbo.json @@ -9,6 +9,10 @@ "dev": { "dependsOn": ["@buster/database#start"], "outputs": [] + }, + "dev:fast": { + "dependsOn": ["@buster/database#start"], + "outputs": [] } } } diff --git a/apps/server/package.json b/apps/server/package.json index a6cea5adc..a398b5c7e 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -11,6 +11,7 @@ "build": "tsup", "build:dry-run": "tsup", "dev": "bun --watch src/index.ts", + "dev:fast": "bun --watch src/index.ts", "dev:build": "tsup --watch", "lint": "biome check --write", "start": "bun dist/index.js", diff --git a/apps/server/turbo.json b/apps/server/turbo.json index 131cdff88..dba27673a 100644 --- a/apps/server/turbo.json +++ b/apps/server/turbo.json @@ -20,6 +20,21 @@ "@buster-app/api-legacy#dev", "@buster/server-utils#dev" ] + }, + "dev:fast": { + "cache": false, + "persistent": true, + "dependsOn": ["@buster/database#start", "^build"], + "with": [ + "@buster/ai#dev:fast", + "@buster/server-shared#dev:fast", + "@buster/access-controls#dev:fast", + "@buster/data-source#dev", + "@buster-app/trigger#dev:fast", + "@buster-app/electric-server#dev:fast", + "@buster-app/api-legacy#dev:fast", + "@buster/server-utils#dev:fast" + ] } } } diff --git a/apps/trigger/package.json b/apps/trigger/package.json index 3e0fdf424..0250bc83b 100644 --- a/apps/trigger/package.json +++ b/apps/trigger/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "echo 'y' | npx trigger.dev@v4-beta dev", + "dev:fast": "echo 'y' | npx trigger.dev@v4-beta dev", "deploy": "echo 'y' | npx trigger.dev@v4-beta deploy", "prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts", "build": "echo 'No build step required but we run it to make sure env is loaded' && tsc --noEmit", diff --git a/apps/trigger/turbo.json b/apps/trigger/turbo.json index ec39fac59..9d1704167 100644 --- a/apps/trigger/turbo.json +++ b/apps/trigger/turbo.json @@ -7,6 +7,12 @@ "persistent": true, "dependsOn": ["^build"], "with": ["@buster/database#dev"] + }, + "dev:fast": { + "cache": false, + "persistent": true, + "dependsOn": ["^build"], + "with": ["@buster/database#dev"] } } } diff --git a/apps/web/package.json b/apps/web/package.json index 42292dda0..321568da9 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "next dev --turbo", + "dev:fast": "make start-fast", "build": "next build", "start": "next start", "lint": "next lint && npx prettier --write . '!src/components/ui/icons/**' --log-level error", diff --git a/apps/web/turbo.json b/apps/web/turbo.json index 596552892..5576b46fd 100644 --- a/apps/web/turbo.json +++ b/apps/web/turbo.json @@ -37,6 +37,18 @@ "tsconfig.json", "package.json" ] + }, + "dev:fast": { + "dependsOn": ["@buster/server-shared#build"], + "inputs": [ + "src/**/*", + "!src/**/*.test.{ts,tsx,js,jsx}", + "!src/**/*.spec.{ts,tsx,js,jsx}", + "next.config.mjs", + "tailwind.config.ts", + "tsconfig.json", + "package.json" + ] } } } diff --git a/package.json b/package.json index 8be5e60b4..9c64b44f5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "db:stop": "pnpm --filter @buster/database run db:stop", "db:studio": "pnpm --filter @buster/database run db:studio", "dev": "turbo dev", + "dev:fast": "turbo run dev:fast", "dev:no-web": "turbo dev --filter \"!@buster-app/web\"", "dev:server": "turbo run dev --filter \"@buster-app/server\"", "dev:server:reset": "pnpm run dev:db-init && turbo run dev --filter \"@buster-app/server\"", diff --git a/packages/access-controls/package.json b/packages/access-controls/package.json index d5a90c85c..fe501a97b 100644 --- a/packages/access-controls/package.json +++ b/packages/access-controls/package.json @@ -19,6 +19,7 @@ "build:commonjs": "tsc --module commonjs --moduleResolution node", "build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check --write", "test": "vitest run", "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests", diff --git a/packages/ai/package.json b/packages/ai/package.json index 3cedb2eb3..8a3843c1a 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -19,6 +19,7 @@ "build:dry-run": "tsc", "typecheck": "tsc --noEmit", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "dev:mastra": "mastra dev --dir src", "lint": "biome check --write", "test": "vitest run", diff --git a/packages/env-utils/package.json b/packages/env-utils/package.json index ee113221f..2ef6519a0 100644 --- a/packages/env-utils/package.json +++ b/packages/env-utils/package.json @@ -14,6 +14,7 @@ "build": "tsc", "typecheck": "tsc --noEmit", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check" }, "dependencies": { diff --git a/packages/sandbox/package.json b/packages/sandbox/package.json index 8a6b4058d..70a8ff91a 100644 --- a/packages/sandbox/package.json +++ b/packages/sandbox/package.json @@ -20,6 +20,7 @@ "build:dry-run": "tsc", "typecheck": "tsc --noEmit", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check", "test": "dotenv -e .env -- vitest run", "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests", diff --git a/packages/server-shared/package.json b/packages/server-shared/package.json index daf538a77..1c36c14e7 100644 --- a/packages/server-shared/package.json +++ b/packages/server-shared/package.json @@ -75,6 +75,7 @@ "build": "tsc --build", "build:dry-run": "tsc --build", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check --write", "test": "vitest run", "test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts", diff --git a/packages/server-utils/package.json b/packages/server-utils/package.json index 16b63bc72..46393ce09 100644 --- a/packages/server-utils/package.json +++ b/packages/server-utils/package.json @@ -17,6 +17,7 @@ "build:dry-run": "tsc", "typecheck": "tsc --noEmit", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check --write", "test": "vitest run", "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests", diff --git a/packages/slack/package.json b/packages/slack/package.json index f936f419d..48ea86278 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -20,6 +20,7 @@ "build:dry-run": "tsc", "typecheck": "tsc --noEmit", "dev": "tsc --watch", + "dev:fast": "tsc --watch", "lint": "biome check --write", "test": "vitest run", "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests", diff --git a/turbo.json b/turbo.json index cb75e38b8..96b319659 100644 --- a/turbo.json +++ b/turbo.json @@ -17,6 +17,11 @@ "persistent": true, "dependsOn": ["@buster/database#dev"] }, + "dev:fast": { + "cache": false, + "persistent": true, + "dependsOn": ["@buster/database#dev"] + }, "lint": { "dependsOn": ["^lint"] },