mirror of
https://github.com/ajnart/homarr.git
synced 2025-10-26 00:56:12 +02:00
Turbo cache (#767)
* Try to add vercel caching with turbo * Update lockfile * Update turbo json file * Fix CI * Add new rule * re-launch ci * Update CI to use Turbo * Use yarn turbo build
This commit is contained in:
7
.github/workflows/docker_dev.yml
vendored
7
.github/workflows/docker_dev.yml
vendored
@@ -24,11 +24,14 @@ env:
|
||||
REGISTRY: ghcr.io
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
|
||||
|
||||
jobs:
|
||||
# Push image to GitHub Packages.
|
||||
# See also https://docs.docker.com/docker-hub/builds/
|
||||
yarn_install_and_build:
|
||||
yarn_install_and_build_dev:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
@@ -67,7 +70,7 @@ jobs:
|
||||
|
||||
- run: yarn install --immutable
|
||||
|
||||
- run: yarn build
|
||||
- run: yarn turbo build
|
||||
|
||||
- name: Docker meta
|
||||
if: github.event_name != 'pull_request'
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -32,6 +32,7 @@ yarn-error.log*
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
.turbo
|
||||
*.tsbuildinfo
|
||||
|
||||
# storybook
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"turbo" : "turbo run build",
|
||||
"analyze": "ANALYZE=true next build",
|
||||
"start": "next start",
|
||||
"typecheck": "tsc --noEmit",
|
||||
@@ -92,7 +93,7 @@
|
||||
"jest": "^28.1.3",
|
||||
"prettier": "^2.7.1",
|
||||
"sass": "^1.56.1",
|
||||
"turbo": "^1.7.4",
|
||||
"turbo": "^1.8.3",
|
||||
"typescript": "^4.7.4",
|
||||
"video.js": "^8.0.3"
|
||||
},
|
||||
|
||||
11
turbo.json
Normal file
11
turbo.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"pipeline": {
|
||||
"build": {
|
||||
"outputs": [
|
||||
".next/**",
|
||||
"!.next/cache/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
58
yarn.lock
58
yarn.lock
@@ -5001,7 +5001,7 @@ __metadata:
|
||||
rss-parser: ^3.12.0
|
||||
sabnzbd-api: ^1.5.0
|
||||
sass: ^1.56.1
|
||||
turbo: ^1.7.4
|
||||
turbo: ^1.8.3
|
||||
typescript: ^4.7.4
|
||||
uuid: ^8.3.2
|
||||
video.js: ^8.0.3
|
||||
@@ -8366,58 +8366,58 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-darwin-64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-darwin-64@npm:1.8.0"
|
||||
"turbo-darwin-64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-darwin-64@npm:1.8.3"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-darwin-arm64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-darwin-arm64@npm:1.8.0"
|
||||
"turbo-darwin-arm64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-darwin-arm64@npm:1.8.3"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-linux-64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-linux-64@npm:1.8.0"
|
||||
"turbo-linux-64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-linux-64@npm:1.8.3"
|
||||
conditions: os=linux & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-linux-arm64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-linux-arm64@npm:1.8.0"
|
||||
"turbo-linux-arm64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-linux-arm64@npm:1.8.3"
|
||||
conditions: os=linux & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-windows-64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-windows-64@npm:1.8.0"
|
||||
"turbo-windows-64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-windows-64@npm:1.8.3"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo-windows-arm64@npm:1.8.0":
|
||||
version: 1.8.0
|
||||
resolution: "turbo-windows-arm64@npm:1.8.0"
|
||||
"turbo-windows-arm64@npm:1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo-windows-arm64@npm:1.8.3"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"turbo@npm:^1.7.4":
|
||||
version: 1.8.0
|
||||
resolution: "turbo@npm:1.8.0"
|
||||
"turbo@npm:^1.8.3":
|
||||
version: 1.8.3
|
||||
resolution: "turbo@npm:1.8.3"
|
||||
dependencies:
|
||||
turbo-darwin-64: 1.8.0
|
||||
turbo-darwin-arm64: 1.8.0
|
||||
turbo-linux-64: 1.8.0
|
||||
turbo-linux-arm64: 1.8.0
|
||||
turbo-windows-64: 1.8.0
|
||||
turbo-windows-arm64: 1.8.0
|
||||
turbo-darwin-64: 1.8.3
|
||||
turbo-darwin-arm64: 1.8.3
|
||||
turbo-linux-64: 1.8.3
|
||||
turbo-linux-arm64: 1.8.3
|
||||
turbo-windows-64: 1.8.3
|
||||
turbo-windows-arm64: 1.8.3
|
||||
dependenciesMeta:
|
||||
turbo-darwin-64:
|
||||
optional: true
|
||||
@@ -8433,7 +8433,7 @@ __metadata:
|
||||
optional: true
|
||||
bin:
|
||||
turbo: bin/turbo
|
||||
checksum: 7f97068d7f9a155e088d3575b1f9922e68fa3015aae0c92625238d44b4e6c275bec2a281907702dedb402fca29a6cd4690499e916cb334d7c24c98099bc3d8b0
|
||||
checksum: 4a07d120ef8adf6c8e58a48abd02e075ffa215287cc6c3ef843d4fb08aeb0a566fe810ec9bfc376254468a2aa4f29bae154a60804a83af78dfa86d0e8e995476
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user