UNPKG

ambilight

Version:

An API library for Node.js that interacts with a Philips Ambilight TV.

46 lines (33 loc) 931 B
MOCHA_OPTS= REPORTER=list all: clean test pack build: test: ./node_modules/.bin/mocha --reporter $(REPORTER) pack: npm pack clean: rm -f ambilight-*.tgz install link: npm $@ release-patch: build test @$(call release,patch) release-minor: build test @$(call release,minor) release-major: build test @$(call release,major) publish: git push --tags origin HEAD:master npm publish define release VERSION=`node -pe "require('./package.json').version"` && \ NEXT_VERSION=`node -pe "require('semver').inc(\"$$VERSION\", '$(1)')"` && \ node -e "\ var j = require('./package.json');\ j.version = \"$$NEXT_VERSION\";\ var s = JSON.stringify(j, null, 2);\ require('fs').writeFileSync('./package.json', s);" && \ git commit -m "release $$NEXT_VERSION" -- package.json && \ git tag "$$NEXT_VERSION" -m "release $$NEXT_VERSION" endef .PHONY: test package clean