Skip to content

Commit

Permalink
chore: relocate typescript monorepo using pnpm and turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRAG committed Feb 4, 2025
1 parent e93447c commit b357cf8
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ jobs:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: "18"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ jobs:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
Expand Down
19 changes: 10 additions & 9 deletions typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
"typescript/examples/langchain-farcaster-chatbot"
],
"scripts": {
"build": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" build",
"test": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" test",
"lint": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" lint",
"clean": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" clean",
"docs": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" docs",
"dev": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" dev",
"format": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" format",
"format:check": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" format:check",
"lint:fix": "pnpm --filter \"./agentkit/**\" --filter \"./examples/**\" --filter \"./framework-extensions/**\" lint:fix"
"build": "turbo run build",
"test": "turbo run test",
"lint": "turbo run lint",
"clean": "turbo run clean",
"docs": "turbo run docs",
"dev": "turbo run dev",
"format": "turbo run format",
"format:check": "turbo run format:check",
"lint:fix": "turbo run lint:fix",
"test:types": "turbo run test:types"
},
"packageManager": "[email protected]",
"author": "Coinbase Inc.",
Expand Down
39 changes: 39 additions & 0 deletions typescript/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [".env"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": ["build"],
"inputs": ["src/**/*.ts", "test/**/*.ts"]
},
"lint": {
"outputs": []
},
"lint:fix": {
"cache": false
},
"format": {
"cache": false
},
"format:check": {
"cache": false
},
"clean": {
"cache": false
},
"docs": {
"outputs": ["docs/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"test:types": {
"dependsOn": ["build"]
}
}
}

0 comments on commit b357cf8

Please sign in to comment.