fix: api.module.dev (added npm management)
This commit is contained in:
parent
29cb835400
commit
1c34b59231
|
@ -29,8 +29,11 @@ class dev{
|
||||||
extract($argv);
|
extract($argv);
|
||||||
|
|
||||||
\chdir(__ROOT__);
|
\chdir(__ROOT__);
|
||||||
|
\exec("git pull origin master", $stdout);
|
||||||
|
\exec("npm update");
|
||||||
|
\exec("npm run build");
|
||||||
|
|
||||||
return [ 'stdout' => \shell_exec("git pull origin master") ];
|
return [ 'stdout' => $stdout];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue