waveterm/Taskfile.yml

68 lines
1.5 KiB
YAML
Raw Normal View History

# Copyright 2024, Command Line Inc.
# SPDX-License-Identifier: Apache-2.0
version: "3"
vars:
APP_NAME: "NextWave"
BIN_DIR: "bin"
VERSION:
sh: node version.cjs
2024-06-12 02:42:10 +02:00
tasks:
generate:
cmds:
2024-06-12 02:42:10 +02:00
- go run cmd/generate/main-generate.go
- go run cmd/generatewshclient/main-generatewshclient.go
sources:
2024-06-12 02:42:10 +02:00
- "cmd/generate/*.go"
- "pkg/service/**/*.go"
- "pkg/wstore/*.go"
- "pkg/wshrpc/**/*.go"
electron:dev:
cmds:
- WAVETERM_DEV=1 yarn dev
deps:
- build:server
2024-06-21 23:44:11 +02:00
- build:wsh
electron:start:
cmds:
- WAVETERM_DEV=1 yarn start
deps:
2024-06-12 02:42:10 +02:00
- build:server
2024-06-21 23:44:11 +02:00
- build:wsh
2024-06-12 02:42:10 +02:00
build:server:
cmds:
- go build -o dist/bin/wavesrv{{exeExt}} cmd/server/main-server.go
sources:
2024-06-12 02:42:10 +02:00
- "cmd/server/*.go"
- "pkg/**/*.go"
generates:
- dist/bin/wavesrv{{exeExt}}
deps:
2024-06-12 02:42:10 +02:00
- go:mod:tidy
2024-06-21 23:44:11 +02:00
build:wsh:
cmds:
- go build -o dist/bin/wsh{{exeExt}} cmd/wsh/main-wsh.go
sources:
- "cmd/wsh/**/*.go"
- "pkg/**/*.go"
generates:
- dist/bin/wsh{{exeExt}}
deps:
- go:mod:tidy
go:mod:tidy:
summary: Runs `go mod tidy`
internal: true
generates:
- go.sum
sources:
- go.mod
cmds:
- go mod tidy