mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
turbo tasks
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
32
apps/mobile/turbo.jsonc
Normal 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": {},
|
||||
},
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"lint": {},
|
||||
"lint:check": {}
|
||||
}
|
||||
}
|
||||
4
apps/web/turbo.jsonc
Normal file
4
apps/web/turbo.jsonc
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"tasks": {},
|
||||
}
|
||||
Reference in New Issue
Block a user