Skip to content

Commit

Permalink
Update Turborepo to v2 and configure for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 26, 2024
1 parent e57fe51 commit 36a4122
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 33 deletions.
15 changes: 15 additions & 0 deletions docs/turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*", "content/**", "app/**"],
"outputs": [".next/**", "!.next/cache/**"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "nx.js",
"private": true,
"packageManager": "[email protected]",
"scripts": {
Expand All @@ -13,7 +14,7 @@
"@biomejs/biome": "^1.5.3",
"@changesets/cli": "^2.27.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"turbo": "^1.12.5",
"turbo": "^2.0.4",
"typedoc": "^0.26.0",
"typedoc-plugin-markdown": "^4.1.0",
"typedoc-plugin-mdn-links": "^3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turborepo.org/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"bundle": {
"inputs": ["src/**", "*.mjs"],
"outputs": ["runtime.js"]
Expand Down
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

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

36 changes: 27 additions & 9 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["src/**"],
"outputs": ["dist/**", "romfs/**"]
"dependsOn": [
"^build"
],
"inputs": [
"src/**"
],
"outputs": [
"dist/**",
"romfs/**"
]
},
"docs-json": {
"inputs": ["src/**", "typedoc.json"],
"outputs": ["docs.json"]
"inputs": [
"src/**",
"typedoc.json"
],
"outputs": [
"docs.json"
]
},
"nro": {
"dependsOn": ["build"],
"inputs": ["src/**"],
"outputs": ["*.nro"]
"dependsOn": [
"build"
],
"inputs": [
"src/**"
],
"outputs": [
"*.nro"
]
}
}
}

0 comments on commit 36a4122

Please sign in to comment.