簡體   English   中英

在Windows批處理腳本中生成grunt后無法執行其他命令

[英]Cannot execute additional commands after grunt build in Windows batch script

使用yeoman navdrawer模板構建Oracle Jet應用,並嘗試編寫一些我需要做的常見任務的腳本(例如:構建,部署在遠程服務器上,...)。

如果我在Windows上使用以下命令創建一個test.bat:

grunt build
echo "next command is an echo"

未執行echo命令

Running "build" task

Running "oraclejet-build:undefined" (oraclejet-build) task
 Oracle JET Grunt plugin
Processing Grunt command...
JET Warning: Missing platform. Default to web.
 Oracle JET Tooling
cleaning staging path.....
copy files to staging directory.....
copy finished...
copy library files to staging directory.....
copy finished...
compiling sass....
sass compile finished...
running theme injection task.....
indexHtml theme path injection finished..
running theme copy task.....
theme copy finished...
running injection task.....
mainJs paths injection finished..

Done.

然后返回到命令行。

為什么不執行echo命令?

在另一個帖子中找到了它

grunt執行停止批處理腳本

必須使用通話才能使其正常工作

call grunt build
echo "it works!"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM