diff --git a/build.bat b/build.bat index c8efcea1..56ffe474 100755 --- a/build.bat +++ b/build.bat @@ -6,17 +6,17 @@ rd /s /q ".\panel\production" echo "Build daemon..." cd daemon -npm run build +call npm run build echo "Build panel..." cd .. cd panel -npm run build +call npm run build echo "Build frontend..." cd .. cd frontend -npm run build +call npm run build echo "Collecting files..." cd .. @@ -42,6 +42,13 @@ rd /s /q ".\daemon\dist" rd /s /q ".\panel\dist" rd /s /q ".\frontend\dist" -echo "------------" +cd "production-code\daemon" +call npm install --production +cd "../web" +call npm install --production +cd "../../" + +echo "--------" echo "Done!" -echo "------------" + +pause \ No newline at end of file diff --git a/install-dependents.bat b/install-dependents.bat index 998b8e8b..1d0c2e10 100755 --- a/install-dependents.bat +++ b/install-dependents.bat @@ -1,13 +1,12 @@ cd daemon -start npm install +call npm install cd .. cd panel -start npm install +call npm install cd .. cd frontend -start npm install - +call npm install pause \ No newline at end of file diff --git a/npm-dev-windows.bat b/npm-dev-windows.bat index 25a84d72..ce76ccde 100644 --- a/npm-dev-windows.bat +++ b/npm-dev-windows.bat @@ -1,3 +1,4 @@ start start-daemon.bat start start-panel.bat start-frontend.bat +