mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
b2b1f9b9df
This sets us back up to use Vite via the electron-vite package. This will let us continue to build our testing suite on Vitest and take advantage of Vite features like Hot Module Reloading, etc. --------- Co-authored-by: sawka <mike.sawka@gmail.com>
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
# Copyright 2024, Command Line Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
version: "3"
|
|
|
|
vars:
|
|
APP_NAME: "NextWave"
|
|
BIN_DIR: "bin"
|
|
VERSION: "0.1.0"
|
|
|
|
tasks:
|
|
generate:
|
|
cmds:
|
|
- go run cmd/generate/main-generate.go
|
|
sources:
|
|
- "cmd/generate/*.go"
|
|
- "pkg/service/**/*.go"
|
|
- "pkg/wstore/*.go"
|
|
|
|
electron:dev:
|
|
cmds:
|
|
- WAVETERM_DEV=1 yarn dev
|
|
deps:
|
|
- build:server
|
|
|
|
electron:start:
|
|
cmds:
|
|
- WAVETERM_DEV=1 yarn start
|
|
deps:
|
|
- build:server
|
|
|
|
build:server:
|
|
cmds:
|
|
- go build -o dist/bin/wavesrv cmd/server/main-server.go
|
|
sources:
|
|
- "cmd/server/*.go"
|
|
- "pkg/**/*.go"
|
|
generates:
|
|
- dist/bin/wavesrv
|
|
deps:
|
|
- go:mod:tidy
|
|
|
|
go:mod:tidy:
|
|
summary: Runs `go mod tidy`
|
|
internal: true
|
|
generates:
|
|
- go.sum
|
|
sources:
|
|
- go.mod
|
|
cmds:
|
|
- go mod tidy
|