Skip to content

Commit 7cd968d

Browse files
authored
refactor: migrate from Turborepo to Nx for task management (CopilotKit#3207)
1 parent 7b83854 commit 7cd968d

40 files changed

Lines changed: 820 additions & 262 deletions

.github/workflows/e2e_dojo.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ on:
1616
workflow_dispatch:
1717
inputs:
1818
branch:
19-
description: 'Branch to run the workflow on'
19+
description: "Branch to run the workflow on"
2020
required: true
21-
default: 'main'
21+
default: "main"
2222
type: string
2323

2424
jobs:
@@ -178,12 +178,8 @@ jobs:
178178
working-directory: CopilotKit
179179
env:
180180
NODE_OPTIONS: --max-old-space-size=8192
181-
TURBO_CONCURRENCY: 2
182-
run: |
183-
unset TURBO_API
184-
unset TURBO_TOKEN
185-
unset TURBO_TEAM
186-
pnpm build:packages
181+
NX_PARALLEL: 2
182+
run: pnpm build
187183

188184
- name: Install ag-ui dependencies
189185
working-directory: ag-ui

.github/workflows/e2e_examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ on:
1414
workflow_dispatch:
1515
inputs:
1616
branch:
17-
description: 'Branch to run the workflow on'
17+
description: "Branch to run the workflow on"
1818
required: true
19-
default: 'main'
19+
default: "main"
2020
type: string
2121

2222
jobs:
@@ -70,7 +70,7 @@ jobs:
7070

7171
- name: Build CopilotKit
7272
id: build-cpk
73-
run: pnpm build:packages
73+
run: pnpm build
7474

7575
- name: Install e2e dependencies
7676
working-directory: examples/e2e

.github/workflows/publish-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
run: pnpm install
2525

2626
- name: Build
27-
run: pnpm run build:packages
27+
run: pnpm run build
2828

2929
- run: npx pkg-pr-new publish "./packages/v1/*" "./packages/v2/*"

.github/workflows/publish_custom-pre.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- name: Install uv
2222
uses: astral-sh/setup-uv@v6
2323

24-
2524
- name: Setup Node
2625
uses: actions/setup-node@v4
2726
with:
@@ -34,7 +33,7 @@ jobs:
3433
run: pnpm i
3534

3635
- name: Build
37-
run: pnpm run build:packages
36+
run: pnpm run build
3837

3938
- name: Publish snapshot
4039
run: ./scripts/release/publish-snapshot-release.sh

.github/workflows/publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: Build
6363
id: build
64-
run: pnpm run build:packages
64+
run: pnpm run build
6565

6666
- name: NPM Publish
6767
id: publish

.github/workflows/static_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: pnpm install --frozen-lockfile
4747

4848
- name: Run Prettier check
49-
run: npx turbo run check-prettier
49+
run: pnpm run check-prettier
5050

5151
eslint:
5252
runs-on: ubuntu-latest

.github/workflows/test_unit-v1.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ jobs:
5555
run: pnpm install --frozen-lockfile
5656

5757
- name: Generate GraphQL codegen files
58-
run: pnpm turbo run graphql-codegen --filter=@copilotkit/runtime-client-gql
58+
run: npx nx run @copilotkit/runtime-client-gql:graphql-codegen
59+
60+
- name: Build
61+
run: pnpm run build
5962

6063
- name: Run tests
6164
run: npm run test:classic

.github/workflows/test_unit-v2.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,8 @@ jobs:
4949
- name: Install dependencies
5050
run: pnpm install --frozen-lockfile
5151

52+
- name: Build
53+
run: pnpm run build
54+
5255
- name: Run tests
53-
run: pnpm test:next
56+
run: pnpm run test:next

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ node_modules
1111
.pnpm-store
1212
.idea/
1313
cdk_outputs.json
14-
.turbo
14+
.nx
1515
test-run-comment.md
1616

1717
*.egg-info/
@@ -34,7 +34,10 @@ docs/next-env.d.ts
3434
# External repos (cloned for development)
3535
ext-apps/
3636
dist
37-
.turbo
37+
.nx
3838
.angular
3939
build
40-
debug-storybook.log
40+
debug-storybook.log
41+
storybook-static
42+
coverage
43+
.turbo

.mcp.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mcpServers": {
3+
"nx-mcp": {
4+
"type": "stdio",
5+
"command": "npx",
6+
"args": [
7+
"nx",
8+
"mcp"
9+
]
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)