赞
踩
在内网环境开发时没有外网,不能连接到公网镜像,此时我们就需要上传依赖到内网的镜像上。为后续jenkins运行做准备…

java -Dfile.encoding=utf-8 -jar dowload-tgz.jar rootPath= lockPath=package-lock.json
mkdir tgz && cd tarballs
find . -name '*.tgz' -exec cp -f {} ../tgz \;
#!/bin/bash
PACKAGE_PATH=./tgz
REPOSITORY=http://ip:port/repository/dataservice-web/
npm login --registry=$REPOSITORY
for package in $PACKAGE_PATH/*.tgz; do
npm publish --registry=$REPOSITORY $package
done
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。