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