From ac1c6189c255b2db30d9534fc717b246ef3b241e Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Tue, 9 Jul 2024 16:18:59 +0700 Subject: [PATCH] make taskfile for fwlite --- Taskfile.yml | 7 +++++-- backend/FwLite/Taskfile.yml | 39 +++++++++++++++++++++++++++++++++++++ backend/Taskfile.yml | 34 -------------------------------- 3 files changed, 44 insertions(+), 36 deletions(-) create mode 100644 backend/FwLite/Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml index 399b9f31f..668374679 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -25,6 +25,9 @@ includes: test: taskfile: ./backend/Testing/Taskfile.yml dir: ./backend/Testing + fw-lite: + taskfile: ./backend/FwLite/Taskfile.yml + dir: ./backend/FwLite tasks: setup: @@ -82,7 +85,7 @@ tasks: interactive: true local-web-app-for-develop: - deps: [ ui:viewer-dev, api:local-web-app-for-develop, ui:https-oauth-authority ] + deps: [ ui:viewer-dev, fw-lite:local-web-app-for-develop, ui:https-oauth-authority ] local-web-app: - deps: [ ui:viewer-dev, api:local-web-app, ui:https-oauth-authority ] + deps: [ ui:viewer-dev, fw-lite:local-web-app, ui:https-oauth-authority ] diff --git a/backend/FwLite/Taskfile.yml b/backend/FwLite/Taskfile.yml new file mode 100644 index 000000000..e48406fe3 --- /dev/null +++ b/backend/FwLite/Taskfile.yml @@ -0,0 +1,39 @@ +version: 3 +includes: + ui: + taskfile: ../../frontend/Taskfile.yml + dir: ../../frontend + internal: true + +tasks: + + local-web-app-for-develop: + label: dotnet + dir: ./LocalWebApp + cmd: dotnet watch --no-hot-reload + local-web-app: + label: Run LocalWebApp with Local LexBox + env: + Auth__DefaultAuthority: "https://localhost:3050" + dir: ./LocalWebApp + cmd: dotnet watch --no-hot-reload + + publish-local-all: + cmds: + - task: publish-local-win + - task: publish-local-linux + - task: publish-local-osx + - task: publish-local-osx-arm + publish-local-win: + dir: ./LocalWebApp + deps: [ ui:build-viewer-app ] + cmd: dotnet publish -r win-x64 + publish-local-linux: + dir: ./LocalWebApp + cmd: dotnet publish -r linux-x64 + publish-local-osx: + dir: ./LocalWebApp + cmd: dotnet publish -r osx-x64 + publish-local-osx-arm: + dir: ./LocalWebApp + cmd: dotnet publish -r osx-arm64 diff --git a/backend/Taskfile.yml b/backend/Taskfile.yml index 591b295f4..2d27ad98c 100644 --- a/backend/Taskfile.yml +++ b/backend/Taskfile.yml @@ -1,8 +1,4 @@ version: 3 -includes: - ui: - taskfile: ../frontend/Taskfile.yml - dir: ../frontend tasks: api-only: @@ -91,33 +87,3 @@ tasks: cmds: - kubectl port-forward service/db 27018:27017 -n languageforge --context dallas-rke - local-web-app-for-develop: - label: dotnet - dir: ./LocalWebApp - cmd: dotnet watch --no-hot-reload - local-web-app: - label: Run LocalWebApp with Local LexBox - env: - Auth__DefaultAuthority: "https://localhost:3050" - dir: ./LocalWebApp - cmd: dotnet watch --no-hot-reload - - publish-local-all: - cmds: - - task: publish-local-win - - task: publish-local-linux - - task: publish-local-osx - - task: publish-local-osx-arm - publish-local-win: - dir: ./LocalWebApp - deps: [ui:build-viewer-app] - cmd: dotnet publish -r win-x64 - publish-local-linux: - dir: ./LocalWebApp - cmd: dotnet publish -r linux-x64 - publish-local-osx: - dir: ./LocalWebApp - cmd: dotnet publish -r osx-x64 - publish-local-osx-arm: - dir: ./LocalWebApp - cmd: dotnet publish -r osx-arm64