Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -520,23 +520,51 @@ tasks:

tsunami:scaffold:internal:
desc: Internal task to create scaffold directory structure
internal: true
cmds:
- task: tsunami:scaffold:internal:unix
- task: tsunami:scaffold:internal:windows

tsunami:scaffold:internal:unix:
desc: Internal task to create scaffold directory structure (Unix)
dir: tsunami/frontend
internal: true
platforms: [darwin, linux]
cmds:
- cmd: "{{.RMRF}} scaffold"
ignore_error: true
- mkdir scaffold
- mkdir -p scaffold
- cp ../templates/package.json.tmpl scaffold/package.json
- cd scaffold && npm install
- cp -r dist scaffold/
- mkdir scaffold/dist/tw
- mkdir -p scaffold/dist/tw
- cp ../templates/app-main.go.tmpl scaffold/app-main.go
- cp ../templates/tailwind.css scaffold/
- cp ../templates/gitignore.tmpl scaffold/.gitignore
- cp src/element/*.tsx scaffold/dist/tw/
- cp ../ui/*.go scaffold/dist/tw/
- cp ../engine/errcomponent.go scaffold/dist/tw/

tsunami:scaffold:internal:windows:
desc: Internal task to create scaffold directory structure (Windows)
dir: tsunami/frontend
internal: true
platforms: [windows]
cmds:
- cmd: "{{.RMRF}} scaffold"
ignore_error: true
- powershell New-Item -ItemType Directory -Force -Path scaffold
- powershell Copy-Item -Path ../templates/package.json.tmpl -Destination scaffold/package.json
- powershell -Command "Set-Location scaffold; npm install"
- powershell Copy-Item -Recurse -Force -Path dist -Destination scaffold/
- powershell New-Item -ItemType Directory -Force -Path scaffold/dist/tw
- powershell Copy-Item -Path ../templates/app-main.go.tmpl -Destination scaffold/app-main.go
- powershell Copy-Item -Path ../templates/tailwind.css -Destination scaffold/
- powershell Copy-Item -Path ../templates/gitignore.tmpl -Destination scaffold/.gitignore
- powershell Copy-Item -Path 'src/element/*.tsx' -Destination scaffold/dist/tw/
- powershell Copy-Item -Path '../ui/*.go' -Destination scaffold/dist/tw/
- powershell Copy-Item -Path ../engine/errcomponent.go -Destination scaffold/dist/tw/

tsunami:build:
desc: Build the tsunami binary.
cmds:
Expand Down
Loading