繁体   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