all repos — vite @ 67f4720b110ead3036cf1abfd8982a788911d52b

a fast (this time, actually) and minimal static site generator

Better messages
Anirudh Oppiliappan x@icyphox.sh
Fri, 30 Oct 2020 18:00:27 +0530
commit

67f4720b110ead3036cf1abfd8982a788911d52b

parent

a741d82fd6191ccfbf8e9a480f8def8f170831da

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M build.gobuild.go

@@ -15,7 +15,7 @@

func execute(cmds []string) { for _, cmd := range cmds { _, err := exec.Command(cmd).Output() - printMsg("executing:", cmd) + printMsg("running:", cmd) if err != nil { printErr(err) }

@@ -81,7 +81,7 @@ htmlFile.Close()

} func viteBuild() { - printMsg("executing pre-build actions") + printMsg("executing pre-build actions...") execute(cfg.Prebuild) err := filepath.Walk("./pages", func(path string, info os.FileInfo, err error) error { if err != nil {

@@ -117,7 +117,7 @@ _, err = shutil.CopyTree("static", filepath.Join("build", "static"), nil)

if err != nil { printErr(err) } - printMsg("build complete") + printMsg("site build complete") printMsg("executing post-build actions...") execute(cfg.Postbuild) }