turbo fast web build

This commit is contained in:
dal 2025-08-11 11:33:18 -06:00
parent 030000acf6
commit b96cb39b78
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
19 changed files with 61 additions and 1 deletions

View File

@ -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:*"

View File

@ -6,6 +6,11 @@
"dependsOn": ["@buster/database#start"],
"with": [],
"outputs": []
},
"dev:fast": {
"dependsOn": ["@buster/database#start"],
"with": [],
"outputs": []
}
}
}

View File

@ -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": {

View File

@ -9,6 +9,10 @@
"dev": {
"dependsOn": ["@buster/database#start"],
"outputs": []
},
"dev:fast": {
"dependsOn": ["@buster/database#start"],
"outputs": []
}
}
}

View File

@ -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",

View File

@ -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"
]
}
}
}

View File

@ -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",

View File

@ -7,6 +7,12 @@
"persistent": true,
"dependsOn": ["^build"],
"with": ["@buster/database#dev"]
},
"dev:fast": {
"cache": false,
"persistent": true,
"dependsOn": ["^build"],
"with": ["@buster/database#dev"]
}
}
}

View File

@ -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",

View File

@ -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"
]
}
}
}

View File

@ -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\"",

View File

@ -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",

View File

@ -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",

View File

@ -14,6 +14,7 @@
"build": "tsc",
"typecheck": "tsc --noEmit",
"dev": "tsc --watch",
"dev:fast": "tsc --watch",
"lint": "biome check"
},
"dependencies": {

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -17,6 +17,11 @@
"persistent": true,
"dependsOn": ["@buster/database#dev"]
},
"dev:fast": {
"cache": false,
"persistent": true,
"dependsOn": ["@buster/database#dev"]
},
"lint": {
"dependsOn": ["^lint"]
},