chore: replace root Taskfile with .core/build.yaml
Root Taskfile removed — `core build` auto-detects Wails projects. Platform Taskfiles in build/ retained (used by wails3 internally). Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
e04cbf6864
commit
e85aa98a4d
2 changed files with 26 additions and 34 deletions
26
.core/build.yaml
Normal file
26
.core/build.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Core IDE build configuration
|
||||
# Used by: core build
|
||||
|
||||
version: 1
|
||||
|
||||
project:
|
||||
name: core-ide
|
||||
description: Core IDE - Development Environment
|
||||
binary: core-ide
|
||||
|
||||
build:
|
||||
type: wails
|
||||
cgo: true
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
|
||||
targets:
|
||||
- os: darwin
|
||||
arch: arm64
|
||||
- os: linux
|
||||
arch: amd64
|
||||
- os: windows
|
||||
arch: amd64
|
||||
34
Taskfile.yml
34
Taskfile.yml
|
|
@ -1,34 +0,0 @@
|
|||
version: '3'
|
||||
|
||||
includes:
|
||||
common: ./build/Taskfile.yml
|
||||
windows: ./build/windows/Taskfile.yml
|
||||
darwin: ./build/darwin/Taskfile.yml
|
||||
linux: ./build/linux/Taskfile.yml
|
||||
|
||||
vars:
|
||||
APP_NAME: "core-ide"
|
||||
BIN_DIR: "bin"
|
||||
VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
|
||||
|
||||
tasks:
|
||||
build:
|
||||
summary: Builds the application
|
||||
cmds:
|
||||
- task: "{{OS}}:build"
|
||||
|
||||
package:
|
||||
summary: Packages a production build of the application
|
||||
cmds:
|
||||
- task: "{{OS}}:package"
|
||||
|
||||
run:
|
||||
summary: Runs the application
|
||||
cmds:
|
||||
- task: "{{OS}}:run"
|
||||
|
||||
dev:
|
||||
summary: Runs the application in development mode
|
||||
cmds:
|
||||
- wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
|
||||
|
||||
Loading…
Add table
Reference in a new issue