1 Star 0 Fork 0

罪. / fomex

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
publish.sh 656 Bytes
一键复制 编辑 原始数据 按行查看 历史
罪. 提交于 2020-05-09 15:47 . chore: Update publish script
set -e
rm -rf ./build
./node_modules/.bin/tsc
for file in $(ls -l ./build/ | grep -v src | awk '{print $NF}')
do
rm -rf ./build/$file
done
mv ./build/src/* ./build && rmdir ./build/src
cp README.md package.json LICENSE CHANGELOG.md ./build
./node_modules/.bin/public-refactor --src ./src --dist ./build
old_registry=$(npm config get registry)
npm config set registry https://registry.npmjs.org
set +e
whoami=$(npm whoami 2>/dev/null)
set -e
if [ -z "$whoami" ]
then
echo "login plz..."
npm login
fi
echo "I am: $(npm whoami)"
sleep 1
echo "Begin publish..."
npm publish ./build/ --access=public "$@"
npm config set registry ${old_registry}
TypeScript
1
https://gitee.com/geekact/fomex.git
git@gitee.com:geekact/fomex.git
geekact
fomex
fomex
master

搜索帮助