-
Notifications
You must be signed in to change notification settings - Fork 1
/
taskfile.yml
63 lines (54 loc) · 1.96 KB
/
taskfile.yml
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
version: "3"
silent: true
tasks:
# Generate JS API clients based on Swagger
paths:
env:
DENO_TLS_CA_STORE: system
vars:
DEST: ./Ogma3/wwwroot/js/generated-new/
URL: https://localhost:5001/openapi/
cmds:
- ogma-tool generate-paths {{.DEST}} --path.public="{{.URL}}public.json" --path.internal="{{.URL}}internal.json"
# Generate preload code for fonts
preloads:
vars:
SRC: ./Ogma3/wwwroot/fonts
DEST: fonts
cmds:
- ogma-tool generate-preloads {{.SRC}} {{.DEST}}
# Generate CSS import conde for fonts
imports:
vars:
SRC: ./Ogma3/wwwroot/fonts
DEST: fonts
cmds:
- ogma-tool generate-imports {{.SRC}} {{.DEST}}
# Check the size of the bundle
bundlesize:
vars:
SRC: ./Ogma3/wwwroot/js/{dist,bundle}/*.js
cmds:
- ogma-tool bundlesize {{.SRC}}
# Serve via Ngrok
serve: ngrok http https://localhost:5001 -host-header="localhost:5001"
# Serve via Cloudflare Tunnel (see Documentation/Testing/public-access.md)
tunnel: cloudflared tunnel run genfic-beta
tunnel-prod:
cmds:
- dotnet run -c release --project ./Ogma3/Ogma3.csproj --environment testing
- task: tunnel
# Get Lighthouse CLI score
score:
cmds:
- dotnet run -c release --project ./Ogma3/Ogma3.csproj --environment testing
- lighthouse https://localhost:5001 --view
# EF helpers
db-migrate: dotnet ef migrations add --project ./Ogma3/Ogma3.csproj {{.CLI_ARGS}}
db-up: dotnet ef database update --project ./Ogma3/Ogma3.csproj {{.CLI_ARGS}}
db-compile: dotnet ef dbcontext optimize --project ./Ogma3/Ogma3.csproj --output-dir CompiledModels --namespace CompiledModels {{.CLI_ARGS}}
db-all:
cmds:
- task: db-migrate
- task: db-up
- task: db-compile