echo %1
cd /d %1
git checkout master
git pull origin master
npm run build
-sharp
cd /d %1/dist
git pull origin master
pause
echo %1
cd /d %1
git checkout master
git pull origin master
npm run build
-sharp
cd /d %1/dist
git pull origin master
pause
call npm run build
there is a temporary solution:
start npm run build
pause
means to watch the build finish manually before continuing.
I try to use:
start /wait npm run build
but I don't know how to close the open command line window, maybe there is such an option in the npm script. If anyone knows, please let me know
.Previous: How do I bind events using Nuxt.js programmatically?
Next: What is the function of while (true) in a general loop