npm脚本编译代码

echo off
set codeUrl=D:\svn\oppo_mis\OCSS_NEW\Branches\ProjectCode20190909\h5_ocss
set publishUrl=D:\Portal\

cd /D %codeUrl%
:: 生成解决方案(dll)
npm run build
:: 将生成的bin中的dll发布到发布目录的bin
::for /r %codeUrl%\bin %%i in (dir "*Icsm*";"*Crm.Interface*";"*Crm.Entity*") do copy %%i %publishUrl%\bin

posted @ 2019-09-24 16:00  凌心缘  阅读(467)  评论(0编辑  收藏  举报