Skip to content

Commit

Permalink
make taskfile for fwlite
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 10, 2024
1 parent 66b11ce commit ac1c618
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 36 deletions.
7 changes: 5 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 ]
39 changes: 39 additions & 0 deletions backend/FwLite/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -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
34 changes: 0 additions & 34 deletions backend/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
version: 3
includes:
ui:
taskfile: ../frontend/Taskfile.yml
dir: ../frontend

tasks:
api-only:
Expand Down Expand Up @@ -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

0 comments on commit ac1c618

Please sign in to comment.