Add post build command and exclude the esbuild outdir in the watcher.

This commit is contained in:
2024-07-04 10:56:41 +02:00
parent c356f34e21
commit 30f8be3d5d
4 changed files with 34 additions and 7 deletions

View File

@ -28,7 +28,7 @@ type ESBuildExtended struct {
type options struct {
ESBuild ESBuildExtended
Watch struct {
Path string
Paths []string
Exclude []string
}
Serve struct {
@ -52,6 +52,9 @@ type options struct {
From string
To string
}
ProductionBuildOptions struct {
CmdPostBuild string
}
}
func readCfg(cfgPath string) []options {
@ -89,7 +92,7 @@ func main() {
app := &cli.App{
Name: "gowebbuild",
Usage: "All in one tool to build web frontend projects.",
Version: "4.3.1",
Version: "4.4.0",
Authors: []*cli.Author{{
Name: "trading-peter (https://github.com/trading-peter)",
}},