-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
75 lines (61 loc) · 1.71 KB
/
Taskfile.yml
File metadata and controls
75 lines (61 loc) · 1.71 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
version: '3'
vars:
configuration: Release
project: androidwasm.csproj
chat_server_project: androidwasm.ChatServer/androidwasm.ChatServer.csproj
tasks:
default:
desc: Show available tasks
cmds:
- task --list
restore:
desc: Restore NuGet packages
cmds:
- dotnet restore {{.project}}
build:
desc: Build app
deps: [restore]
cmds:
- dotnet build {{.project}} -c {{.configuration}} --no-restore
build:all:
desc: Build client and chat server
cmds:
- dotnet build androidwasm.sln -c {{.configuration}}
run:
desc: Run app locally
deps: [restore]
cmds:
- dotnet run --project {{.project}} -c Debug
run:server:
desc: Run chat server API with SQLite
cmds:
- dotnet run --project {{.chat_server_project}} -c Debug --launch-profile https
run:client:
desc: Run Blazor WebAssembly client
cmds:
- dotnet run --project {{.project}} -c Debug --launch-profile https
test:
desc: Run all tests
cmds:
- task test:unit
- task test:ui
test:unit:
desc: Run unit tests
cmds:
- dotnet test tests/AndroidWasm.Tests/AndroidWasm.Tests.csproj -c {{.configuration}}
test:ui:
desc: Run integration/UI tests
cmds:
- dotnet test tests/AndroidWasm.Integration/AndroidWasm.Integration.csproj -c {{.configuration}}
format:
desc: Format source
cmds:
- dotnet format {{.project}}
lint:
desc: Lint/analyze source
cmds:
- dotnet build {{.project}} -c {{.configuration}} -warnaserror
clean:
desc: Clean build artifacts
cmds:
- dotnet clean {{.project}} -c {{.configuration}}