mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
turbo tasks
This commit is contained in:
@@ -32,17 +32,18 @@
|
||||
"!**/.*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "if [ \"$(uname)\" = \"Darwin\" ]; then npm run build:ios; else npm run build:android; fi",
|
||||
"build:ios": "ubrn build ios --and-generate --release && bob build",
|
||||
"build:android": "ubrn build android --and-generate --release && bob build",
|
||||
"ubrn:web": "ubrn build web",
|
||||
"ubrn:clean": "rm -rfv cpp/ android/CMakeLists.txt android/src/main/java android/*.cpp ios/ src/Native* src/index.*ts* src/generated/",
|
||||
"test": "jest",
|
||||
"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": "eslint \"**/*.{js,ts,tsx}\"",
|
||||
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
||||
"release": "release-it --only-version",
|
||||
"lint:rust": "cd rust/uniffi-russh && just lint"
|
||||
"build:ios": "ubrn build ios --and-generate --release",
|
||||
"build:android": "ubrn build android --and-generate --release",
|
||||
"build:bob": "bob build",
|
||||
"build": "if [ \"$(uname)\" = \"Darwin\" ]; then turbo build:ios; else turbo build:android; fi",
|
||||
"lint:rust": "cd rust/uniffi-russh && just lint",
|
||||
"test": "jest",
|
||||
"release": "release-it --only-version"
|
||||
},
|
||||
"keywords": [
|
||||
"react-native",
|
||||
@@ -67,7 +68,6 @@
|
||||
"@release-it/conventional-changelog": "^10.0.1",
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/react": "~19.1.12",
|
||||
"del-cli": "^6.0.0",
|
||||
"eslint": "^9.35.0",
|
||||
"jest": "^30.1.3",
|
||||
"prettier": "^3.6.2",
|
||||
@@ -78,6 +78,9 @@
|
||||
"turbo": "^2.5.6",
|
||||
"typescript": "~5.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"uniffi-bindgen-react-native": "github:EthanShoeDev/uniffi-bindgen-react-native#build-ts"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "19.1.0",
|
||||
"react-native": "0.81.4"
|
||||
@@ -126,8 +129,5 @@
|
||||
"languages": "kotlin-objc",
|
||||
"type": "turbo-module",
|
||||
"version": "0.54.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"uniffi-bindgen-react-native": "github:EthanShoeDev/uniffi-bindgen-react-native#build-ts"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"tasks": {
|
||||
"build": {
|
||||
"outputs": ["lib/**", "android/**", "ios/**", "cpp/**", "src/**"],
|
||||
"dependsOn": ["lint:rust"]
|
||||
},
|
||||
"typecheck": {
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"lint": {
|
||||
"with": ["typecheck", "lint:rust"]
|
||||
},
|
||||
"lint:rust": {}
|
||||
},
|
||||
"extends": ["//"]
|
||||
}
|
||||
27
packages/react-native-uniffi-russh/turbo.jsonc
Normal file
27
packages/react-native-uniffi-russh/turbo.jsonc
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
// Default overrides
|
||||
"lint": {
|
||||
"dependsOn": ["fmt", "^build"],
|
||||
"with": ["typecheck", "//#lint:root", "lint:rust"],
|
||||
},
|
||||
"lint:check": {
|
||||
"dependsOn": ["^build"],
|
||||
"with": ["fmt:check", "typecheck", "//#lint:check:root", "lint:rust"],
|
||||
},
|
||||
"build:android": {
|
||||
"outputs": ["dist/**"],
|
||||
"dependsOn": ["^build", "build:bob"],
|
||||
},
|
||||
"build:ios": {
|
||||
"outputs": ["dist/**"],
|
||||
"dependsOn": ["^build", "build:bob"],
|
||||
},
|
||||
|
||||
// Special tasks
|
||||
"lint:rust": {},
|
||||
"build:bob": {},
|
||||
},
|
||||
}
|
||||
@@ -7,14 +7,14 @@
|
||||
".": "./dist/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite --config vite.config.internal.ts",
|
||||
"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 --noEmit",
|
||||
"build:main": "tsc -b && vite build",
|
||||
"build:internal": "tsc -b && vite build --config vite.config.internal.ts",
|
||||
"fmt:check": "cross-env SORT_IMPORTS=true prettier --check .",
|
||||
"fmt": "cross-env SORT_IMPORTS=true prettier --write .",
|
||||
"eslint:check": "eslint . --report-unused-disable-directives --max-warnings 0",
|
||||
"lint:fix": "eslint --fix --report-unused-disable-directives --max-warnings 0 .",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"dev": "vite --config vite.config.internal.ts",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
// Default overrides
|
||||
"build": {
|
||||
"dependsOn": ["build:internal", "build:main"]
|
||||
"dependsOn": ["build:internal", "build:main"],
|
||||
},
|
||||
|
||||
// Special tasks
|
||||
"build:main": {
|
||||
"inputs": ["src/**"],
|
||||
"dependsOn": ["build:internal"],
|
||||
"outputs": ["dist/**"]
|
||||
"outputs": ["dist/**"],
|
||||
},
|
||||
"build:internal": {
|
||||
"inputs": ["src-internal/**"],
|
||||
"outputs": ["dist-internal/**"]
|
||||
"outputs": ["dist-internal/**"],
|
||||
},
|
||||
"lint": {},
|
||||
"lint:check": {}
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user