19 lines
494 B
Go
19 lines
494 B
Go
package run
|
|
|
|
import (
|
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/astgen"
|
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/copyassets"
|
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/css"
|
|
"github.com/maddalax/htmgo/cli/htmgo/tasks/process"
|
|
)
|
|
|
|
func Setup() {
|
|
process.RunOrExit(process.NewRawCommand("", "go mod download"))
|
|
process.RunOrExit(process.NewRawCommand("", "go mod tidy"))
|
|
|
|
copyassets.CopyAssets()
|
|
astgen.GenAst(process.ExitOnError)
|
|
css.GenerateCss(process.ExitOnError)
|
|
|
|
EntGenerate()
|
|
}
|