Skip to content

Commit b51efe0

Browse files
authored
chore: move to turbo (#845)
* chore: move to turbo * ci * turbo token * Update turbo.json
1 parent 8a496be commit b51efe0

File tree

32 files changed

+442
-3038
lines changed

32 files changed

+442
-3038
lines changed

.github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
env:
44
NEXT_PUBLIC_CROSSMINT_AUTH_SMART_WALLET_API_KEY: ${{ secrets.NEXT_PUBLIC_CROSSMINT_AUTH_SMART_WALLET_API_KEY }}
5+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
6+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
57

68
on:
79
push:
@@ -23,7 +25,7 @@ jobs:
2325
run: pnpm build
2426

2527
- name: Test all
26-
run: pnpm test
28+
run: pnpm test:vitest
2729

2830
lint:
2931
name: lint

.github/workflows/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CI
22

33
env:
44
NEXT_PUBLIC_CROSSMINT_AUTH_SMART_WALLET_API_KEY: ${{ secrets.NEXT_PUBLIC_CROSSMINT_AUTH_SMART_WALLET_API_KEY }}
5+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
6+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
57

68
on:
79
push:
@@ -24,7 +26,7 @@ jobs:
2426
run: pnpm build
2527

2628
- name: Test all
27-
run: pnpm test
29+
run: pnpm test:vitest
2830

2931
release:
3032
name: Release

apps/auth/ssr/turbo.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": [".env", ".env.local"],
8+
"outputs": [".next/**", "!.next/cache/**"]
9+
}
10+
}
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json", ".env"],
8+
"outputs": ["build/**"]
9+
}
10+
}
11+
}

apps/payments/nextjs/turbo.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": [".env", ".env.local"],
8+
"outputs": [".next/**", "!.next/cache/**"]
9+
}
10+
}
11+
}

apps/payments/vue/turbo.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json", ".env"],
8+
"outputs": ["dist/**"]
9+
}
10+
}
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": [".env", ".env.local"],
8+
"outputs": [".next/**", "!.next/cache/**"]
9+
}
10+
}
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json", ".env"],
8+
"outputs": ["build/**"]
9+
}
10+
}
11+
}

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"license": "Apache-2.0",
66
"author": "Paella Labs Inc",
77
"scripts": {
8-
"build": "lerna run build",
9-
"build:apps": "pnpm --filter \"./apps/**\" build",
10-
"build:libs": "pnpm --filter \"./packages/**\" build",
8+
"build": "pnpm turbo build",
9+
"build:apps": "pnpm turbo --filter \"./apps/**\" build",
10+
"build:libs": "pnpm turbo --filter \"./packages/**\" build",
1111
"change:add": "pnpm changeset add",
1212
"change:publish": "cross-env NODE_ENV=production pnpm build:libs && pnpm changeset publish --no-git-tag",
1313
"change:version": "pnpm changeset version && pnpm lint:fix",
@@ -16,8 +16,7 @@
1616
"clean:node_modules": "pnpm dlx rimraf \"**/node_modules\" --glob",
1717
"lint": "biome check --diagnostic-level=error --max-diagnostics=200",
1818
"lint:fix": "biome check --write",
19-
"publish": "lerna publish from-package",
20-
"test": "lerna run test"
19+
"test:vitest": "pnpm turbo test:vitest"
2120
},
2221
"devDependencies": {
2322
"@biomejs/biome": "1.8.3",
@@ -28,10 +27,10 @@
2827
"@types/node": "20.12.7",
2928
"cross-env": "7.0.3",
3029
"jest": "29.6.4",
31-
"lerna": "6.6.2",
3230
"rimraf": "6.0.1",
3331
"ts-jest": "29.1.1",
3432
"tsup": "8.1.0",
33+
"turbo": "2.2.3",
3534
"typescript": "5.5.3",
3635
"vitest": "1.0.2",
3736
"vitest-mock-extended": "2.0.0"

packages/client/auth/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"build": "tsup",
1919
"dev": "tsup --watch",
20-
"test": "vitest run"
20+
"test:vitest": "vitest run"
2121
},
2222
"dependencies": {
2323
"@crossmint/client-sdk-window": "workspace:*",

packages/client/base/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/ui/react-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
1919
"dev": "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch",
20-
"test": "vitest run"
20+
"test:vitest": "vitest run"
2121
},
2222
"dependencies": {
2323
"@crossmint/client-sdk-auth": "workspace:*",
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/ui/vue-ui/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/verifiable-credentials/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"scripts": {
1818
"build": "tsup",
1919
"dev": "tsup --watch",
20-
"test": "cross-env NODE_ENV=test jest --silent",
21-
"test-coverage": "cross-env NODE_ENV=test jest --coverage --silent"
20+
"test:vitest": "cross-env NODE_ENV=test jest --silent"
2221
},
2322
"dependencies": {
2423
"@crossmint/client-sdk-base": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts", "jest.config.ts"]
12+
}
13+
}
14+
}

packages/client/wallets/smart-wallet/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"build": "tsup",
1919
"dev": "tsup --watch",
20-
"test": "vitest run"
20+
"test:vitest": "vitest run"
2121
},
2222
"dependencies": {
2323
"@crossmint/client-sdk-base": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/wallets/walletconnect/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@
2020
"module": "./dist/index.js",
2121
"types": "./dist/index.d.ts",
2222
"style": "./dist/index.css",
23-
"files": ["dist", "src", "LICENSE", ".yalc"],
23+
"files": ["dist", "src", "LICENSE"],
2424
"scripts": {
2525
"build": "tsup src/index.ts --clean --external react,react-dom --format esm,cjs --outDir ./dist --minify --dts --sourcemap",
26-
"dev": "tsup src/index.ts --clean --external react,react-dom --format esm,cjs --outDir ./dist --dts --sourcemap --watch",
27-
"link:client-sdk-aa": "yalc add @crossmint/client-sdk-aa && yalc link @crossmint/client-sdk-aa && pnpm i",
28-
"link:common-sdk-base": "yalc add @crossmint/common-sdk-base && yalc link @crossmint/common-sdk-base && pnpm i",
29-
"unlink:client-sdk-aa": "yalc remove @crossmint/client-sdk-aa && pnpm i",
30-
"unlink:common-sdk-base": "yalc remove @crossmint/common-sdk-base && yalc link @crossmint/common-sdk-base && pnpm i"
26+
"dev": "tsup src/index.ts --clean --external react,react-dom --format esm,cjs --outDir ./dist --dts --sourcemap --watch"
3127
},
3228
"dependencies": {
3329
"@crossmint/common-sdk-base": "0.0.12",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/client/wallets/web3auth-adapter/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"build": "tsup src/index.ts --clean --format esm,cjs --outDir ./dist --minify --dts --sourcemap",
1919
"build-no-minify": "tsup src/index.ts --clean --format esm,cjs --outDir ./dist --dts --sourcemap",
2020
"dev": "tsup src/index.ts --clean --format esm,cjs --outDir ./dist --dts --sourcemap --watch",
21-
"link:common-sdk-base": "yalc add @crossmint/common-sdk-base && yalc link @crossmint/common-sdk-base && pnpm i && pnpm build && yalc push",
22-
"test": "cross-env NODE_ENV=test jest",
23-
"test-coverage": "cross-env NODE_ENV=test jest --coverage",
24-
"unlink:common-sdk-base": "yalc remove @crossmint/common-sdk-base && pnpm i"
21+
"test:vitest": "cross-env NODE_ENV=test jest"
2522
},
2623
"dependencies": {
2724
"@crossmint/common-sdk-base": "0.0.13",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts", "jest.config.ts"]
12+
}
13+
}
14+
}

packages/client/window/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/common/auth/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

packages/common/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"build": "tsup",
1919
"dev": "tsup --watch",
20-
"test": "vitest run"
20+
"test:vitest": "vitest run"
2121
},
2222
"dependencies": {
2323
"bs58": "5.0.0",

packages/common/base/turbo.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"dependsOn": ["^build"],
7+
"inputs": ["src/**", "tsup.config.ts", "!./**/*.test.{ts,tsx}", "tsconfig.json"],
8+
"outputs": ["dist/**"]
9+
},
10+
"test:vitest": {
11+
"inputs": ["src/**", "vitest.config.ts"]
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)