Resource: Mainland China GitHub Mirrors and Registry Provisions

Chinese Developers - Reducing Friction and Fragmentation

gitee.com/

Mirror located at: gitee.com/yfinance

Repos available gitee.com/organizations/yfinance/projects

Mainland China Registries

cn-hongkong.aliyuncs.com


http://registry-intl.cn-hongkong.aliyuncs.com/


developer.aliyun.com/mirror/NPM?from=tnpm


r.cnpmjs.org/

Currently, registry.npm.taobao.org is fully synchronized from r.cnpmjs.org (every 10mins)

Example of Mirrors

Open source mirror: http://npm.taobao.org/mirrors

Node.js mirror: http://npm.taobao.org/mirrors/node

alinode mirror: http://npm.taobao.org/mirrors/alinode

phantomjs mirror: http://npm.taobao.org/mirrors/phantomjs

ChromeDriver mirror: http://npm.taobao.org/mirrors/chromedriver

OperaDriver mirror: http://npm.taobao.org/mirrors/operadriver

Selenium mirror: http://npm.taobao.org/mirrors/selenium

Node.js document mirror: http://npm.taobao.org/mirrors/node/latest/docs/api/index.html

NPM mirror: CNPM Binaries Mirror

electron mirror: CNPM Binaries Mirror

node-inspector mirror: CNPM Binaries Mirror


Developer Resources for publishing

see this gist for more files: https://gist.github.com/sambacha/f401a4d2627c568399d5b362b5cc9897

alias it in .bashrc or .zshrc

$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npm.taobao.org \
  --cache=$HOME/.npm/.cache/cnpm \
  --disturl=https://npm.taobao.org/dist \
  --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc

Notes

mandarin phrase
For developers in China, please visit the China mirror. 中国用户请访问国内镜像站点。

Resources for Developers wishing to maintain two registries:

ROOT_PATH := $(shell pwd)
REGISTRY_URL := registry-intl.cn-hongkong.aliyuncs.com/${YOUR_ORG}

.PHONY:
all: install release

version-major:
	@npm --force -s --prefix $(ROOT_PATH) version major > /dev/null

version-minor:
	@npm --force -s --prefix $(ROOT_PATH) version minor > /dev/null

version-patch:
	@npm --force -s --prefix $(ROOT_PATH) version patch > /dev/null

version-prerelease:
	@npm --force -s --prefix $(ROOT_PATH) version prerelease --preid=rc > /dev/null

version:
	@echo $(shell node -p "require('$(ROOT_PATH)/package.json').name"):$(shell node -p "require('$(ROOT_PATH)/package.json').version")

install:
	@npm install

setup-env:
	@cd tests; \
		./pull-env.sh; \
	cd ..;

test:
	@npm run test

build:
	@npm run build
	@REGISTRY_URL=$(REGISTRY_URL) make --no-print-directory -C $(ROOT_PATH)/docs build

release: version-patch
	@npm run build
	@REGISTRY_URL=$(REGISTRY_URL) make --no-print-directory -C $(ROOT_PATH)/docs release

publish:
	@npm publish

release-docs:
	@REGISTRY_URL=$(REGISTRY_URL) make --no-print-directory -C $(ROOT_PATH)/docs release

GitHub Repos that are Mirrored

https://github.com/iearn-finance/governance.git
https://github.com/iearn-finance/yearn-protocol.git
https://github.com/iearn-finance/yswap-finance.git
https://github.com/iearn-finance/ygov-finance.git
https://github.com/iearn-finance/YIPS.git
https://github.com/iearn-finance/yearn-starter-pack.git
https://github.com/iearn-finance/yearn-security.git
https://github.com/iearn-finance/yearn-subgraph.git
https://github.com/iearn-finance/yearn-vaults.git
https://github.com/iearn-finance/yearn-keeper.git
https://github.com/iearn-finance/audit.git
https://github.com/iearn-finance/yip_validator.git
https://github.com/iearn-finance/vaults.git
https://github.com/iearn-finance/docs.git
https://github.com/iearn-finance/iearn-finance.git

GitHub Repos Not Mirrored

https://github.com/iearn-finance/zap.git
https://github.com/iearn-finance/apr-oracle.git
https://github.com/iearn-finance/itoken.git
https://github.com/iearn-finance/uniswap-roi.git
https://github.com/iearn-finance/ileverage-finance.git
https://github.com/iearn-finance/iborrow-finance.git
https://github.com/iearn-finance/yinsure-finance.git
https://github.com/iearn-finance/faq.git
https://github.com/iearn-finance/yearn-audits.git
https://github.com/iearn-finance/yearn-recycle.git
https://github.com/iearn-finance/balancer-gov.git
https://github.com/iearn-finance/ycredit-finance.git
https://github.com/iearn-finance/ychad-audit.git
https://github.com/iearn-finance/yuni.finance.git
https://github.com/iearn-finance/yearn-exporter.git
https://github.com/iearn-finance/api.yuni.finance.git
https://github.com/iearn-finance/ycredit.finance.git
https://github.com/iearn-finance/yearn-api.git
https://github.com/iearn-finance/yoracle.link.git
https://github.com/iearn-finance/yearn-pm.git
https://github.com/iearn-finance/brownie-strategy-mix.git
2 Likes