Skip to content

Commit 88b566d

Browse files
committed
feat: update build and dev scripts to use Turbo, add turbo.json configuration, and include .turbo in .gitignore
1 parent 877b864 commit 88b566d

4 files changed

Lines changed: 94 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ next-env.d.ts
7171
.source/
7272
apps/*/. source/
7373
apps/*/.next/docs/
74+
.turbo

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"private": true,
55
"description": "ObjectStack Protocol & Specification - Monorepo for TypeScript Interfaces, JSON Schemas, and Convention Configurations",
66
"scripts": {
7-
"build": "pnpm -r --filter !@objectstack/docs build",
8-
"dev": "pnpm -r --filter @example/app-host dev",
7+
"build": "turbo run build --filter=!@objectstack/docs",
8+
"dev": "turbo run dev --filter=@example/app-host",
99
"dev:msw": "pnpm --filter @objectstack/client-react build && pnpm -r --filter @example/app-react-crud dev",
10-
"test": "pnpm --filter @objectstack/spec test",
11-
"clean": "pnpm -r --parallel clean && rm -rf dist",
10+
"test": "turbo run test --filter=@objectstack/spec",
11+
"clean": "turbo run clean && rm -rf dist",
1212
"doctor": "pnpm --filter @objectstack/cli build && node packages/cli/bin/objectstack.js doctor",
1313
"setup": "pnpm install && pnpm --filter @objectstack/spec build",
1414
"version": "changeset version",
@@ -31,6 +31,7 @@
3131
"@types/node": "^25.1.0",
3232
"tsup": "^8.0.2",
3333
"tsx": "^4.21.0",
34+
"turbo": "^2.8.3",
3435
"typescript": "^5.3.0"
3536
},
3637
"dependencies": {

pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"tasks": {
4+
"build": {
5+
"dependsOn": ["^build"],
6+
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
7+
},
8+
"test": {
9+
"dependsOn": ["build"],
10+
"outputs": ["coverage/**"],
11+
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
12+
},
13+
"dev": {
14+
"cache": false,
15+
"persistent": true
16+
},
17+
"clean": {
18+
"cache": false
19+
},
20+
"gen:schema": {
21+
"dependsOn": ["^build"]
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)