turbo tasks

This commit is contained in:
EthanShoeDev
2025-09-19 19:44:20 -04:00
parent b053cb9945
commit dd0bb7636d
16 changed files with 223 additions and 185 deletions

View File

@@ -5,22 +5,21 @@
"main": "expo-router/entry",
"type": "module",
"scripts": {
"start": "expo start",
"android": "expo run:android --port 8082",
"ios": "expo run:ios --port 8081",
"android:release": "expo run:android --variant release",
"fmt": "cross-env SORT_IMPORTS=true prettier --write .",
"fmt:check": "cross-env SORT_IMPORTS=true prettier --check .",
"lint": "eslint --fix --max-warnings 0 --report-unused-disable-directives .",
"lint:check": "eslint --max-warnings 0 --report-unused-disable-directives .",
"typecheck": "tsc",
"dev:android": "expo run:android --port 8082",
"dev:ios": "expo run:ios --port 8081",
"dev:android:release": "expo run:android --port 8082 --variant release",
"dev:ios:release": "expo run:ios --port 8081 --variant release",
"build:signed:aab": "tsx scripts/signed-build.ts",
"build:signed:apk": "tsx scripts/signed-build.ts --format apk",
"web": "expo start --web",
"prebuild": "expo prebuild",
"prebuild:clean": "expo prebuild --clean",
"expo:dep:check": "expo install --fix",
"expo:doctor": "pnpm dlx expo-doctor@latest",
"fmt": "cross-env SORT_IMPORTS=true prettier --write .",
"fmt:check": "cross-env SORT_IMPORTS=true prettier --check .",
"typecheck": "tsc",
"lint:fix": "eslint --fix --max-warnings 0 --report-unused-disable-directives .",
"eslint:check": "eslint --max-warnings 0 --report-unused-disable-directives .",
"test:e2e": "maestro test test/e2e/",
"adb:logs": "while ! adb logcat --pid=$(adb shell pidof -s dev.fressh.app); do sleep 1; done"
},

View File

@@ -1,16 +0,0 @@
{
"extends": ["//"],
"tasks": {
"android": {
"dependsOn": ["^build"]
},
"ios": {
"dependsOn": ["^build"]
},
"lint": {
"dependsOn": ["lint:fix", "typecheck", "//#lint:root", "expo:doctor"]
},
"expo:doctor": {},
"lint:check": {}
}
}

32
apps/mobile/turbo.jsonc Normal file
View File

@@ -0,0 +1,32 @@
{
"extends": ["//"],
"tasks": {
// Default overrides
"lint": {
"dependsOn": ["fmt", "^build"],
"with": ["typecheck", "//#lint:root", "expo:doctor"],
},
"lint:check": {
"dependsOn": ["^build"],
"with": ["fmt:check", "typecheck", "//#lint:check:root", "expo:doctor"],
},
"test": {
"dependsOn": ["^build"],
"with": ["test:e2e"],
},
"dev:android": {
"dependsOn": ["^build", "^build:android"],
"cache": false,
"persistent": true,
},
"dev:ios": {
"dependsOn": ["^build", "^build:ios"],
"cache": false,
"persistent": true,
},
// Special tasks
"expo:doctor": {},
"test:e2e": {},
},
}

View File

@@ -4,15 +4,14 @@
"private": true,
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"fmt": "cross-env SORT_IMPORTS=true prettier --write .",
"fmt:check": "cross-env SORT_IMPORTS=true prettier --check .",
"lint": "eslint --fix --max-warnings 0 --report-unused-disable-directives .",
"lint:check": "eslint --max-warnings 0 --report-unused-disable-directives .",
"typecheck": "tsc",
"lint:fix": "eslint --fix --max-warnings 0 --report-unused-disable-directives .",
"eslint:check": "eslint --max-warnings 0 --report-unused-disable-directives ."
"build": "astro build",
"dev": "astro dev",
"preview": "astro preview"
},
"dependencies": {
"@astrojs/vercel": "^8.2.7",

View File

@@ -1,7 +0,0 @@
{
"extends": ["//"],
"tasks": {
"lint": {},
"lint:check": {}
}
}

4
apps/web/turbo.jsonc Normal file
View File

@@ -0,0 +1,4 @@
{
"extends": ["//"],
"tasks": {},
}