代码拉取完成,页面将自动刷新
.PHONY: clean clean-test build rebuild release test test-concurrent test-syntax authors
MOCHA_ARGS=test -R list --v8-expose-gc --require ./test/_common.js
all: build
authors:
git shortlog -se \
| perl -spe 's/^\s+\d+\s+//' \
| sed -e '/^BrandonReavis/d' \
| sed -e '/brianreavis/d' \
| sed -e '/^brandonreavis/d' \
> AUTHORS
clean: clean-test
@rm -rf ./build
@rm -rf lib/binding
clean-test:
@rm -f ./test/**/*.aux.xml
@rm -rf ./test/**/*.tmp*
@rm -rf ./test/data/**/*.tmp*
./node_modules/.bin/node-pre-gyp:
npm install @mapbox/node-pre-gyp
build: ./node_modules/.bin/node-pre-gyp
./node_modules/.bin/node-pre-gyp configure --silent
./node_modules/.bin/node-pre-gyp build -j max
build-shared: ./node_modules/.bin/node-pre-gyp
./node_modules/.bin/node-pre-gyp configure --shared_gdal=true --silent
./node_modules/.bin/node-pre-gyp build -j max
rebuild:
@make clean
@make
test: clean-test build
./node_modules/.bin/mocha $(MOCHA_ARGS)
@make clean-test
test-shared: clean-test build-shared
./node_modules/.bin/mocha $(MOCHA_ARGS)
@make clean-test
test-syntax:
npm run lint
test-concurrent: clean-test
node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha
@make clean-test
release:
ifeq ($(strip $(version)),)
@echo "\033[31mERROR:\033[0;39m No version provided."
@echo "\033[1;30mmake release version=1.0.0\033[0;39m"
else
rm -rf node_modules
npm install
make test
@make authors
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' package.json
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' yuidoc.json
rm *.bak
git add .
git commit --allow-empty -a -m "Released $(version). [publish binary]"
git tag v$(version)
git push origin master
git push origin --tags
@echo "\033[32mv${version} tagged\033[0;39m"
@echo ""
@echo "IMPORTANT: Run 'npm publish' once Travis/AppVeyor complete their builds"
endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。