参考
开始 | Vite 官方中文文档
VUE教程地址
https://cn.vuejs.org/tutorial/#step-1
第一个工程
https://blog.csdn.net/qq_35221977/article/details/137171497
脚本
chcp 65001
echo 建立vite工程
set PRO_NAME=my-vue-app
if not exist %PRO_NAME% (
call npm install element-plus -g
call npm install vue-router@4 -g
call npm create vite@latest %PRO_NAME% --template vue
) else (
echo %PRO_NAME% 工程已经存在
)
cd ./%PRO_NAME%
set NOW_PATH=%cd%
echo 'now_path= '%NOW_PATH%
echo 点击回车启动vite工程,请访问http://localhost:5173
call npm install
call npm run dev
pause