Skip to content

Commit

Permalink
improve turbo config
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Jan 24, 2025
1 parent 6b90eaa commit 6193be9
Show file tree
Hide file tree
Showing 13 changed files with 581 additions and 583 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: 💅 Lint code
run: pnpm run lint:fix
run: pnpm run turbo:lint:fix

- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
run: pnpm install --frozen-lockfile

- name: 🛠️ Build
run: pnpm run build
run: pnpm run turbo:build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ dist
.config/shelve*

*/dist/
.dist/

*/.output/
.output/

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY . .
RUN corepack enable
RUN pnpm install --frozen-lockfile

RUN pnpm run build
RUN pnpm run build:app

# Stage 2: Final Stage
FROM node:22.13.1-alpine AS final
Expand Down
2 changes: 1 addition & 1 deletion base/composables/useStats.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Stats, UseStatsOptions } from '~~/packages/types'
import type { Stats, UseStatsOptions } from '../../packages/types'

export function useStats(options: UseStatsOptions = {}) {
const stats = useState<Stats>('stats')
Expand Down
8 changes: 7 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { createConfig } from "@hrcd/eslint-config"

export default createConfig({})
export default createConfig({
features: {
packageJson: {
enabled: false
}
}
})
3 changes: 1 addition & 2 deletions lp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
"@iconify-json/heroicons": "1.2.2",
"@iconify-json/lucide": "1.2.24",
"@iconify-json/simple-icons": "1.2.21",
"@number-flow/vue": "^0.4.3",
"@nuxt/content": "3.0.0",
"@nuxt/image": "1.9.0",
"@nuxt/scripts": "0.9.5",
"@nuxt/ui-pro": "https://pkg.pr.new/@nuxt/ui-pro@65b35c5",
"@nuxtjs/seo": "2.1.0",
"@shelve/types": "*",
"nuxt": "3.15.2",
"@number-flow/vue": "^0.4.3",
"nuxt-build-cache": "0.1.1",
"vue": "3.5.13",
"vue-router": "4.5.0",
Expand Down
2 changes: 1 addition & 1 deletion lp/server/services/vault.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Storage, StorageValue } from 'unstorage'
import type { H3Event } from 'h3'
import type { DecryptResponse, EncryptRequest, StoredData, TTLFormat } from '~~/packages/types'
import type { DecryptResponse, EncryptRequest, StoredData, TTLFormat } from '../../../packages/types'

export class VaultService {

Expand Down
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default defineNuxtConfig({

nitro: {
rollupConfig: {
// @ts-expect-error - Vite config
plugins: [vue()]
}
},
Expand Down
26 changes: 18 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@shelve/app",
"version": "2.0.0.beta-15",
"description": "Shelve is a project management tool for developers teams",
"private": true,
"type": "module",
Expand All @@ -11,6 +12,12 @@
"preview": "nuxt preview",
"start": "node .output/server/index.mjs",
"postinstall": "nuxt prepare",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push",
"build:app": "turbo build --filter=@shelve/app",
"build:lp": "turbo build --filter=@shelve/lp",
"build:cli": "turbo build --filter=@shelve/cli",
Expand All @@ -19,13 +26,10 @@
"dev:cli": "turbo dev --filter=@shelve/cli",
"release": "turbo release && changeset",
"dev:prepare": "turbo dev:prepare",
"lint": "turbo lint",
"lint:fix": "turbo lint:fix",
"test": "turbo test",
"typecheck": "turbo typecheck",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:push": "drizzle-kit push"
"turbo:build": "turbo build",
"turbo:lint": "turbo lint",
"turbo:lint:fix": "turbo lint:fix",
"turbo:typecheck": "turbo typecheck"
},
"dependencies": {
"@iconify-json/heroicons": "1.2.2",
Expand Down Expand Up @@ -68,5 +72,11 @@
"engines": {
"node": ">=22.12.0"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"workspaces": [
"packages/*",
"base",
"lp",
"."
]
}
1,099 changes: 539 additions & 560 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
packages:
- 'packages/*'
- './base'
- './lp'
- '.'
14 changes: 8 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env"
],
"tasks": {
"build": {
"dependsOn": [
Expand Down Expand Up @@ -36,10 +33,15 @@
".nuxt/**"
]
},
"lint": {},
"lint": {
"cache": true
},
"lint:fix": {},
"test": {},
"release": {},
"typecheck": {}
}
"typecheck": {
"cache": true
}
},
"extends": ["//"]
}

0 comments on commit 6193be9

Please sign in to comment.