Jenkins版本2.2222222222222
npm打包
npm install
npm run build
1.触发之前操作,参考转载:Gitlab+Jenkins用钩子实现自动部署_2018_like菜的博客-CSDN博客
yarn打包
2.上图

第一图,构建之前对主机操作,备份等,如不需要 可以省略
安装yarn
npm install -g yarn --registry=https://registry.npm.taobao.org
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn install


其它编译打包命令
npm install pnpm -g && pnpm i
npm run build
本文详细介绍使用Jenkins 2.22版本进行自动化构建的过程,包括npm install、npm run build命令的应用,以及通过yarn进行包管理的配置步骤。同时,文章提供了利用Gitlab+Jenkins实现自动部署的方法。
npm打包发包&spm=1001.2101.3001.5002&articleId=106546880&d=1&t=3&u=f23b0fd543844a9080959aa17299e58c)
856

被折叠的 条评论
为什么被折叠?



