Build with Magefile #104341

Merged
Sybren A. Stüvel merged 26 commits from magefile into main 2024-10-04 21:59:46 +02:00
Showing only changes of commit 4ddc9d8148 - Show all commits

View File

@ -84,6 +84,18 @@ func WebappStatic() error {
return packAddon(zipPath) return packAddon(zipPath)
} }
// Use Yarn to install the webapp's NodeJS dependencies
func WebappInstallDeps() error {
env := map[string]string{
"MSYS2_ARG_CONV_EXCL": "*",
}
return sh.RunWithV(env,
"yarn",
"--cwd", "web/app",
"install",
)
}
func build(exePackage string) error { func build(exePackage string) error {
flags, err := buildFlags() flags, err := buildFlags()
if err != nil { if err != nil {