aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yml
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-14 13:37:05 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-14 13:37:26 +0100
commite030d6feff065b0f412d7e51684a0b6e6eca7fec (patch)
tree18827cbfbaa5e6faf30fdb0aaec21eba84c39db9 /Taskfile.yml
parent08eaea3264f2e4628c40c8e79e3952f630b55221 (diff)
Implement new stop schedule generation format using protobuf
Diffstat (limited to 'Taskfile.yml')
-rw-r--r--Taskfile.yml22
1 files changed, 14 insertions, 8 deletions
diff --git a/Taskfile.yml b/Taskfile.yml
index 983b05a..6cc0fce 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -11,15 +11,11 @@ tasks:
cmds:
- npm run dev --prefix src/frontend
- format-backend:
- desc: Format backend solution.
+ build-proto:
+ desc: Generates the protobuf bindings for C# and Python
cmds:
- - dotnet format --verbosity diagnostic
-
- format-frontend:
- desc: Format frontend sources.
- cmds:
- - 'prettier --write src/frontend/**/*.{ts,tsx,css}'
+ - protoc --python_out=./src/gtfs_vigo_stops/src --pyi_out=./src/gtfs_vigo_stops/src --proto_path=./src/common ./src/common/stop_schedule.proto
+ - protoc --csharp_out=./src/Costasdev.Busurbano.Backend/Types/ --proto_path=./src/common ./src/common/stop_schedule.proto
build-backend:
desc: Publish backend in Release mode.
@@ -33,6 +29,16 @@ tasks:
- mkdir dist/frontend
- mv src/frontend/build/client/ dist/frontend/
+ format-backend:
+ desc: Format backend solution.
+ cmds:
+ - dotnet format --verbosity diagnostic
+
+ format-frontend:
+ desc: Format frontend sources.
+ cmds:
+ - 'prettier --write src/frontend/**/*.{ts,tsx,css}'
+
gen-stop-report:
desc: Generate stop-based JSON reports for specified dates or date ranges.
cmds: