Skip to content

Commit 1155371

Browse files
feat
1 parent c10010e commit 1155371

File tree

14 files changed

+153
-20
lines changed

14 files changed

+153
-20
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/yarn,node
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=yarn,node
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,yarn,turbo
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,yarn,turbo
33

44
### Node ###
55
# Logs
@@ -141,6 +141,10 @@ dist
141141
# SvelteKit build / generate output
142142
.svelte-kit
143143

144+
### Turbo ###
145+
# Turborepo task cache
146+
.turbo
147+
144148
### yarn ###
145149
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
146150

@@ -158,7 +162,7 @@ dist
158162
# and uncomment the following lines
159163
.pnp.*
160164

161-
# End of https://www.toptal.com/developers/gitignore/api/yarn,node
165+
# End of https://www.toptal.com/developers/gitignore/api/node,yarn,turbo
162166

163167
.sourcebot
164168
/bin

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,34 @@ clean:
2020
rm -rf \
2121
bin \
2222
node_modules \
23+
.turbo \
24+
packages/web/.turbo \
2325
packages/web/node_modules \
2426
packages/web/.next \
27+
packages/backend/.turbo \
2528
packages/backend/dist \
2629
packages/backend/node_modules \
30+
packages/db/.turbo \
2731
packages/db/node_modules \
2832
packages/db/dist \
33+
packages/schemas/.turbo \
2934
packages/schemas/node_modules \
3035
packages/schemas/dist \
36+
packages/crypto/.turbo \
3137
packages/crypto/node_modules \
3238
packages/crypto/dist \
3339
packages/error/node_modules \
3440
packages/error/dist \
41+
packages/mcp/.turbo \
3542
packages/mcp/node_modules \
3643
packages/mcp/dist \
44+
packages/shared/.turbo \
3745
packages/shared/node_modules \
3846
packages/shared/dist \
47+
packages/zoekt/.turbo \
48+
packages/zoekt/node_modules \
49+
packages/zoekt/dist \
50+
packages/zoekt/bin \
3951
.sourcebot
4052

4153
soft-reset:

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
"packages/*"
55
],
66
"scripts": {
7-
"build": "cross-env SKIP_ENV_VALIDATION=1 yarn workspaces foreach -A run build",
7+
"build": "turbo build",
88
"test": "yarn workspaces foreach -A run test",
9-
"dev": "yarn dev:prisma:migrate:dev && npm-run-all --print-label --parallel dev:zoekt dev:backend dev:web watch:mcp watch:schemas",
10-
"with-env": "cross-env PATH=\"$PWD/bin:$PATH\" dotenv -e .env.development -c --",
11-
"dev:zoekt": "yarn with-env zoekt-webserver -index .sourcebot/index -rpc",
12-
"dev:backend": "yarn with-env yarn workspace @sourcebot/backend dev:watch",
13-
"dev:web": "yarn with-env yarn workspace @sourcebot/web dev",
14-
"watch:mcp": "yarn workspace @sourcebot/mcp build:watch",
15-
"watch:schemas": "yarn workspace @sourcebot/schemas watch",
9+
"dev": "yarn with-env turbo dev zoekt:webserver",
10+
"with-env": "cross-env PATH=\"$PROJECT_CWD/packages/zoekt/bin:$PATH\" dotenv -e .env.development -c --",
1611
"dev:prisma:migrate:dev": "yarn with-env yarn workspace @sourcebot/db prisma:migrate:dev",
1712
"dev:prisma:generate": "yarn with-env yarn workspace @sourcebot/db prisma:generate",
1813
"dev:prisma:studio": "yarn with-env yarn workspace @sourcebot/db prisma:studio",
@@ -23,7 +18,8 @@
2318
"devDependencies": {
2419
"cross-env": "^7.0.3",
2520
"dotenv-cli": "^8.0.0",
26-
"npm-run-all": "^4.1.5"
21+
"npm-run-all": "^4.1.5",
22+
"turbo": "^2.5.8"
2723
},
2824
"packageManager": "yarn@4.7.0",
2925
"resolutions": {

packages/backend/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8-
"dev:watch": "tsc-watch --preserveWatchOutput --onSuccess \"yarn dev\"",
9-
"dev": "node ./dist/index.js",
10-
"build": "tsc",
8+
"dev": "tsc-watch --preserveWatchOutput --onSuccess \"node ./dist/index.js\"",
9+
"build": "cross-env SKIP_ENV_VALIDATION=1 tsc",
1110
"test": "cross-env SKIP_ENV_VALIDATION=1 vitest --config ./vitest.config.ts"
1211
},
1312
"devDependencies": {

packages/crypto/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"scripts": {
77
"build": "tsc",
8+
"dev": "tsc --watch",
89
"postinstall": "yarn build"
910
},
1011
"dependencies": {

packages/db/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"scripts": {
77
"build": "yarn prisma:generate && tsc",
8+
"dev": "yarn prisma:generate && tsc --watch",
89
"postinstall": "yarn build",
910
"prisma:generate": "prisma generate",
1011
"prisma:generate:watch": "prisma generate --watch",

packages/logger/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "module",
66
"private": true,
77
"scripts": {
8-
"build": "tsc",
8+
"build": "cross-env SKIP_ENV_VALIDATION=1 tsc",
9+
"dev": "cross-env SKIP_ENV_VALIDATION=1 tsc --watch",
910
"postinstall": "yarn build"
1011
},
1112
"dependencies": {

packages/mcp/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc",
9-
"dev": "node ./dist/index.js",
10-
"build:watch": "tsc-watch --preserveWatchOutput"
9+
"dev": "tsc-watch --preserveWatchOutput"
1110
},
1211
"devDependencies": {
1312
"@types/express": "^5.0.1",

packages/schemas/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
"private": true,
55
"scripts": {
66
"build": "yarn generate && tsc",
7+
"dev": "npm-run-all --parallel generate:watch tsc:watch",
8+
"tsc:watch": "tsc --watch",
79
"generate": "tsx tools/generate.ts",
8-
"watch": "nodemon --watch ../../schemas -e json -x 'yarn generate'",
10+
"generate:watch": "nodemon --watch ../../schemas -e json -x 'yarn generate'",
911
"postinstall": "yarn build"
1012
},
1113
"devDependencies": {
1214
"@apidevtools/json-schema-ref-parser": "^11.7.3",
1315
"glob": "^11.0.1",
1416
"json-schema-to-typescript": "^15.0.4",
1517
"nodemon": "^3.1.10",
18+
"npm-run-all": "^4.1.5",
1619
"tsx": "^4.19.2",
1720
"typescript": "^5.7.3"
1821
},

packages/shared/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"build": "tsc",
7+
"build": "cross-env SKIP_ENV_VALIDATION=1 tsc",
88
"build:watch": "tsc-watch --preserveWatchOutput",
9+
"dev": "tsc-watch --preserveWatchOutput",
910
"postinstall": "yarn build"
1011
},
1112
"dependencies": {
@@ -22,6 +23,7 @@
2223
"devDependencies": {
2324
"@types/micromatch": "^4.0.9",
2425
"@types/node": "^22.7.5",
26+
"cross-env": "^7.0.3",
2527
"tsc-watch": "6.2.1",
2628
"typescript": "^5.7.3"
2729
},

0 commit comments

Comments
 (0)