Skip to content

Commit

Permalink
fix: turbo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
chiol committed May 30, 2024
1 parent da70445 commit 5ff02d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 58 deletions.
1 change: 0 additions & 1 deletion .yarnrc.yml

This file was deleted.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
]
},
"scripts": {
"build": "turbo run build",
"build:ui": "turbo run @ufb/ui#build",
"build": "turbo build",
"build:ui": "turbo @ufb/ui#build",
"clean": "git clean -xdf node_modules",
"clean:workspaces": "turbo clean",
"dev": "turbo run dev --parallel",
"dev:api": "turbo run dev --filter=api",
"dev:web": "turbo run dev --filter=web",
"dev": "turbo dev --parallel",
"dev:api": "turbo dev --filter=api",
"dev:web": "turbo dev --filter=web",
"format": "turbo format --continue -- --cache --cache-location node_modules/.cache/.prettiercache",
"format:fix": "turbo format --continue -- --write --cache --cache-location node_modules/.cache/.prettiercache",
"lint": "turbo lint --continue -- --cache --cache-location node_modules/.cache/.eslintcache",
"lint:fix": "turbo lint --continue -- --fix --cache --cache-location node_modules/.cache/.eslintcache",
"lint:ws": "pnpm dlx sherif@latest",
"test": "turbo run test",
"test:e2e": "cd apps/e2e && pnpm test:e2e",
"postinstall": "pnpm lint:ws",
"typecheck": "turbo typecheck"
"typecheck": "turbo typecheck",
"test": "turbo test",
"test:e2e": "cd apps/e2e && pnpm test:e2e"
},
"prettier": "@ufb/prettier-config",
"devDependencies": {
Expand Down
62 changes: 13 additions & 49 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,36 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env"
],
"experimentalUI": true,
"globalDependencies": ["**/.env"],
"pipeline": {
"topo": {
"dependsOn": [
"^topo"
]
"dependsOn": ["^topo"]
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
".next/**",
"next-env.d.ts",
"!.next/cache/**"
]
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "next-env.d.ts", "!.next/cache/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"web#dev": {
"dependsOn": [
"@ufb/tailwind#build",
"@ufb/shared#build"
]
"dependsOn": ["@ufb/tailwind#build", "@ufb/shared#build"]
},
"api#dev": {
"dependsOn": [
"@ufb/shared#build"
]
},
"@ufb/tailwind#build": {
"outputs": [
"dist/**"
]
"dependsOn": ["@ufb/shared#build"]
},
"format": {
"outputs": [
"node_modules/.cache/.prettiercache"
],
"outputs": ["node_modules/.cache/.prettiercache"],
"outputMode": "new-only"
},
"lint": {
"dependsOn": [
"topo"
],
"outputs": [
"node_modules/.cache/.eslintcache"
]
"dependsOn": ["^topo", "^build"],
"outputs": ["node_modules/.cache/.eslintcache"]
},
"typecheck": {
"dependsOn": [
"topo"
],
"outputs": [
"node_modules/.cache/tsbuildinfo.json"
]
},
"test": {
"dependsOn": [
"topo",
"@ufb/shared#build"
]
"dependsOn": ["^topo", "^build"],
"outputs": ["node_modules/.cache/tsbuildinfo.json"]
},
"clean": {
"cache": false
Expand Down Expand Up @@ -101,4 +65,4 @@
"BASE_URL",
"NEXT_PUBLIC_MAX_DAYS"
]
}
}

0 comments on commit 5ff02d9

Please sign in to comment.