Mage: remove duplicated targets
The same functionality was available as two Mage targets. WebappInstallDeps has been removed, in favour of InstallDepsWebapp.
This commit is contained in:
parent
5f37bcb629
commit
4ae4b892fd
@ -58,7 +58,7 @@ func WebappStatic() error {
|
||||
return err
|
||||
}
|
||||
if runInstall {
|
||||
mg.SerialDeps(WebappInstallDeps)
|
||||
mg.SerialDeps(InstallDepsWebapp)
|
||||
}
|
||||
if err := cleanWebappStatic(); err != nil {
|
||||
return err
|
||||
@ -92,18 +92,6 @@ func WebappStatic() error {
|
||||
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 {
|
||||
flags, err := buildFlags()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user