-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
134 lines (110 loc) · 2.67 KB
/
taskfile.yml
File metadata and controls
134 lines (110 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3.0"
set: ['e', 'u', 'pipefail']
shopt: ['globstar']
dotenv: ['.env']
env:
FASTLANE_OPT_OUT_USAGE: 1
RUBYOPT: "-W0"
includes:
deno:
taskfile: ./taskfiles/deno.yml
tauri:
taskfile: ./taskfiles/tauri.yml
ios:
taskfile: ./taskfiles/ios.yml
android:
taskfile: ./taskfiles/android.yml
tasks:
default:
desc: "Default task"
cmds:
- task --list
bundle:install:
desc: "Install Ruby gems from Gemfile.lock"
cmds:
- bundle install --quiet
sources:
- Gemfile
- Gemfile.lock
generates:
- .bundle/config
pre-commit:
desc: "Run pre-commit hooks"
cmds:
- pre-commit run --all-files
dev:
desc: "Run Tauri in development mode"
cmds:
- task: tauri:dev
build:
desc: "Build Tauri app for current architecture"
cmds:
- task: tauri:build
build:arm64:
desc: "Build Tauri app for Apple Silicon (arm64)"
cmds:
- task: tauri:build:arm64
build:x64:
desc: "Build Tauri app for Intel (x86_64)"
cmds:
- task: tauri:build:x64
clean:
desc: "Clean all build artifacts"
cmds:
- task: tauri:clean
- task: ios:clean
- task: android:clean
- task: deno:clean
certs:
desc: "Sync code signing certificates"
cmds:
- task: ios:certificates
ios:
desc: "Run on iOS simulator"
cmds:
- task: ios:dev
test:
desc: "Run all tests (Rust + frontend unit)"
cmds:
- task: tauri:test
- task: test:unit
test:rust:
desc: "Run Rust tests only"
cmds:
- task: tauri:test
test:unit:
desc: "Run frontend unit tests (Vitest)"
dir: src-tauri/dist
cmds:
- npm test
test:unit:watch:
desc: "Run frontend unit tests in watch mode"
dir: src-tauri/dist
cmds:
- npm run test:watch
test:unit:coverage:
desc: "Run frontend unit tests with coverage"
dir: src-tauri/dist
cmds:
- npm run test:coverage
test:e2e:
desc: "Run Playwright E2E tests"
dir: src-tauri/dist
cmds:
- npm run test:e2e
test:e2e:ui:
desc: "Run Playwright E2E tests with UI"
dir: src-tauri/dist
cmds:
- npm run test:e2e:ui
db:seed:
desc: "Seed development database with sample restaurants"
cmds:
- sqlite3 ~/Library/Application\ Support/Lunch/lunch.db < scripts/dev_seed.sql
- echo "Database seeded successfully"
db:reset:
desc: "Reset development database (delete and recreate)"
cmds:
- rm -f ~/Library/Application\ Support/Lunch/lunch.db
- echo "Database deleted. Run 'task dev' to recreate, then 'task db:seed' to seed."