fixes
This commit is contained in:
parent
ea997b41de
commit
aeb3a7be64
2 changed files with 5 additions and 17 deletions
|
|
@ -16,7 +16,6 @@ import (
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "1.0.3"
|
const version = "1.0.3"
|
||||||
|
|
@ -79,21 +78,9 @@ func main() {
|
||||||
fmt.Printf("Generating CSS...\n")
|
fmt.Printf("Generating CSS...\n")
|
||||||
css.GenerateCss(process.ExitOnError)
|
css.GenerateCss(process.ExitOnError)
|
||||||
|
|
||||||
wg := sync.WaitGroup{}
|
// generate ast needs to be run after css generation
|
||||||
|
astgen.GenAst(process.ExitOnError)
|
||||||
wg.Add(1)
|
run.EntGenerate()
|
||||||
go func() {
|
|
||||||
defer wg.Done()
|
|
||||||
astgen.GenAst(process.ExitOnError)
|
|
||||||
}()
|
|
||||||
|
|
||||||
wg.Add(1)
|
|
||||||
go func() {
|
|
||||||
defer wg.Done()
|
|
||||||
run.EntGenerate()
|
|
||||||
}()
|
|
||||||
|
|
||||||
wg.Wait()
|
|
||||||
|
|
||||||
fmt.Printf("Starting server...\n")
|
fmt.Printf("Starting server...\n")
|
||||||
process.KillAll()
|
process.KillAll()
|
||||||
|
|
@ -131,6 +118,7 @@ func main() {
|
||||||
} else if taskName == "css" {
|
} else if taskName == "css" {
|
||||||
_ = css.GenerateCss(process.ExitOnError)
|
_ = css.GenerateCss(process.ExitOnError)
|
||||||
} else if taskName == "ast" {
|
} else if taskName == "ast" {
|
||||||
|
css.GenerateCss(process.ExitOnError)
|
||||||
_ = astgen.GenAst(process.ExitOnError)
|
_ = astgen.GenAst(process.ExitOnError)
|
||||||
} else if taskName == "run" {
|
} else if taskName == "run" {
|
||||||
run.MakeBuildable()
|
run.MakeBuildable()
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ import (
|
||||||
|
|
||||||
func MakeBuildable() {
|
func MakeBuildable() {
|
||||||
copyassets.CopyAssets()
|
copyassets.CopyAssets()
|
||||||
astgen.GenAst(process.ExitOnError)
|
|
||||||
css.GenerateCss(process.ExitOnError)
|
css.GenerateCss(process.ExitOnError)
|
||||||
|
astgen.GenAst(process.ExitOnError)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Build() {
|
func Build() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue