Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
chore: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinusnathaniel committed Sep 16, 2024
1 parent ce8304d commit 56dd8c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
4 changes: 4 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"organizeImports": {
"enabled": true
},
"files": {
"include": ["src", "*.config.ts"],
"ignore": [".next", "node_modules", ".turbo", ".vscode"]
},
"formatter": {
"indentStyle": "space"
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
"turbo": "pnpm dlx [email protected]",
"build:turbo": "pnpm turbo build",
"lint:next": "next lint",
"lint:biome": "pnpm biome lint ./src",
"biome:check": "pnpm biome lint",
"biome:apply": "pnpm biome:check --write",
"analyze": "cross-env ANALYZE=true pnpm build",
"postbuild": "next-sitemap --config next-sitemap.config.js",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"test:coverage": "vitest --coverage",
"start": "next start",
"lint": "pnpm lint:next && pnpm lint:biome",
"biome:apply": "pnpm biome check --write ./src next.config.js commitlint.*",
"type-check": "tsc --noEmit",
"lint": "pnpm lint:next && pnpm biome:check",
"type:check": "tsc --noEmit",
"knip": "knip",
"check:turbo": "pnpm turbo lint type-check",
"check:turbo": "pnpm turbo biome:check type:check",
"up-interactive": "pnpm up -i",
"up-latest": "pnpm up-interactive -L",
"release": "cross-env HUSKY=0 standard-version",
Expand Down
16 changes: 9 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"biome:check": {
"outputs": [],
"inputs": ["biome.json", "src/**"]
},
"type:check": {
"inputs": ["tsconfig.json", "src/**"],
"outputs": ["*.tsbuildinfo"]
},
"build": {
"dependsOn": ["type:check", "biome:check"],
"outputs": [".next/**", "!.next/cache/**", "public/**"],
"env": [
"NEXT_PUBLIC_UMAMI_WEBSITE_ID",
Expand All @@ -15,13 +24,6 @@
"DATABASE_URL",
"DIRECT_URL"
]
},
"lint": {
"outputs": [],
"inputs": ["biome.json", "src/**"]
},
"type-check": {
"outputs": ["*.tsbuildinfo"]
}
}
}

0 comments on commit 56dd8c2

Please sign in to comment.