Skip to content

Commit de9ba40

Browse files
authored
feat: integration turbo (#5)
* feat: implement turbo repo * chore: prepare simple git hook * chore: some other minor change
1 parent 0fd9fd0 commit de9ba40

File tree

8 files changed

+179
-128
lines changed

8 files changed

+179
-128
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
# output
55
out
66
dist
7+
.turbo
78
*.tgz
89

910
# code coverage

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
This file was deleted.

.husky/pre-push

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ flowchart TD
7070
- [ ] Gitlab
7171
- [ ] JIRA
7272
- [x] Knip
73+
- [x] Turborepo

bun.lock

Lines changed: 134 additions & 114 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
22
"name": "labelit.ai",
33
"version": "0.0.1",
4+
"packageManager": "[email protected]",
45
"workspaces": [
56
"packages/*",
67
"integrations/*"
78
],
89
"scripts": {
9-
"prepare": "husky",
10-
"knip": "knip",
11-
"build": "bun run --filter './packages/*' build",
12-
"lint": "bun run knip && bun run --filter './packages/*' lint",
13-
"test": "bun run --filter './packages/*' test",
14-
"typecheck": "bun run --filter './packages/*' typecheck",
15-
"update": "bun run --filter './packages/*' _update --ignore-scripts --no-progress --no-summary"
10+
"prepare": "simple-git-hooks",
11+
"dev": "turbo run dev",
12+
"build": "turbo run build",
13+
"lint": "turbo run lint",
14+
"test": "turbo run test",
15+
"typecheck": "turbo run typecheck",
16+
"update": "turbo run update -- --ignore-scripts --no-progress --no-summary"
1617
},
1718
"devDependencies": {
18-
"husky": "^9.1.7",
19-
"knip": "^5.46.0"
19+
"knip": "^5.46.2",
20+
"simple-git-hooks": "^2.12.1",
21+
"turbo": "^2.4.4"
22+
},
23+
"simple-git-hooks": {
24+
"pre-commit": "bun i --ignore-scripts --offline && bun lint && bun run typecheck",
25+
"pre-push": "bun run build && bun run test"
2026
}
2127
}

packages/ai/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"_update": "bun update"
2020
},
2121
"dependencies": {
22-
"ai": "^4.2.2",
22+
"@labelit/config": "workspace:*",
23+
"ai": "^4.2.5",
2324
"workers-ai-provider": "^0.1.3"
2425
},
2526
"devDependencies": {

turbo.json

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

0 commit comments

Comments
 (0)