mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
01b5d71709
lots of changes. new wshrpc implementation. unify websocket, web, blockcontroller, domain sockets, and terminal inputs to all use the new rpc system. lots of moving files around to deal with circular dependencies use new wshrpc as a client in wsh cmd
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
# 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
|
|
|
|
tasks:
|
|
generate:
|
|
cmds:
|
|
- go run cmd/generate/main-generate.go
|
|
- go run cmd/generatewshclient/main-generatewshclient.go
|
|
sources:
|
|
- "cmd/generate/*.go"
|
|
- "pkg/service/**/*.go"
|
|
- "pkg/wstore/*.go"
|
|
- "pkg/wshrpc/**/*.go"
|
|
|
|
electron:dev:
|
|
cmds:
|
|
- WAVETERM_DEV=1 yarn dev
|
|
deps:
|
|
- build:server
|
|
- build:wsh
|
|
|
|
electron:start:
|
|
cmds:
|
|
- WAVETERM_DEV=1 yarn start
|
|
deps:
|
|
- build:server
|
|
- build:wsh
|
|
|
|
build:server:
|
|
cmds:
|
|
- go build -o dist/bin/wavesrv{{exeExt}} cmd/server/main-server.go
|
|
sources:
|
|
- "cmd/server/*.go"
|
|
- "pkg/**/*.go"
|
|
generates:
|
|
- dist/bin/wavesrv{{exeExt}}
|
|
deps:
|
|
- go:mod:tidy
|
|
|
|
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
|