From 1c34b592317f4ae4f95a42d6c11130144d7b6080 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Dec 2017 17:14:44 +0100 Subject: [PATCH] fix: api.module.dev (added npm management) --- build/api/module/dev.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/api/module/dev.php b/build/api/module/dev.php index 3339fbc..33943f0 100644 --- a/build/api/module/dev.php +++ b/build/api/module/dev.php @@ -29,8 +29,11 @@ class dev{ extract($argv); \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]; } }