Skip to content

Commit

Permalink
🧑‍💻 chore: Introduce Turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 19, 2023
1 parent 433a6d2 commit 5e55093
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
# JetBrains
.idea

### Monorepo

.turbo

### Node

# Heaviest object in the universe
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"private": true,
"scripts": {
"build": "turbo build",
"lint": "biome format . --write",
"lint:check": "biome check ."
},
"devDependencies": {
"@biomejs/biome": "1.2.2",
"commitlint-config-gitmoji": "^2.3.1"
"commitlint-config-gitmoji": "^2.3.1",
"turbo": "^1.10.14"
}
}
4 changes: 2 additions & 2 deletions packages/greetings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"scripts": {
"clean": "rimraf dist types",
"types:check": "tsc --noEmit",
"build": "tsup",
"build": "pnpm run clean && pnpm run build:dist && pnpm run build:types",
"build:dist": "tsup",
"build:types": "tsc --emitDeclarationOnly",
"build:prod": "pnpm run clean && pnpm run build && pnpm run build:types",
"run:greetings": "tsx src/run.ts"
},
"devDependencies": {
Expand Down
63 changes: 63 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"outputs": ["dist/**", "types/**"]
}
}
}

0 comments on commit 5e55093

Please sign in to comment.